Developer guide and API map for the current toolbox.py module. This page is aligned with
__version__ = "1.5.1.1" and calls out optional dependencies, side effects, and compatibility behavior.
toolbox.py is a general-purpose utility module containing:
It is designed as a broad utility library for rapid Python development, especially in backend, data, and tooling workflows.
Import: the module is a single file, so consumers normally use
import toolbox or import selected names directly. Several integrations require optional
third-party packages or local data files; see the relevant section before deploying a feature.
The module combines unrelated but commonly useful utilities into a single file. Key themes include:
The standard library covers only part of the module. Dependencies are loaded at different times, so a successful
import toolbox does not prove that every feature is ready to use.
| Dependency | Used by | Loading behavior |
|---|---|---|
requests, urllib3 | Synchronous downloads and updater requests | requests is deferred until first attribute access. |
aiohttp, multidict | Async HTTP, service plugins, URL query data | Wrapped by DelayModuleLoad; a missing package may fail only when the feature is first used. |
matplotlib | Statistical plotting | Optional and deferred. |
jsondb2, sqliteObj, aiosqliteObj | Queue/cache/database-backed features and plugins.UserManager | Imported conditionally. Missing aiosqliteObj no longer triggers installation at startup; UserManager may request it when used. sqliteObj may still be installed through the updater during import. |
pygments | HTML source/traceback formatting | Optional; formatter classes exist only when it imports. |
| Local data files | Country, Android-device, and user-agent helpers | Some lookups depend on resources available beside the application. |
Important: importing this module currently enables AUTO_UPDATER and calls
pmblue_update.self_update(). If pmblue_update is missing, the import path attempts to download it.
The missing-updater bootstrap still uses its legacy HTTP URL. Provision pmblue_update before import to avoid that bootstrap. Account for this network and file-write side effect in offline builds, tests, and restricted production environments.
Defers module import until the module is actually used.
DelayModuleLoad(module_name, name_as=None, module_to_globals=True)
__getattr__(self, name)
Loads the real module, optionally replaces the placeholder, then resolves the requested attribute.
asyncio = DelayModuleLoad("asyncio")
await asyncio.sleep(1)
Defined in the aiohttp feature block. Because aiohttp is represented by a deferred loader, a missing installation can surface on first request rather than at module import.
Wraps aiohttp responses in a more requests-like interface.
AiohttpResponse(response, elapsed, data)
| Property | Description |
|---|---|
| content | Raw response bytes |
| text | Decoded text using response encoding |
| json() | Parses JSON from content |
| status / status_code | HTTP status code |
| headers | Response headers |
| cookies | Cookie dictionary |
| url | Resolved response URL |
| elapsed | Request duration |
await AiohttpResponse.get(...)
await AiohttpResponse.post(...)
await AiohttpResponse.delete(...)
await AiohttpResponse.ping(...)
async def download_file_async(url, dest_path, chunk_size=1024*1024, verbose=False, as_gzip=False): ...
When as_gzip=True, pass a destination without a .gz suffix; the current implementation appends it.
def download_file(url, dest_path, chunk_size=1024*1024): ...
requests| Function | Description |
|---|---|
| dec_amt(n) | Applies variable decimal rounding based on magnitude |
| format_time_sec(sec) | Formats seconds or timedelta into ps/ns/us/ms/s/m/h/d/w |
| format_size(size) | Formats bytes into b/kb/mb/gb |
| format_number(number) | Adds commas and trims unnecessary decimals |
| format_currency(number) | Formats as $1,234.56 |
| format_name(name) | Normalizes capitalization for names |
Measures performance across a fixed number of iterations or a fixed time window.
tm = TestManager(trial_amt=1000)
@tm.test_func
def test():
pass
tm.run()
tm.print_results()
| Argument | Description |
|---|---|
| trial_amt | Number of iterations to run |
| trial_time | How long to keep iterating |
| test_trial | Whether to subtract loop overhead estimate |
| Method | Description |
|---|---|
| test_func(func) | Registers a test function |
| run() | Runs the registered test function |
| start_trial() | Starts manual timing |
| end_trial() | Ends manual timing |
| print_results() | Prints trial count, total duration, and average duration |
| txt_results() | Returns a text summary |
| Function | Description |
|---|---|
| remove_outliers(data) | Removes values outside 1.5 × IQR |
| get_sd_dev(data) | Computes mean absolute deviation-like value, not a classic standard deviation |
| get_total(data) | Sums values |
| get_median(data) | Median for sorted sequences |
| is_even(amt) | Returns parity boolean |
Analyzes numeric datasets and exposes cached summary statistics.
DataInfo(data)
| Property | Description |
|---|---|
| len | Dataset size |
| total | Sum of values |
| avg | Average |
| median | Median |
| mode | Most frequent value |
| iqr | First and third quartile pair |
| range | (min, max) |
| sd_dev | Sample standard deviation |
| avg_dev | Average absolute deviation from mean |
| skewed | Skew approximation using mean, median, and sd |
| Method | Description |
|---|---|
| sorted_data() | Sorts and returns dataset |
| avg_no_outliers() | Average excluding outliers |
| is_outlier(n) | IQR-based outlier test |
| get_zscore(n) | Returns z-score |
| get_item(n) | Returns DataInfo.Item for a value |
| get_percentile(n) | Returns percentile, including interpolation in some cases |
| info_txt() | Full text summary |
| basic_info_txt() | Reduced summary |
| print() | Prints full summary |
| basic_print() | Prints reduced summary |
Represents a distinct numeric value in the dataset.
| Attribute | Description |
|---|---|
| number | The numeric value |
| frequency | Count of occurrences |
| zscore | Cached z-score |
| is_outlier | Cached outlier status |
| percentile | Cached percentile |
Similar in structure to DataInfo, but designed for more general sortable values and supports reverse sorting.
Recursively computes total directory size.
FileInfo(x)
x may be a path-like value, an os.DirEntry, or a directory entry with callable is_dir()/stat(). Pass an existing FileInfo's path to construct fresh metadata. Paths are normalized to forward slashes, but relative inputs remain relative.
| Property | Description |
|---|---|
| name | Filename |
| path | Supplied path with forward-slash separators |
| is_dir | Whether entry is a directory |
| size | File size or recursive directory size |
| modified | Modification timestamp |
| created_at | Platform-dependent ctime, converted to local datetime |
| Method | Description |
|---|---|
| all_files() | Returns non-recursive file list |
| all_files_recursive() | Returns recursive file list |
Checks whether the given path exists and returns its FileInfo, or None.
Simple ASCII table builder.
| Method | Description |
|---|---|
| add_column(name, length=None) | Adds a column |
| add_row(*args) | Adds a row |
| print(limit=None, send=True) | Renders the table as text |
Enhanced table builder supporting text output, HTML export, searching, sorting, and Flask-friendly pagination.
| Method | Description |
|---|---|
| add_column(...) | Adds a column, optionally with computed/default values |
| insert_column(...) | Inserts a column at a position |
| add_row(...) | Adds a row |
| remove_column(col_num) | Removes a column |
| print(...) | Renders text table |
| to_html(...) | Renders table as HTML |
| flask_pagination(...) | Builds paginated, searchable, sortable output for Flask requests |
table.to_html(max_len=100, condensed=True)
flask_pagination() reads request args like page, rows_per_page, search, sort_by, case, and adv, then filters and formats the selected rows.
| Function | Description |
|---|---|
| iter_dict(d) | Generator yielding (key, value) |
| sort_dict(d, key=None, reverse=False) | Sorts dictionary items into a new ordered dictionary |
Attempts string-to-number conversion:
"123" → 123"12.3" → 12.3Static helpers for reading, writing, and condensing CSV data. The default result is a ListTable with header-indexed Row objects; as_list=True returns raw row lists, and row.dict() converts a row.
| Method | Use |
|---|---|
read(arg, has_headers=True, as_list=False) | CSV-aware parser; accepts the file-like inputs supported by the file conversion helpers. |
basic_read(arg, has_headers=True, as_list=False, forgiving=False, by_line=None) | Fast parser. forgiving tolerates malformed row widths; by_line supports large inputs without reading the entire file first. |
basic_read_threaded(..., amt_per_thread=20000, max_workers=None) | Splits parsing work across a thread pool. |
no_quotes_read(...) | Optimized path for data known not to contain quoted fields. |
condense(fp, has_headers=True, unique_only=False, remove_func=None, remove_columns=[]) | Reduces a CSV while optionally removing rows/columns and duplicate rows. |
write(rows) / write_file(fp, rows) | Serialize rows to CSV text or a destination. |
Avoid reusing and mutating the default list passed to remove_columns; pass an explicit list in new code.
| Type | Behavior |
|---|---|
ListTable(rows, has_headers=True, read_only=True) | Wraps row data with header-based access and exports individual rows with row.dict(); use a list comprehension for all rows. |
CacheList(max_cache_size=100) | List plus a lookup cache. Use get(key, default); mutating methods keep the cache synchronized. |
Unique(max_items=None) | List-like collection that prevents duplicates and can cap retained items. |
UniqueDict() | Stores unique values by type and exposes the flattened values through all(). |
ListIndex(d, key=str, f_idx=0, nested_indexes=None) | Binary-search-backed index with exact, case-insensitive, list, and index-returning lookups. |
SortedList(d, key=str, reverse=False) | Maintains sorted order when values are appended. |
AttrDict(data={}) | Intended dictionary wrapper with attribute access and get(); current constructor recursively accesses its unset storage and can raise RecursionError. Use a normal dict until repaired. |
merge_iters(*args) | Iterates several input iterables as one sequence. |
ReverseListIter(item) | Reverse iterator for list-like data. |
IterLoop(i) | Cycles repeatedly over an iterable. |
Related helpers are randomize_list, count_dict,
count_print, make_json_parsable, and dict_print.
| Descriptor | Behavior |
|---|---|
AsyncProperty | Allows an async method to be awaited through property syntax. |
CachedProperty(func=None, expire=None) | Caches an async or sync property per instance; supports expiration, explicit cache inspection, and replacement by assignment. |
ClassProperty | Evaluates a getter against the class rather than an instance. |
CachedClassProperty(func=None, expire=None) | Class-level cached property with optional expiration. |
class Service:
@CachedProperty(expire=60)
async def status(self):
return await load_status()
service = Service()
status = await service.status
These are custom descriptors. Async values use await obj.property, not a method call.
| API | Purpose |
|---|---|
StringInfo(s) | String inspection, character counts, average word length, checks, and URL discovery. |
LinkInfo(url) | URL decomposition, base URL, query-string parsing, hashing, and link discovery. |
TxtParser(format_txt, ..., handle_not_found=False, possible_chars=['[', ']']) | Extracts named variables from format patterns; supports optional segments and regex-backed parsing. |
TxtParserExp | Experimental parser variant with the same pattern-oriented interface. |
TxtParserBasic | Smaller parser without optional-character configuration. |
split / split_multi | Current regex-optimized case-sensitive or case-insensitive splitting functions. |
split_old / split_multi_old | Compatibility implementations retained for callers that depend on the previous behavior. |
Matching | Normalization-aware match/within and fuzzy equivalents with configurable thresholds. See the dedicated guide below. |
Additional small helpers include get_between, get_all_between,
extract_int, place_suffix, bytes_to_str,
word_to_digit, name_to_normal,
convert_to_normal, convert_to_single_letters, and the intentionally
misspelled compatibility function equivilency_convert.
get* methods use the ordinary random source. Prefer
secure_get, secure_get_alpha,
secure_get_num, or secure_get_alphanum for tokens and credentials.
These helpers are available in the current 1.5.1.1 source. The ID format combines a base62 Unix-millisecond timestamp prefix with a random alphanumeric suffix.
| API | Return and behavior |
|---|---|
base10_to_base36(n) | Integer to text using 0–9A–Z. |
base10_to_base62(n) | Integer to text using 0–9A–Za–z. |
peyton_day_timestamp(dt=None) | Integer millionths of a day since 2000-01-01 00:00:00 UTC. Uses current time when dt is omitted. |
peyton_id_prefix(dt=None, leading_zeros=True) | Base62 Unix-millisecond timestamp text, padded to eight characters by default. |
peyton_id_prefix_to_timestamp(prefix) | Decodes a 4–8-character base62 prefix to a naive local datetime, despite its timestamp-oriented name. |
peyton_id(dt=None, length=16) | Timestamp prefix plus ordinary random suffix. |
peyton_id_secure(dt=None, length=16) | Timestamp prefix plus a suffix generated with secrets. |
import datetime
import toolbox
created_at = datetime.datetime.now(datetime.timezone.utc)
record_id = toolbox.peyton_id(dt=created_at, length=24)
decoded_local_time = toolbox.peyton_id_prefix_to_timestamp(record_id[:8])
print(toolbox.base10_to_base36(35)) # Z
print(toolbox.base10_to_base62(61)) # z
secure_record_id = toolbox.peyton_id_secure(length=32)
The timestamp prefix is predictable and reveals approximate creation time; the secure variant only makes the suffix cryptographically random. Neither function checks for collisions or validates requested length. Supply an integer length greater than eight when randomness is required. The conversion functions require integers; negative values currently produce an empty string. Use timezone-aware datetime inputs when the intended epoch must be unambiguous.
For an opaque random token without a timestamp, use the existing RandomString.secure_get_alphanum(size) helper.
Matching is a configurable text-comparison namespace. It can normalize Unicode,
ignore spaces, collapse repeated characters, apply phonetic substitutions, treat an asterisk as a positional wildcard,
and compare either complete strings or a substring window.
Version 1.5 adds Matching.Methods.levenshtein_local(a, b), returning an integer edit distance. The main fuzzy methods continue to use positional matching; they do not select this algorithm automatically.
Matching.Methods.levenshtein_local("kitten", "sitting")
# 3
| API | Purpose |
|---|---|
Matching.Methods.levenshtein_local(a, b) | Case-sensitive edit distance; counts insertions, deletions, and substitutions without normalization. |
Matching.Settings(...) | Stores the transformation and comparison options used by match() and within(). |
Matching.match(txt1, txt2, settings=None) | Transforms both inputs, then compares the complete resulting strings. |
Matching.within(txt1, txt2, settings=None) | Transforms both inputs, then tests whether the first occurs within the second. |
Matching.fuzzy_match(txt1, txt2, threshold=.8) | Low-level positional, case-insensitive similarity check. It does not run the normalization pipeline. |
Matching.fuzzy_within(txt1, txt2, threshold=.8) | Low-level sliding-window fuzzy search. It does not run the normalization pipeline. |
Matching.default_settings | Shared Settings() instance used when no settings object is supplied. |
Matching.Settings(
normalize=True,
extraneous_characters=False,
ignore_spaces=False,
match_asterisk=False,
fuzzy_threshold=1,
phonetic=False,
)
| Setting | Default | Exact behavior |
|---|---|---|
normalize | True | Runs convert_to_normal(), using Unicode NFKD decomposition and the module's custom Unicode-name transliteration rules. |
extraneous_characters | False | Collapses consecutive duplicate characters with convert_to_single_letters(). Despite the name, it does not remove punctuation. |
ignore_spaces | False | Removes ordinary space characters from both inputs. It does not explicitly remove tabs or newlines. |
match_asterisk | False | Treats * as a wildcard for one character at the same position. It is not a glob wildcard and does not match an arbitrary-length sequence. |
fuzzy_threshold | 1 | 1 selects exact comparison. Other values use the fraction of equal character positions; typical values are between 0 and 1. |
phonetic | False | Runs the module's ordered phonetic substitutions, such as ph → f, c → k, and several vowel/syllable equivalences. |
match() and within() transform both inputs in this order:
convert_to_normal().0 → o, @ → a, $ → s, 1 → i, z → 2, and + → t.Case behavior: normalization lowercases text. With normalize=False,
match() can be case-sensitive on the exact path, while within() and low-level fuzzy comparisons still lowercase.
Interchange substitutions are always applied by the high-level methods. This differs from the older standalone normalize module.
| Need | Use |
|---|---|
| Compare two complete values with configurable normalization | Matching.match() |
| Find a normalized value inside longer text | Matching.within() |
| Compare character positions without normalization | Matching.fuzzy_match() |
| Search fixed-width windows without normalization | Matching.fuzzy_within() |
# Default comparison: normalized, case-insensitive, exact.
Matching.match("Héllô", "hello")
# True
# Interchange substitutions are always applied.
Matching.match("0scar", "Oscar")
# True
# Ignore formatting spaces.
compact = Matching.Settings(ignore_spaces=True)
Matching.match("AB 123", "AB123", compact)
# True
# Collapse repeated consecutive letters.
dedupe = Matching.Settings(extraneous_characters=True)
Matching.match("hello", "helo", dedupe)
# True
# Asterisk matches one position, not an arbitrary substring.
masked = Matching.Settings(match_asterisk=True)
Matching.match("h*llo", "hello", masked)
# True
# Require at least 80% equal character positions.
fuzzy = Matching.Settings(fuzzy_threshold=.8)
Matching.match("12345", "12344", fuzzy)
# True
# Apply the module's phonetic substitutions.
phonetic = Matching.Settings(phonetic=True)
Matching.match("phone", "fone", phonetic)
# True
# Search inside a longer transformed string.
Matching.within("Main St", "10 Main Street")
# True
fuzzy_match() compares only pairs produced by zip(), so an unmatched trailing suffix on the longer input is ignored. High-level methods inherit this behavior whenever fuzzy_threshold is not 1.fuzzy_match() divides by the number of compared positions and therefore raises ZeroDivisionError when no character pair is available.0 through 1.Matching.default_settings globally; construct a dedicated Matching.Settings object for non-default behavior.name_matching = Matching.Settings(
normalize=True,
ignore_spaces=True,
extraneous_characters=False,
phonetic=True,
fuzzy_threshold=.9,
)
if Matching.match(submitted_name, stored_name, name_matching):
...
For identity, authentication, compliance, or deduplication decisions, treat this class as one signal rather than definitive proof of a match.
| Type | Purpose and important behavior |
|---|---|
CountryInfo(key=None, compressed_requests=False) | Country metadata lookup. |
IpInfo(ip=None, data=None) | Synchronous IP metadata with IPv4/IPv6 validation, dictionary output, reverse DNS, and a process cache. |
AsyncIpInfo(ip=None, data=None) | Async IP lookup with memory/file/SQLite cache modes. Cache records expire after one week by default and can be configured through class settings. |
WebRequestInfo(user_agent, ip) | Combines user-agent and IP context and can confirm major crawler networks with forward/reverse DNS checks. |
StandardRequest(request) | Normalizes request objects from supported web frameworks into common path, scheme, query, IP, body, and user-agent accessors. |
UserAgent(txt) | Parses device, OS, browser, versions, mobile/tablet state, and bot identity. |
request = StandardRequest(framework_request)
ua = UserAgent.from_request(request)
if ua and ua.is_mobile:
print(ua.browser, ua.browser_version)
UserAgent.from_request considers Client Hints as well as the User-Agent header and accepts
both a native request object and StandardRequest. Current parsing includes modern iPhone Safari formats, tolerates malformed version strings, and adds the UserAgent.Formats.bot6 pattern for ClaudeBot-style crawler headers.
ZF_REQ and run_code(code, **kwargs) are specialized internal-facing helpers;
inspect their implementation before exposing them to untrusted input. Never pass untrusted code to run_code.
| API | Purpose |
|---|---|
Time | to_min, parse_datetime, parse_time, parse_date, and date-format generation. |
epoch(epoch_timestamp=None) | Converts between epoch-oriented values and the module's datetime representation. |
TimeEstimate(amt=None, print_every=None, ...) | Tracks completed work, elapsed/average duration, percent complete, and estimated completion. |
ActionQueue(queue_file='queue.json', queue_file_type=None, loop_interval=60, remove_on_err=True) | Persists scheduled actions and runs registered handlers. create_action accepts datetime, date, timedelta, and supported numeric activation values. |
iCalendar(name, uid, ...) | Adds events and generates iCalendar text. |
vCard(first_name, last_name, ...) | Adds phone/email/address/organization metadata and generates a contact card. |
Version(v_str) | Comparable, normalized dotted-version value used by compatibility checks. |
calendar = iCalendar("Support rota", "[email protected]")
calendar.add_event("On call", "event-1", starts_at, ends_at)
ics_text = calendar.generate()
Address(d, correct_address=True, parse_address=True) accepts a string, mapping, or supported address-like value.
It normalizes street suffixes, state abbreviations, ZIP/postal codes, and common misplaced fields. Use
Address.parse_address(text) for direct parsing, to_dict() for serialization,
and compare_address for normalized comparison. Aliases include street, street2,
zip_code, and postal_code. Version 1.5 uses precomputed street-suffix and state-name lookups to speed up parsing.
PhoneNumber(number) normalizes a phone number and exposes e164,
domestic_format, and international_format.
| Type | Purpose |
|---|---|
AndroidDevice / AgentFormat | Device catalog and user-agent format support. |
Permission.evaluate_permission(primary, evaluate) | Checks exact, prefix, suffix, and wildcard-style permission relationships. |
Extra(...) | Manages encoded non-standard database-column data, with dictionary or list-like mutations followed by save(). |
BivariateData(data) / Slope(slope, yint) | Correlation, regression slope, and linear equation representation. |
Integrations are grouped under the lowercase plugins namespace; instantiate a nested class directly.
mailgun = plugins.Mailgun(api_key, domain,
default_from="Support <[email protected]>",
default_archive_to="[email protected]")
response = await mailgun.send_email(
"Welcome", "[email protected]", html="<p>Hello</p>"
)
send_email accepts one of text, html, or template, plus CC/BCC,
reply-to, template variables, and per-message archive_to. The per-message value overrides the constructor default.
twilio = plugins.Twilio(account_sid, auth_token, default_from="+15551234567")
await twilio.send_sms("+15557654321", body="Hello")
lookup = await twilio.lookup(
"+15557654321",
["line_status", "line_type_intelligence"]
)
active = lookup.line_status.is_line_active if lookup.line_status else None
lookup(phone_number, lookup_fields, **params) accepts a field string or list and forwards additional query parameters.
It returns plugins.Twilio.LookupNumber, which retains response-style properties such as
status_code, headers, text, json(), and raise_for_status(), while also exposing parsed
caller_name, identity_match, line_status, and line_type_intelligence objects.
identity_match(..., **params) formats supported birth dates as YYYYMMDD and accepts an
Address, mapping, or string. Convenience methods line_status(phone) and is_line_active(phone) return parsed status;
the latter is tri-state: True, False, or None when unknown.
plugins.UserManager(dbm, tbl_name='users', mfa_tbl=None, session_validator=None) integrates with
aiosqliteObj. It creates required user/session columns, hashes passwords, caches users, and manages persisted sessions.
Nested types include User, UserSession, UserSession.Validation, and MFA.
add_user, get_user, and get_session are async.RandomString.secure_get_alphanum.Alphabetical glossary of the public toolbox API. “Conditional” entries exist only when their optional dependency is available.
| Name | Definition |
|---|---|
ActionQueue | Persistent scheduler that maps named actions to handlers and executes them when activated. |
Address | Parses, normalizes, serializes, and compares postal addresses. |
AgentFormat | Associates a text parser with user-agent OS, device, mobile, and tablet metadata. |
AiohttpResponse | Requests-like wrapper around a fully read aiohttp response; conditional on aiohttp support. |
AndroidDevice | Represents and looks up Android device metadata from the module's device catalog. |
AsyncIpInfo | Asynchronous IP metadata lookup with configurable memory, file, or SQLite caching. |
AsyncProperty | Descriptor that exposes an async getter through property syntax. |
AttrDict | Dictionary wrapper whose keys are also accessible as attributes. |
BivariateData | Calculates correlation and a fitted slope from paired numeric observations. |
CachedClassProperty | Class-level cached descriptor with optional time-based expiration. |
CachedProperty | Instance-level cached descriptor supporting async values, expiration, inspection, and replacement by assignment. |
CacheList | List-like collection with an auxiliary lookup cache for fast retrieval. |
Cell | Typed cell value used internally by Table. |
ClassProperty | Descriptor that evaluates a property getter against the class. |
CodeFormat | Pygments-backed HTML formatter for Python, console, and traceback text; conditional on Pygments. |
Column | Column metadata, width, and totals support for Table. |
CountryInfo | Loads country metadata and resolves countries from supported keys. |
CSVReader | Namespace for standard, fast, threaded, streaming, and quote-free CSV parsing and writing. |
DataInfo | Cached descriptive statistics for numeric datasets, including quartiles, outliers, and z-scores. |
DataInfoMisc | Descriptive-statistics variant for broader sortable values and reverse ordering. |
DelayModuleLoad | Proxy that imports a module the first time an attribute is accessed. |
Extra | Reads and mutates encoded list/dictionary data stored in a database column. |
FileInfo | Normalized file/directory metadata with child and recursive file enumeration. |
iCalendar | Builder for events and serialized iCalendar content. |
IpInfo | Synchronous IP metadata, validation, serialization, reverse DNS, and caching. |
IterLoop | Iterator that restarts at the beginning whenever its input sequence is exhausted. |
LinkInfo | Parses URLs into host, path, query, domain, and link-discovery information. |
ListIndex | Binary-search-oriented index over a list, including exact and case-insensitive lookups. |
ListTable | Header-aware wrapper for rows with dictionary export. |
Matching | Configurable normalized, positional-wildcard, phonetic, exact, containment, and fuzzy text matching; includes nested Settings. |
merge_iters | Iterator class that yields several iterables as a single sequence. |
Permission | Namespace for evaluating exact and wildcard-like permission strings. |
PhoneNumber | Normalized phone number with E.164, domestic, and international formatting. |
plugins | Namespace containing the Mailgun, Twilio, and UserManager integrations and their response/session types. |
RandomString | Namespace for ordinary and cryptographically secure random strings by character set. |
ReqInfo | Serializable request snapshot with parsed URL, user-agent, IP, location, and crawler checks. |
ReverseListIter | Iterator that traverses a list-like value in reverse. |
Row | Row container used internally by Table. |
ServerAnalytics | Minimal analytics state container retaining a bounded set of recent requests. |
Slope | Value object for a linear slope and y-intercept. |
SortedList | List that inserts appended values while preserving configured sort order. |
StandardRequest | Adapter exposing common request fields across supported web frameworks. |
StringInfo | String analysis helper for character, word, pattern, and link inspection. |
Table | Basic fixed-width text table composed of columns, rows, and cells. |
TestManager | Benchmark runner supporting fixed iteration counts, time windows, and manual trials. |
Time | Namespace for duration conversion and flexible date/time parsing. |
TimeEstimate | Progress tracker that estimates remaining time, completion time, and average duration. |
TxtParser | Pattern parser that extracts named values and supports optional sections. |
TxtParserBasic | Reduced named-value pattern parser without optional-section configuration. |
TxtParserExp | Experimental variant of the named-value text parser. |
TxtTable | Enhanced text table with CSV/HTML output and Flask-oriented filtering, sorting, and pagination. |
Unique | List-like collection that rejects duplicates and can cap retained items. |
UniqueDict | Type-grouped unique-value collection with flattened access. |
UserAgent | Parses browser, OS, device, version, mobility, and crawler identity from headers. |
vCard | Builder for contact details serialized as vCard text. |
Version | Normalized, comparable dotted-version value. |
WebRequestInfo | Combines an IP and user agent and confirms known crawler networks through DNS. |
ZF_REQ | Specialized proxy downloader that requests compressed remote content and unwraps the ZIP response. |
| Name | Definition |
|---|---|
base10_to_base36, base10_to_base62 | Convert a nonnegative integer to the documented base alphabet. |
peyton_day_timestamp | Returns integer millionths of a day since the start of 2000 UTC. |
peyton_id_prefix | Encodes the Unix-millisecond timestamp as a base62 prefix. |
peyton_id_prefix_to_timestamp | Decodes a prefix into a naive local datetime. |
peyton_id, peyton_id_secure | Build timestamp-prefixed IDs using ordinary or secure random suffixes. |
bytes_to_str | Decodes bytes by trying the module's supported encodings. |
convert_to_normal | Applies Unicode NFKD decomposition and custom character-name replacements, returning lowercase text. Phonetic conversion is a separate function. |
convert_to_single_letters | Collapses consecutive duplicate characters. |
count_dict | Builds a frequency mapping, optionally using custom comparison or estimation. |
count_print | Prints frequency information with an optional output-line limit. |
dec_amt | Chooses a decimal precision based on numeric magnitude. |
dict_print | Prints a dictionary as formatted JSON-like text. |
dir_size | Returns the recursive byte size of a directory. |
download_file | Streams a URL to disk synchronously, with a legacy-TLS retry path. |
download_file_async | Streams a URL to disk asynchronously with progress and optional gzip output; conditional on aiohttp. |
epoch | Returns the current epoch, converts an epoch to datetime, or converts a datetime to epoch. |
equivilency_convert | Applies phonetic-equivalence substitutions; the misspelling is part of the public API. |
extract_int | Extracts digit characters from a value and returns them as a string. |
file_arg_to_buffer | Normalizes supported path, byte, string, or file-like inputs to a binary buffer. |
file_arg_to_file | Normalizes supported inputs to an opened file-like object. |
file_arg_to_fp | Resolves a supported file argument to its filesystem path when possible. |
file_arg_to_str | Reads or converts a supported file argument to text. |
format_currency | Formats a numeric value as dollar currency. |
format_name | Applies person-name capitalization rules. |
format_number | Adds grouping separators and removes unnecessary decimal zeros. |
format_size | Formats a byte count with a human-readable unit. |
format_time_sec | Formats seconds or a timedelta using an appropriate duration unit. |
get_all_between | Returns every substring bounded by start and end delimiters. |
get_between | Returns the first substring bounded by start and end delimiters. |
get_median | Returns the middle value (or midpoint pair) and assumes the supplied sequence is already sorted. |
get_sd_dev | Calculates the module's deviation metric; see the statistics caveat above. |
get_total | Sums the supplied data. |
haversine | Calculates great-circle distance between two latitude/longitude points. |
is_class_instance | Tests whether a value appears to be an instantiated class object. |
is_even | Returns whether a numeric amount is even. |
is_json_parsable | Recursively checks whether a value can be represented by the module's JSON rules. |
iter_dict | Yields dictionary key/value pairs. |
make_json_parsable | Recursively converts common non-JSON values into serializable representations. |
name_to_normal | Maps a Unicode character-name string to a custom replacement; returns None when no mapping exists. |
obj_attr_print | Prints selected attributes from an object. |
obj_attr_txt | Returns selected object attributes as text. |
place_suffix | Returns an English ordinal suffix such as st, nd, rd, or th. |
quick_save | Writes data to a path or supported file destination with minimal setup. |
randomize_list | Returns a randomly reordered copy of a list. |
remove_outliers | Returns data inside the module's 1.5-IQR outlier bounds. |
run_code | Executes Python code while capturing stdout or a traceback; unsafe for untrusted input. |
scan_for_file | Returns FileInfo for an existing path, or None. |
sort_dict | Returns a dictionary ordered by key or a supplied sort callback. |
split | Current optimized split implementation with count and case-sensitivity controls. |
split_multi | Splits text on any of several delimiters. |
split_multi_old | Compatibility implementation of multi-delimiter splitting. |
split_old | Compatibility implementation of single-delimiter splitting. |
to_numb | Converts numeric-looking strings to int or float and leaves other inputs unchanged. |
word_to_digit | Converts a supported written number word to a digit value. |
This index lists every non-underscore top-level function and class in version 1.5.1.1. Some classes are support types normally created by a higher-level API.
| Area | Public symbols |
|---|---|
| Loading and HTTP | DelayModuleLoad, AiohttpResponse (when aiohttp is available), download_file_async (when aiohttp is available), download_file |
| Formatting and numbers | dec_amt, format_time_sec, format_size, format_number, format_currency, format_name, to_numb, place_suffix, extract_int |
| Statistics and measurement | TestManager, remove_outliers, get_sd_dev, get_total, get_median, is_even, DataInfo, DataInfoMisc, BivariateData, Slope, TimeEstimate |
| Files and serialization | dir_size, FileInfo, scan_for_file, bytes_to_str, file_arg_to_str, file_arg_to_buffer, file_arg_to_file, file_arg_to_fp, quick_save, make_json_parsable, is_json_parsable |
| Tables and CSV | Table, Column, Row, Cell, TxtTable, CSVReader, ListTable |
| Collections | iter_dict, sort_dict, merge_iters, randomize_list, IterLoop, CacheList, Unique, UniqueDict, count_dict, ReverseListIter, ListIndex, SortedList, AttrDict, count_print, dict_print |
| Descriptors | AsyncProperty, CachedProperty, ClassProperty, CachedClassProperty |
| Text and parsing | RandomString, get_all_between, get_between, StringInfo, LinkInfo, obj_attr_print, obj_attr_txt, TxtParserExp, TxtParser, TxtParserBasic, split_multi_old, split_old, split_multi, split, word_to_digit, name_to_normal, convert_to_normal, convert_to_single_letters, equivilency_convert, Matching, CodeFormat (when Pygments is available) |
| Network and requests | ZF_REQ, CountryInfo, IpInfo, AsyncIpInfo, AndroidDevice, AgentFormat, UserAgent, WebRequestInfo, StandardRequest, ServerAnalytics, ReqInfo |
| Timestamp IDs and bases | peyton_day_timestamp, peyton_id_prefix, peyton_id_prefix_to_timestamp, peyton_id, peyton_id_secure, base10_to_base36, base10_to_base62 |
| Time and formats | Time, epoch, ActionQueue, iCalendar, vCard, Version |
| Domain and integrations | Address, Extra, PhoneNumber, Permission, plugins, haversine, is_class_instance, run_code |
This guide describes the distributed source at 1.5.1.1. Recent additions and retained features include:
Matching.Methods.levenshtein_local alongside the existing positional fuzzy functions.random.choices for ordinary alphanumeric generation, and deferred urllib3/concurrent.futures loading.bot6 user-agent pattern and removal of eager installation of a missing aiosqliteObj during startup.archive_to support at both client and message level.Time.parse_date and broader accepted date inputs in Twilio identity matching.scan_for_file and expanded FileInfo input handling.AttrDict, CacheList, and large-file CSV parsing through by_line.AsyncIpInfo caches and increased aiohttp header-field allowance for large-download endpoints.di = DataInfo([1, 2, 3, 4, 100])
print(di.info_txt())
t = Table()
t.add_column("Name")
t.add_column("Value")
t.add_row("A", 100)
t.add_row("B", 200)
t.print()
resp = await AiohttpResponse.get("https://example.com")
print(resp.text)
Most toolbox APIs fit one of three calling styles: plain functions return converted values, namespace classes such as CSVReader expose functions called directly on the class, and stateful objects such as TxtTable hold data across method calls. Async methods must be awaited; custom async properties use await object.property.
| Family | Input and result | State or side effect |
|---|---|---|
| Formatting functions | format_number, format_currency, format_size, and format_time_sec return display strings. place_suffix(21) returns only "st". | Use the original numeric value for calculations. to_numb only converts recognized numeric-looking strings and may return the original input. |
FileInfo(path) | Metadata object with name, path, is_dir, byte size, and datetime modified/created_at. | Reads filesystem metadata immediately; directory construction calculates recursive size. Timestamps are naive local datetimes; created_at uses platform-dependent stat ctime. |
DataInfo(data) | Numeric collection summary with cached len, total, avg, median, range, and other statistics. get_item(value) returns a DataInfo.Item with frequency and lazy statistics. | Keeps your input list and may sort it in place. Pass a copy if ordering matters. Cached results do not automatically refresh after arbitrary mutation; create a new DataInfo for changed data. |
TxtTable(...) | add_column returns Column, add_row returns Row, and a Row's data contains Cell objects with underlying/display values. | print(send=False) returns text; the default also prints. CSV and HTML exports return strings. Add columns before rows and pass one value per column. |
CSVReader → ListTable → ListTable.Row | Read methods return a ListTable by default. Index a row with a column name or integer, or call row.dict(). as_list=True returns raw row lists, including the header row. | Reads consume file-like inputs. Parsers materialize the result even when input reading is line-oriented. Use [row.dict() for row in table]; current ListTable.dict() references a nonexistent attribute. |
TxtParser(format_txt, ...) | Callable parser object. Named placeholders such as <name> become dictionary keys; calling it returns a dictionary or None when no match is found. | Compiles its pattern during construction. handle_not_found=True uses looser matching and can return None-valued fields. It is a pattern helper, not an input-validation schema. |
CacheList(max_cache_size=100) | get(key, default=None) retrieves a stored object; pop(index=-1) removes and returns one; append/add/remove return None. | Uses a key dictionary plus an eviction queue. Set stringify_func(callable) before adding values. Re-appending an existing key refreshes eviction order but retains the original object. |
scan_for_file(path) returns a FileInfo when the path exists, otherwise None. FileInfo.all_files() and all_files_recursive() return filename strings, not FileInfo objects or reliable full paths; recursive results can contain the same basename from different subdirectories.
Many namespace methods omit self; call CSVReader.read(...), Time.parse_time(...), and Matching.match(...) on the class. Constructing and calling them as ordinary instance methods may pass an unexpected argument.
The default CSV result is a ListTable. Its rows support header-based indexing; the report creates separate typed cells so numeric display formatting can apply. No external file or service is required after the import-time updater setup.
import io
import toolbox
csv_input = io.StringIO("name,amount\nAda,1200\nGrace,85.5\n")
data = toolbox.CSVReader.basic_read(csv_input)
report = toolbox.TxtTable(format_numbers=True)
report.add_column("Name")
report.add_column("Amount")
for row in data:
report.add_row(row["name"], toolbox.to_numb(row["amount"]))
print(report.print(send=False))
plain_records = [row.dict() for row in data]
print(plain_records[0]["name"]) # Ada
csv_output = toolbox.CSVReader.write([
["name", "amount"],
*[[record["name"], record["amount"]] for record in plain_records],
])
print(csv_output)
CSVReader.write(rows) expects an iterable of row sequences and returns text. write_file(path, rows) also writes/closes its destination. condense() rewrites its input file. The custom serializer quotes commas and quotes but does not cover every multiline CSV case; use Python's standard csv module when general CSV interoperability is required.
CacheList stores objects by the key returned by your callback. Looking up a key does not refresh its eviction position. In this example, adding a third distinct key evicts the first because the capacity is two.
import toolbox
cache = toolbox.CacheList(max_cache_size=2)
cache.stringify_func(lambda item: item["id"])
cache.append({"id": "a", "name": "Ada"})
cache.append({"id": "b", "name": "Grace"})
print(cache.get("a")["name"]) # Ada
cache.append({"id": "c", "name": "Linus"})
print(cache.get("a")) # None
print(cache.pop()["name"]) # Linus
class Report:
def __init__(self, values):
self.values = list(values)
self.calculations = 0
@toolbox.CachedProperty(expire=60)
def total(self):
self.calculations += 1
return sum(self.values)
report = Report([10, 20])
print(report.total, report.total, report.calculations) # 30 30 1
print(Report.total.is_cached(report)) # True
report.total = 40 # Explicitly replace the cached value.
print(report.total) # 40
CachedProperty accepts an expiry in seconds or a timedelta. Read the descriptor through the class, as in Report.total.is_cached(report) and get_cached(report). Assignment replaces the cached value and resets its expiry; a decorated setter may transform the assigned value. There is no public cache-clear method. A changed underlying list does not invalidate the property automatically.
TxtParser captures strings; convert each field explicitly. PhoneNumber strips nondigits, assumes +1 for ten digits, and treats extra leading digits as a country code. It formats values but does not validate real numbering-plan assignments.
import toolbox
parser = toolbox.TxtParser("<name> ; <phone>")
fields = parser("Ada Lovelace ; (212) 555-0100")
if fields is None:
raise ValueError("Expected name ; phone")
phone = toolbox.PhoneNumber(fields["phone"])
print(phone.e164) # +12125550100
print(phone.domestic_format) # (212) 555-0100
print(phone.country_code, phone.area_code) # +1 212
address = toolbox.Address({
"address1": "10 Main Street",
"address2": None,
"city": "New York",
"state": "NY",
"zip": "10001",
}, correct_address=False)
print(address.street)
print(address.to_dict()["zip"])
print(toolbox.Matching.match("Héloise", "HELOISE")) # True
Address owns mutable address1, address2, city, state, and zip fields. street, street2, zip_code, and postal_code are read aliases. to_dict() returns those five fields; parsed_address and compare_address are cached string properties, not methods. Construct a new Address after changing fields if fresh cached normalization is required. Address normalization does not verify postal deliverability.
This example requires aiohttp and network access. The response helpers consume the response body before returning AiohttpResponse. Then content, text, and json() are synchronous byte/string/decoded-JSON accessors; await the request, not those accessors.
import asyncio
import aiohttp
import toolbox
async def main():
response = await toolbox.AiohttpResponse.get(
"https://example.com/",
timeout=aiohttp.ClientTimeout(total=10),
)
response.raise_for_status()
print(response.status_code, response.url)
print(len(response.content), response.elapsed.total_seconds())
print(response.text[:80])
asyncio.run(main())
get, post, and delete forward arguments to aiohttp requests and return AiohttpResponse. headers, cookies, status_code/status, url, encoding, and elapsed provide response metadata. raise_for_status() raises for HTTP errors; methods do not call it automatically. ping() issues a GET, closes the response without loading its body, and returns None.
Generated from modules/toolbox.py; version 1.5.1.1. Includes public functions, classes, directly declared methods, properties, and Python protocol methods. Conditional APIs may require optional dependencies. Inherited members and dynamically assigned attributes are explained in the guide where relevant.
Signatures and docstrings are extracted without importing or running the module. A property or AsyncProperty decorator changes how a member is accessed; see its decorators and the guide.
DelayModuleLoadAiohttpResponseTestManagerFileInfoDataInfoDataInfo.ItemDataInfoMiscDataInfoMisc.ItemTableColumnRowCellTxtTableTxtTable.ColumnTxtTable.RowTxtTable.CellRandomStringmerge_itersCSVReaderCSVReader.CharsAfterQuotedCSVReader.RowCountMismatchListTableListTable.RowAsyncPropertyCachedPropertyClassPropertyCachedClassPropertyStringInfoLinkInfoZF_REQZF_REQ._dataIterLoopCountryInfoIpInfoAsyncIpInfoBivariateDataBivariateData.DataPointSlopeCacheListUniqueUniqueDictTimeEstimateReverseListIterTxtParserExpTxtParserTxtParserBasicAndroidDeviceAndroidDevice._DeviceIndexAgentFormatUserAgentUserAgent.FormatsUserAgent.Formats._opt_iterUserAgent.Formats._opt_itersUserAgent.VersionTimeTime._TimestampFormatTime._MeasureWebRequestInfoActionQueueActionQueue.ItemActionQueue._check_iteriCalendariCalendar.EventvCardAddressCodeFormatStandardRequestListIndexSortedListAttrDictServerAnalyticsReqInfoVersionExtraPhoneNumberPermissionpluginsplugins.Mailgunplugins.Twilioplugins.Twilio.LookupNumberplugins.Twilio.LookupNumber.CallerNameplugins.Twilio.LookupNumber.IdentityMatchplugins.Twilio.LookupNumber.LineStatusplugins.Twilio.LookupNumber.LineTypeIntelligenceplugins.UserManagerplugins.UserManager.Userplugins.UserManager.UserSessionplugins.UserManager.UserSession.Validationplugins.UserManager.MFAMatchingMatching.MethodsMatching.Settingsdownload_file_asyncdownload_filedec_amtformat_time_secformat_sizeformat_numberformat_currencyformat_nameremove_outliersget_sd_devget_totalget_medianis_evendir_sizescan_for_fileiter_dictsort_dictto_numbplace_suffixpeyton_day_timestampbase10_to_base36base10_to_base62peyton_id_prefixpeyton_id_prefix_to_timestamppeyton_idpeyton_id_secureget_all_betweenget_betweenbytes_to_strfile_arg_to_strfile_arg_to_bufferfile_arg_to_filefile_arg_to_fpextract_intrandomize_listquick_saveobj_attr_printobj_attr_txtcount_dictmake_json_parsabledict_printsplit_multi_oldsplit_oldsplit_multisplitis_class_instanceis_json_parsableepochrun_codecount_printhaversineword_to_digitname_to_normalconvert_to_normalconvert_to_single_lettersequivilency_convertclass DelayModuleLoadSource line 16
Construct: DelayModuleLoad(module_name, name_as=None, module_to_globals=True)
Declared functions, properties, and nested objects:
DelayModuleLoad.__init__ — methodDelayModuleLoad.__getattr__ — methodDelayModuleLoad.__init__(self, module_name, name_as=None, module_to_globals=True)Source line 18
| Parameter | Passing convention | Default / required |
|---|---|---|
module_name | positional or keyword | required |
name_as | positional or keyword | None |
module_to_globals | positional or keyword | True |
DelayModuleLoad.__getattr__(self, name)Source line 45
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
class AiohttpResponseSource line 255
Allows for requests to be done similar to requests module w/ aiohttp, with response object being
Construct: AiohttpResponse(r, elapsed, data)
Fields assigned by the constructor: content, elapsed. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
AiohttpResponse.__init__ — methodAiohttpResponse.raise_for_status — methodAiohttpResponse.json — methodAiohttpResponse.text — propertyAiohttpResponse.get — async methodAiohttpResponse.post — async methodAiohttpResponse.delete — async methodAiohttpResponse.ping — async methodAiohttpResponse.__init__(self, r, elapsed, data)Source line 260
| Parameter | Passing convention | Default / required |
|---|---|---|
r | positional or keyword | required |
elapsed | positional or keyword | required |
data | positional or keyword | required |
AiohttpResponse.raise_for_status(self)Source line 288
No caller-supplied parameters are declared.
AiohttpResponse.json(self)Source line 290
Get json content as a dictionary.
No caller-supplied parameters are declared.
AiohttpResponse.text(self)Source line 294
Decorators: @property
Get content as a string
No caller-supplied parameters are declared.
async AiohttpResponse.get(*args, **kwargs)Source line 299
Make a GET request via aiohttp.
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
kwargs | extra keyword arguments (**kwargs) | optional collection |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async AiohttpResponse.post(*args, **kwargs)Source line 309
Make a POST request via aiohttp.
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
kwargs | extra keyword arguments (**kwargs) | optional collection |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async AiohttpResponse.delete(*args, **kwargs)Source line 319
Make a DELETE request via aiohttp.
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
kwargs | extra keyword arguments (**kwargs) | optional collection |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async AiohttpResponse.ping(*args, **kwargs)Source line 329
Make a GET request without loading all of page content.
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
kwargs | extra keyword arguments (**kwargs) | optional collection |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async download_file_async(url, dest_path, chunk_size=1024 * 1024, verbose=False, as_gzip=False)Source line 337
| Parameter | Passing convention | Default / required |
|---|---|---|
url | positional or keyword | required |
dest_path | positional or keyword | required |
chunk_size | positional or keyword | 1024 * 1024 |
verbose | positional or keyword | False |
as_gzip | positional or keyword | False |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
download_file(url, dest_path, chunk_size=1024 * 1024)Source line 376
| Parameter | Passing convention | Default / required |
|---|---|---|
url | positional or keyword | required |
dest_path | positional or keyword | required |
chunk_size | positional or keyword | 1024 * 1024 |
dec_amt(n)Source line 416
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
format_time_sec(sec)Source line 429
| Parameter | Passing convention | Default / required |
|---|---|---|
sec | positional or keyword | required |
format_size(size)Source line 487
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
format_number(number)Source line 505
| Parameter | Passing convention | Default / required |
|---|---|---|
number | positional or keyword | required |
format_currency(number)Source line 524
| Parameter | Passing convention | Default / required |
|---|---|---|
number | positional or keyword | required |
format_name(name)Source line 528
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
class TestManagerSource line 542
Construct: TestManager(**kwargs)
Fields assigned by the constructor: end, start, test_trial, trial_amt, trial_time, trial_type. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TestManager.__init__ — methodTestManager.__iter__ — methodTestManager.__next__ — methodTestManager.empty_trial_iter — methodTestManager.empty_trial_run — methodTestManager.empty_trial_manual — methodTestManager.duration — propertyTestManager.duration_str — propertyTestManager.avg_duration — propertyTestManager.avg_duration_str — propertyTestManager.test_func — methodTestManager.run — methodTestManager.start_trial — methodTestManager.end_trial — methodTestManager.print_results — methodTestManager.txt_results — methodTestManager.__init__(self, **kwargs)Source line 543
| Parameter | Passing convention | Default / required |
|---|---|---|
kwargs | extra keyword arguments (**kwargs) | optional collection |
TestManager.__iter__(self)Source line 568
No caller-supplied parameters are declared.
TestManager.__next__(self)Source line 577
No caller-supplied parameters are declared.
TestManager.empty_trial_iter(**kwargs)Source line 612
| Parameter | Passing convention | Default / required |
|---|---|---|
kwargs | extra keyword arguments (**kwargs) | optional collection |
TestManager.empty_trial_run(trial_count)Source line 617
| Parameter | Passing convention | Default / required |
|---|---|---|
trial_count | positional or keyword | required |
TestManager.empty_trial_manual(trial_count)Source line 624
| Parameter | Passing convention | Default / required |
|---|---|---|
trial_count | positional or keyword | required |
TestManager.duration(self)Source line 633
Decorators: @property
No caller-supplied parameters are declared.
TestManager.duration_str(self)Source line 641
Decorators: @property
No caller-supplied parameters are declared.
TestManager.avg_duration(self)Source line 644
Decorators: @property
No caller-supplied parameters are declared.
TestManager.avg_duration_str(self)Source line 647
Decorators: @property
No caller-supplied parameters are declared.
TestManager.test_func(self, func)Source line 649
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
TestManager.run(self)Source line 651
No caller-supplied parameters are declared.
TestManager.start_trial(self)Source line 663
No caller-supplied parameters are declared.
TestManager.end_trial(self)Source line 666
No caller-supplied parameters are declared.
TestManager.print_results(self)Source line 673
No caller-supplied parameters are declared.
TestManager.txt_results(self)Source line 677
No caller-supplied parameters are declared.
remove_outliers(data)Source line 683
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
get_sd_dev(data)Source line 731
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
get_total(data)Source line 750
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
get_median(data)Source line 761
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
is_even(amt)Source line 783
| Parameter | Passing convention | Default / required |
|---|---|---|
amt | positional or keyword | required |
dir_size(dir_path)Source line 790
| Parameter | Passing convention | Default / required |
|---|---|---|
dir_path | positional or keyword | required |
class FileInfoSource line 804
Construct: FileInfo(x)
Fields assigned by the constructor: created_at, is_dir, modified, name, path, size. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
FileInfo.__init__ — methodFileInfo.all_files_recursive — methodFileInfo.all_files — methodFileInfo.__str__ — methodFileInfo.__repr__ — methodFileInfo.__init__(self, x)Source line 805
| Parameter | Passing convention | Default / required |
|---|---|---|
x | positional or keyword | required |
FileInfo.all_files_recursive(self)Source line 829
No caller-supplied parameters are declared.
FileInfo.all_files(self)Source line 843
No caller-supplied parameters are declared.
FileInfo.__str__(self)Source line 853
No caller-supplied parameters are declared.
FileInfo.__repr__(self)Source line 855
No caller-supplied parameters are declared.
scan_for_file(file)Source line 860
| Parameter | Passing convention | Default / required |
|---|---|---|
file | positional or keyword | required |
class DataInfoSource line 866
Construct: DataInfo(data)
Fields assigned by the constructor: data, data_sorted. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
DataInfo.Item — nested classDataInfo.__init__ — methodDataInfo.sorted_data — methodDataInfo.len — propertyDataInfo.total — propertyDataInfo.range — propertyDataInfo.item_dict — propertyDataInfo.mode — propertyDataInfo.iqr — propertyDataInfo.avg — propertyDataInfo.avg_no_outliers — methodDataInfo.even_len — propertyDataInfo.median — propertyDataInfo.skewed — propertyDataInfo.sd_dev — propertyDataInfo.avg_dev — propertyDataInfo.load — methodDataInfo.is_outlier — methodDataInfo.get_zscore — methodDataInfo.get_item — methodDataInfo.get_percentile — methodDataInfo.info_txt — methodDataInfo.print — methodDataInfo.basic_info_txt — methodDataInfo.basic_print — methodDataInfo.__len__ — methodDataInfo.__iter__ — methodDataInfo.__next__ — methodclass DataInfo.ItemSource line 867
Construct: DataInfo.Item(n, di)
Fields assigned by the constructor: data_info, frequency, number. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
DataInfo.Item.__init__ — methodDataInfo.Item.zscore — propertyDataInfo.Item.is_outlier — propertyDataInfo.Item.percentile — propertyDataInfo.Item.load — methodDataInfo.Item.__repr__ — methodDataInfo.Item.__init__(self, n, di)Source line 868
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
di | positional or keyword | required |
DataInfo.Item.zscore(self)Source line 876
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.Item.is_outlier(self)Source line 881
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.Item.percentile(self)Source line 886
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.Item.load(self)Source line 890
No caller-supplied parameters are declared.
DataInfo.Item.__repr__(self)Source line 894
No caller-supplied parameters are declared.
DataInfo.__init__(self, data)Source line 896
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
DataInfo.sorted_data(self)Source line 910
No caller-supplied parameters are declared.
DataInfo.len(self)Source line 915
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.total(self)Source line 920
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.range(self)Source line 925
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.item_dict(self)Source line 966
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.mode(self)Source line 971
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.iqr(self)Source line 976
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.avg(self)Source line 981
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.avg_no_outliers(self)Source line 988
No caller-supplied parameters are declared.
DataInfo.even_len(self)Source line 998
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.median(self)Source line 1001
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.skewed(self)Source line 1006
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.sd_dev(self)Source line 1015
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.avg_dev(self)Source line 1024
Decorators: @property
No caller-supplied parameters are declared.
DataInfo.load(self)Source line 1032
No caller-supplied parameters are declared.
DataInfo.is_outlier(self, n)Source line 1100
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfo.get_zscore(self, n)Source line 1108
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfo.get_item(self, n)Source line 1110
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfo.get_percentile(self, n)Source line 1113
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfo.info_txt(self)Source line 1146
No caller-supplied parameters are declared.
DataInfo.print(self)Source line 1164
No caller-supplied parameters are declared.
DataInfo.basic_info_txt(self)Source line 1168
No caller-supplied parameters are declared.
DataInfo.basic_print(self)Source line 1178
No caller-supplied parameters are declared.
DataInfo.__len__(self)Source line 1183
No caller-supplied parameters are declared.
DataInfo.__iter__(self)Source line 1185
No caller-supplied parameters are declared.
DataInfo.__next__(self)Source line 1188
No caller-supplied parameters are declared.
class DataInfoMiscSource line 1192
Construct: DataInfoMisc(data, reverse=False)
Fields assigned by the constructor: data, data_sorted, reverse. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
DataInfoMisc.Item — nested classDataInfoMisc.__init__ — methodDataInfoMisc.sorted_data — methodDataInfoMisc.len — propertyDataInfoMisc.total — propertyDataInfoMisc.range — propertyDataInfoMisc.item_dict — propertyDataInfoMisc.mode — propertyDataInfoMisc.iqr — propertyDataInfoMisc.avg — propertyDataInfoMisc.even_len — propertyDataInfoMisc.median — propertyDataInfoMisc.sd_dev — propertyDataInfoMisc.load — methodDataInfoMisc.is_outlier — methodDataInfoMisc.get_zscore — methodDataInfoMisc.get_item — methodDataInfoMisc.get_percentile — methodDataInfoMisc.__len__ — methodDataInfoMisc.__iter__ — methodDataInfoMisc.__next__ — methodclass DataInfoMisc.ItemSource line 1193
Construct: DataInfoMisc.Item(n, di)
Fields assigned by the constructor: data_info, frequency, value. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
DataInfoMisc.Item.__init__ — methodDataInfoMisc.Item.zscore — propertyDataInfoMisc.Item.is_outlier — propertyDataInfoMisc.Item.percentile — propertyDataInfoMisc.Item.load — methodDataInfoMisc.Item.__repr__ — methodDataInfoMisc.Item.__init__(self, n, di)Source line 1194
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
di | positional or keyword | required |
DataInfoMisc.Item.zscore(self)Source line 1202
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.Item.is_outlier(self)Source line 1207
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.Item.percentile(self)Source line 1212
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.Item.load(self)Source line 1216
No caller-supplied parameters are declared.
DataInfoMisc.Item.__repr__(self)Source line 1220
No caller-supplied parameters are declared.
DataInfoMisc.__init__(self, data, reverse=False)Source line 1222
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
reverse | positional or keyword | False |
DataInfoMisc.sorted_data(self)Source line 1235
No caller-supplied parameters are declared.
DataInfoMisc.len(self)Source line 1240
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.total(self)Source line 1245
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.range(self)Source line 1250
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.item_dict(self)Source line 1289
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.mode(self)Source line 1294
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.iqr(self)Source line 1299
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.avg(self)Source line 1304
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.even_len(self)Source line 1309
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.median(self)Source line 1312
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.sd_dev(self)Source line 1317
Decorators: @property
No caller-supplied parameters are declared.
DataInfoMisc.load(self)Source line 1326
No caller-supplied parameters are declared.
DataInfoMisc.is_outlier(self, n)Source line 1403
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfoMisc.get_zscore(self, n)Source line 1411
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfoMisc.get_item(self, n)Source line 1413
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfoMisc.get_percentile(self, n)Source line 1416
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
DataInfoMisc.__len__(self)Source line 1449
No caller-supplied parameters are declared.
DataInfoMisc.__iter__(self)Source line 1451
No caller-supplied parameters are declared.
DataInfoMisc.__next__(self)Source line 1454
No caller-supplied parameters are declared.
iter_dict(d)Source line 1457
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
sort_dict(d, key=None, reverse=False)Source line 1462
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
key | positional or keyword | None |
reverse | positional or keyword | False |
class TableSource line 1480
Construct: Table(format_numbers=False, totals=False)
Fields assigned by the constructor: col_amt, columns, format_int, row_amt, rows, totals. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Table.row — methodTable.numbFormat — methodTable.formattedToNumb — methodTable.__init__ — methodTable.add_column — methodTable.add_row — methodTable.print — methodTable.row(txt, rl=8)Source line 1481
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
rl | positional or keyword | 8 |
Table.numbFormat(number)Source line 1491
| Parameter | Passing convention | Default / required |
|---|---|---|
number | positional or keyword | required |
Table.formattedToNumb(number)Source line 1497
| Parameter | Passing convention | Default / required |
|---|---|---|
number | positional or keyword | required |
Table.__init__(self, format_numbers=False, totals=False)Source line 1499
| Parameter | Passing convention | Default / required |
|---|---|---|
format_numbers | positional or keyword | False |
totals | positional or keyword | False |
Table.add_column(self, name, length=None)Source line 1506
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
length | positional or keyword | None |
Table.add_row(self, *args)Source line 1511
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
Table.print(self, limit=None, send=True)Source line 1518
| Parameter | Passing convention | Default / required |
|---|---|---|
limit | positional or keyword | None |
send | positional or keyword | True |
class ColumnSource line 1549
Construct: Column(name, length, table, col_num)
Fields assigned by the constructor: col_num, length, name, table. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Column.__init__ — methodColumn.__len__ — methodColumn.__repr__ — methodColumn.total — methodColumn.__init__(self, name, length, table, col_num)Source line 1550
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
length | positional or keyword | required |
table | positional or keyword | required |
col_num | positional or keyword | required |
Column.__len__(self)Source line 1555
No caller-supplied parameters are declared.
Column.__repr__(self)Source line 1568
No caller-supplied parameters are declared.
Column.total(self)Source line 1570
No caller-supplied parameters are declared.
class RowSource line 1595
Construct: Row(row_number, format_numbs, *args)
Fields assigned by the constructor: data, format_numbs, row_num. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Row.__init__ — methodRow.__init__(self, row_number, format_numbs, *args)Source line 1596
| Parameter | Passing convention | Default / required |
|---|---|---|
row_number | positional or keyword | required |
format_numbs | positional or keyword | required |
args | extra positional arguments (*args) | optional collection |
class CellSource line 1605
Construct: Cell(value, col_num, row_num, format_numbs)
Fields assigned by the constructor: col_num, format_numbs, row_num, type, value. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Cell.__init__ — methodCell.__len__ — methodCell.__str__ — methodCell.__repr__ — methodCell.__init__(self, value, col_num, row_num, format_numbs)Source line 1606
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
col_num | positional or keyword | required |
row_num | positional or keyword | required |
format_numbs | positional or keyword | required |
Cell.__len__(self)Source line 1622
No caller-supplied parameters are declared.
Cell.__str__(self)Source line 1624
No caller-supplied parameters are declared.
Cell.__repr__(self)Source line 1629
No caller-supplied parameters are declared.
to_numb(s)Source line 1637
| Parameter | Passing convention | Default / required |
|---|---|---|
s | positional or keyword | required |
class TxtTableSource line 1655
Construct: TxtTable(format_numbers=False, totals=False, len_limit=100)
Fields assigned by the constructor: col_amt, columns, format_int, len_limit, row_amt, rows, totals. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TxtTable.row — methodTxtTable.numbFormat — methodTxtTable.formattedToNumb — methodTxtTable.__init__ — methodTxtTable.add_column — methodTxtTable.insert_column — methodTxtTable.add_row — methodTxtTable.remove_column — methodTxtTable.print — methodTxtTable.to_html — methodTxtTable.flask_pagination — methodTxtTable.to_csv — methodTxtTable.__repr__ — methodTxtTable.Column — nested classTxtTable.Row — nested classTxtTable.Cell — nested classTxtTable.to_numb — methodTxtTable.row(txt, rl=8)Source line 1656
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
rl | positional or keyword | 8 |
TxtTable.numbFormat(number)Source line 1666
| Parameter | Passing convention | Default / required |
|---|---|---|
number | positional or keyword | required |
TxtTable.formattedToNumb(number)Source line 1675
| Parameter | Passing convention | Default / required |
|---|---|---|
number | positional or keyword | required |
TxtTable.__init__(self, format_numbers=False, totals=False, len_limit=100)Source line 1677
| Parameter | Passing convention | Default / required |
|---|---|---|
format_numbers | positional or keyword | False |
totals | positional or keyword | False |
len_limit | positional or keyword | 100 |
TxtTable.add_column(self, name, length=None, str_convert=None, value=None)Source line 1685
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
length | positional or keyword | None |
str_convert | positional or keyword | None |
value | positional or keyword | None |
TxtTable.insert_column(self, name, loc, length=None, str_convert=None, value=None)Source line 1702
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
loc | positional or keyword | required |
length | positional or keyword | None |
str_convert | positional or keyword | None |
value | positional or keyword | None |
TxtTable.add_row(self, *args)Source line 1729
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
TxtTable.remove_column(self, col_num)Source line 1737
| Parameter | Passing convention | Default / required |
|---|---|---|
col_num | positional or keyword | required |
TxtTable.print(self, limit=None, send=True)Source line 1748
| Parameter | Passing convention | Default / required |
|---|---|---|
limit | positional or keyword | None |
send | positional or keyword | True |
TxtTable.to_html(self, max_len=100, condensed=True, row_range=None, to_body_top='', to_body_bottom='', to_head='', own_rows=None, table_only=False, row_colors=[['#f0eceb', '#000000'], ['#e6e2e1', '#000000']], background_color='#f7f2f2', header_color='#000000', table_border='1px solid black')Source line 1788
| Parameter | Passing convention | Default / required |
|---|---|---|
max_len | positional or keyword | 100 |
condensed | positional or keyword | True |
row_range | positional or keyword | None |
to_body_top | positional or keyword | '' |
to_body_bottom | positional or keyword | '' |
to_head | positional or keyword | '' |
own_rows | positional or keyword | None |
table_only | positional or keyword | False |
row_colors | positional or keyword | [['#f0eceb', '#000000'], ['#e6e2e1', '#000000']] |
background_color | positional or keyword | '#f7f2f2' |
header_color | positional or keyword | '#000000' |
table_border | positional or keyword | '1px solid black' |
TxtTable.flask_pagination(self, request, per_page=50, max_len=100, page_colors=['#ffffff', '#000000'], to_body_top='', querystring='', search_ignore=None, custom_sort={}, **kwargs)Source line 1942
| Parameter | Passing convention | Default / required |
|---|---|---|
request | positional or keyword | required |
per_page | positional or keyword | 50 |
max_len | positional or keyword | 100 |
page_colors | positional or keyword | ['#ffffff', '#000000'] |
to_body_top | positional or keyword | '' |
querystring | positional or keyword | '' |
search_ignore | positional or keyword | None |
custom_sort | positional or keyword | {} |
kwargs | extra keyword arguments (**kwargs) | optional collection |
TxtTable.to_csv(self)Source line 2303
No caller-supplied parameters are declared.
TxtTable.__repr__(self)Source line 2338
No caller-supplied parameters are declared.
class TxtTable.ColumnSource line 2341
Construct: TxtTable.Column(name, length, table, col_num, str_convert=None)
Fields assigned by the constructor: col_num, length, name, str_convert, table. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TxtTable.Column.__init__ — methodTxtTable.Column.__len__ — methodTxtTable.Column.rows_len — methodTxtTable.Column.__repr__ — methodTxtTable.Column.total — methodTxtTable.Column.is_numb — methodTxtTable.Column.is_datetime — methodTxtTable.Column.cells — methodTxtTable.Column.__init__(self, name, length, table, col_num, str_convert=None)Source line 2342
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
length | positional or keyword | required |
table | positional or keyword | required |
col_num | positional or keyword | required |
str_convert | positional or keyword | None |
TxtTable.Column.__len__(self)Source line 2348
No caller-supplied parameters are declared.
TxtTable.Column.rows_len(self, rows)Source line 2365
| Parameter | Passing convention | Default / required |
|---|---|---|
rows | positional or keyword | required |
TxtTable.Column.__repr__(self)Source line 2382
No caller-supplied parameters are declared.
TxtTable.Column.total(self)Source line 2384
No caller-supplied parameters are declared.
TxtTable.Column.is_numb(self)Source line 2408
No caller-supplied parameters are declared.
TxtTable.Column.is_datetime(self)Source line 2414
No caller-supplied parameters are declared.
TxtTable.Column.cells(self)Source line 2420
No caller-supplied parameters are declared.
class TxtTable.RowSource line 2430
Construct: TxtTable.Row(row_number, format_numbs, table, *args)
Fields assigned by the constructor: data, format_numbs, row_num, table. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TxtTable.Row.__init__ — methodTxtTable.Row.remove_column — methodTxtTable.Row.__repr__ — methodTxtTable.Row.__eq__ — methodTxtTable.Row.__contains__ — methodTxtTable.Row.__len__ — methodTxtTable.Row.__iter__ — methodTxtTable.Row.__next__ — methodTxtTable.Row.__getitem__ — methodTxtTable.Row.__init__(self, row_number, format_numbs, table, *args)Source line 2431
| Parameter | Passing convention | Default / required |
|---|---|---|
row_number | positional or keyword | required |
format_numbs | positional or keyword | required |
table | positional or keyword | required |
args | extra positional arguments (*args) | optional collection |
TxtTable.Row.remove_column(self, col_num)Source line 2445
| Parameter | Passing convention | Default / required |
|---|---|---|
col_num | positional or keyword | required |
TxtTable.Row.__repr__(self)Source line 2455
No caller-supplied parameters are declared.
TxtTable.Row.__eq__(self, other)Source line 2457
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
TxtTable.Row.__contains__(self, other)Source line 2461
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
TxtTable.Row.__len__(self)Source line 2463
No caller-supplied parameters are declared.
TxtTable.Row.__iter__(self)Source line 2465
No caller-supplied parameters are declared.
TxtTable.Row.__next__(self)Source line 2468
No caller-supplied parameters are declared.
TxtTable.Row.__getitem__(self, item)Source line 2470
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
class TxtTable.CellSource line 2490
Construct: TxtTable.Cell(value, print_value, col_num, row_num, format_numbs)
Fields assigned by the constructor: col_num, format_numbs, print_value, row_num, type, value. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TxtTable.Cell.__init__ — methodTxtTable.Cell.__len__ — methodTxtTable.Cell.__str__ — methodTxtTable.Cell.__contains__ — methodTxtTable.Cell.__eq__ — methodTxtTable.Cell.__repr__ — methodTxtTable.Cell.__init__(self, value, print_value, col_num, row_num, format_numbs)Source line 2491
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
print_value | positional or keyword | required |
col_num | positional or keyword | required |
row_num | positional or keyword | required |
format_numbs | positional or keyword | required |
TxtTable.Cell.__len__(self)Source line 2508
No caller-supplied parameters are declared.
TxtTable.Cell.__str__(self)Source line 2510
No caller-supplied parameters are declared.
TxtTable.Cell.__contains__(self, other)Source line 2516
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
TxtTable.Cell.__eq__(self, other)Source line 2518
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
TxtTable.Cell.__repr__(self)Source line 2520
No caller-supplied parameters are declared.
TxtTable.to_numb(s)Source line 2525
| Parameter | Passing convention | Default / required |
|---|---|---|
s | positional or keyword | required |
place_suffix(n)Source line 2543
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
peyton_day_timestamp(dt=None)Source line 2558
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | None |
base10_to_base36(n)Source line 2569
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
base10_to_base62(n)Source line 2580
| Parameter | Passing convention | Default / required |
|---|---|---|
n | positional or keyword | required |
peyton_id_prefix(dt=None, leading_zeros=True)Source line 2593
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | None |
leading_zeros | positional or keyword | True |
peyton_id_prefix_to_timestamp(prefix)Source line 2603
| Parameter | Passing convention | Default / required |
|---|---|---|
prefix | positional or keyword | required |
peyton_id(dt=None, length=16)Source line 2615
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | None |
length | positional or keyword | 16 |
peyton_id_secure(dt=None, length=16)Source line 2619
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | None |
length | positional or keyword | 16 |
class RandomStringSource line 2624
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
RandomString.get — methodRandomString.get_alpha — methodRandomString.get_num — methodRandomString.get_alphanum — methodRandomString.secure_get — methodRandomString.secure_get_alpha — methodRandomString.secure_get_num — methodRandomString.secure_get_alphanum — methodRandomString.get(size)Source line 2630
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
RandomString.get_alpha(size)Source line 2635
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
RandomString.get_num(size)Source line 2640
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
RandomString.get_alphanum(size)Source line 2645
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
RandomString.secure_get(size)Source line 2650
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
RandomString.secure_get_alpha(size)Source line 2655
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
RandomString.secure_get_num(size)Source line 2660
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
RandomString.secure_get_alphanum(size)Source line 2665
| Parameter | Passing convention | Default / required |
|---|---|---|
size | positional or keyword | required |
get_all_between(txt, start, end)Source line 2704
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
start | positional or keyword | required |
end | positional or keyword | required |
get_between(txt, start, end)Source line 2710
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
start | positional or keyword | required |
end | positional or keyword | required |
bytes_to_str(b)Source line 2717
| Parameter | Passing convention | Default / required |
|---|---|---|
b | positional or keyword | required |
file_arg_to_str(arg)Source line 2738
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
file_arg_to_buffer(arg, mode='wb', must_exist=True)Source line 2772
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
mode | positional or keyword | 'wb' |
must_exist | positional or keyword | True |
file_arg_to_file(arg, mode='r')Source line 2789
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
mode | positional or keyword | 'r' |
file_arg_to_fp(arg)Source line 2802
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
extract_int(s)Source line 2810
| Parameter | Passing convention | Default / required |
|---|---|---|
s | positional or keyword | required |
class merge_itersSource line 2821
Construct: merge_iters(*args)
Declared functions, properties, and nested objects:
merge_iters.__init__ — methodmerge_iters.__iter__ — methodmerge_iters.__next__ — methodmerge_iters.__init__(self, *args)Source line 2823
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
merge_iters.__iter__(self)Source line 2828
No caller-supplied parameters are declared.
merge_iters.__next__(self)Source line 2832
No caller-supplied parameters are declared.
class CSVReaderSource line 2842
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
CSVReader.CharsAfterQuoted — nested classCSVReader.RowCountMismatch — nested classCSVReader.condense — methodCSVReader.write — methodCSVReader.write_file — methodCSVReader.read — methodCSVReader.basic_read_threaded — async methodCSVReader.basic_read — methodCSVReader.no_quotes_read — methodclass CSVReader.CharsAfterQuoted(Exception)Source line 2843
Construct: CSVReader.CharsAfterQuoted(line_number, char_on_line, char, rows_found)
Declared functions, properties, and nested objects:
CSVReader.CharsAfterQuoted.__init__ — methodCSVReader.CharsAfterQuoted.__init__(self, line_number, char_on_line, char, rows_found)Source line 2844
| Parameter | Passing convention | Default / required |
|---|---|---|
line_number | positional or keyword | required |
char_on_line | positional or keyword | required |
char | positional or keyword | required |
rows_found | positional or keyword | required |
class CSVReader.RowCountMismatch(Exception)Source line 2847
Construct: CSVReader.RowCountMismatch(line_number, amt, expected)
Declared functions, properties, and nested objects:
CSVReader.RowCountMismatch.__init__ — methodCSVReader.RowCountMismatch.__init__(self, line_number, amt, expected)Source line 2848
| Parameter | Passing convention | Default / required |
|---|---|---|
line_number | positional or keyword | required |
amt | positional or keyword | required |
expected | positional or keyword | required |
CSVReader.condense(fp, has_headers=True, unique_only=False, remove_func=None, remove_columns=[])Source line 2851
| Parameter | Passing convention | Default / required |
|---|---|---|
fp | positional or keyword | required |
has_headers | positional or keyword | True |
unique_only | positional or keyword | False |
remove_func | positional or keyword | None |
remove_columns | positional or keyword | [] |
CSVReader.write(rows)Source line 2899
| Parameter | Passing convention | Default / required |
|---|---|---|
rows | positional or keyword | required |
CSVReader.write_file(fp, rows)Source line 2921
| Parameter | Passing convention | Default / required |
|---|---|---|
fp | positional or keyword | required |
rows | positional or keyword | required |
CSVReader.read(arg, has_headers=True, as_list=False)Source line 2927
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
has_headers | positional or keyword | True |
as_list | positional or keyword | False |
async CSVReader.basic_read_threaded(arg, amt_per_thread=20000, has_headers=True, as_list=False, max_workers=None)Source line 3152
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
amt_per_thread | positional or keyword | 20000 |
has_headers | positional or keyword | True |
as_list | positional or keyword | False |
max_workers | positional or keyword | None |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
CSVReader.basic_read(arg, has_headers=True, as_list=False, forgiving=False, by_line=None)Source line 3234
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
has_headers | positional or keyword | True |
as_list | positional or keyword | False |
forgiving | positional or keyword | False |
by_line | positional or keyword | None |
CSVReader.no_quotes_read(arg, has_headers=True, as_list=False)Source line 3335
| Parameter | Passing convention | Default / required |
|---|---|---|
arg | positional or keyword | required |
has_headers | positional or keyword | True |
as_list | positional or keyword | False |
class ListTableSource line 3400
Construct: ListTable(rows, has_headers=True, read_only=True)
Fields assigned by the constructor: has_headers, headers, read_only, rows. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ListTable.__init__ — methodListTable.dict — methodListTable.__del__ — methodListTable.__getitem__ — methodListTable.__len__ — methodListTable.__iter__ — methodListTable.__next__ — methodListTable.__repr__ — methodListTable.Row — nested classListTable.__init__(self, rows, has_headers=True, read_only=True)Source line 3401
| Parameter | Passing convention | Default / required |
|---|---|---|
rows | positional or keyword | required |
has_headers | positional or keyword | True |
read_only | positional or keyword | True |
ListTable.dict(self)Source line 3430
No caller-supplied parameters are declared.
ListTable.__del__(self)Source line 3437
No caller-supplied parameters are declared.
ListTable.__getitem__(self, key)Source line 3445
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
ListTable.__len__(self)Source line 3449
No caller-supplied parameters are declared.
ListTable.__iter__(self)Source line 3451
No caller-supplied parameters are declared.
ListTable.__next__(self)Source line 3454
No caller-supplied parameters are declared.
ListTable.__repr__(self)Source line 3456
No caller-supplied parameters are declared.
class ListTable.RowSource line 3458
Construct: ListTable.Row(row, table)
Fields assigned by the constructor: row, table. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ListTable.Row.__init__ — methodListTable.Row.dict — methodListTable.Row.__getitem__ — methodListTable.Row.__eq__ — methodListTable.Row.__len__ — methodListTable.Row.__iter__ — methodListTable.Row.__next__ — methodListTable.Row.__repr__ — methodListTable.Row.__init__(self, row, table)Source line 3459
| Parameter | Passing convention | Default / required |
|---|---|---|
row | positional or keyword | required |
table | positional or keyword | required |
ListTable.Row.dict(self)Source line 3462
No caller-supplied parameters are declared.
ListTable.Row.__getitem__(self, key)Source line 3469
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
ListTable.Row.__eq__(self, other)Source line 3478
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
ListTable.Row.__len__(self)Source line 3484
No caller-supplied parameters are declared.
ListTable.Row.__iter__(self)Source line 3486
No caller-supplied parameters are declared.
ListTable.Row.__next__(self)Source line 3489
No caller-supplied parameters are declared.
ListTable.Row.__repr__(self)Source line 3491
No caller-supplied parameters are declared.
class AsyncPropertySource line 3496
Construct: AsyncProperty(func)
Fields assigned by the constructor: coro, func. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
AsyncProperty.__init__ — methodAsyncProperty.__await__ — methodAsyncProperty.__get__ — methodAsyncProperty.__set__ — methodAsyncProperty.setter — methodAsyncProperty.__init__(self, func)Source line 3497
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
AsyncProperty.__await__(self)Source line 3501
No caller-supplied parameters are declared.
AsyncProperty.__get__(self, instance, owner)Source line 3503
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
owner | positional or keyword | required |
AsyncProperty.__set__(self, instance, value)Source line 3506
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
value | positional or keyword | required |
AsyncProperty.setter(self, func)Source line 3508
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
class CachedPropertySource line 3512
Construct: CachedProperty(func=None, expire=None)
Fields assigned by the constructor: func, is_coro, name, set_func. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
CachedProperty.__init__ — methodCachedProperty.setter — methodCachedProperty.expire — propertyCachedProperty.expire — property setterCachedProperty.get_cached — methodCachedProperty.is_cached — methodCachedProperty.__get__ — methodCachedProperty.__set__ — methodCachedProperty.__call__ — methodCachedProperty.__repr__ — methodCachedProperty.__init__(self, func=None, expire=None)Source line 3513
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | None |
expire | positional or keyword | None |
CachedProperty.setter(self, func)Source line 3529
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
CachedProperty.expire(self)Source line 3533
Decorators: @property
No caller-supplied parameters are declared.
CachedProperty.expire(self, expire)Source line 3536
Decorators: @expire.setter
| Parameter | Passing convention | Default / required |
|---|---|---|
expire | positional or keyword | required |
CachedProperty.get_cached(self, instance)Source line 3545
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
CachedProperty.is_cached(self, instance)Source line 3549
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
CachedProperty.__get__(self, instance, owner)Source line 3553
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
owner | positional or keyword | required |
CachedProperty.__set__(self, instance, value)Source line 3606
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
value | positional or keyword | required |
CachedProperty.__call__(self, func)Source line 3617
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
CachedProperty.__repr__(self)Source line 3625
No caller-supplied parameters are declared.
class ClassPropertySource line 3629
Construct: ClassProperty(func)
Fields assigned by the constructor: func, name, set_func. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ClassProperty.__init__ — methodClassProperty.__get__ — methodClassProperty.__set__ — methodClassProperty.__call__ — methodClassProperty.setter — methodClassProperty.__init__(self, func)Source line 3630
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
ClassProperty.__get__(self, instance, owner)Source line 3634
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
owner | positional or keyword | required |
ClassProperty.__set__(self, instance, value)Source line 3636
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
value | positional or keyword | required |
ClassProperty.__call__(self, func)Source line 3638
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
ClassProperty.setter(self, func)Source line 3644
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
class CachedClassPropertySource line 3648
Construct: CachedClassProperty(func=None, expire=None)
Fields assigned by the constructor: func, is_coro, name. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
CachedClassProperty.__init__ — methodCachedClassProperty.expire — propertyCachedClassProperty.expire — property setterCachedClassProperty.get_cached — methodCachedClassProperty.__get__ — methodCachedClassProperty.__call__ — methodCachedClassProperty.__repr__ — methodCachedClassProperty.__init__(self, func=None, expire=None)Source line 3649
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | None |
expire | positional or keyword | None |
CachedClassProperty.expire(self)Source line 3665
Decorators: @property
No caller-supplied parameters are declared.
CachedClassProperty.expire(self, expire)Source line 3668
Decorators: @expire.setter
| Parameter | Passing convention | Default / required |
|---|---|---|
expire | positional or keyword | required |
CachedClassProperty.get_cached(self, instance)Source line 3677
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
CachedClassProperty.__get__(self, instance, owner)Source line 3680
| Parameter | Passing convention | Default / required |
|---|---|---|
instance | positional or keyword | required |
owner | positional or keyword | required |
CachedClassProperty.__call__(self, func)Source line 3713
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
CachedClassProperty.__repr__(self)Source line 3721
No caller-supplied parameters are declared.
class StringInfoSource line 3725
Construct: StringInfo(s)
Fields assigned by the constructor: alpha_count, char_array, digit_count, is_float, is_int, lower_count, most_common, most_common_count, str, upper_count, word_array, word_list. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
StringInfo.indexes — methodStringInfo.__getattr__ — methodStringInfo.__init__ — methodStringInfo.__len__ — methodStringInfo.lower — methodStringInfo.char_count — methodStringInfo.avg_word_len — methodStringInfo.check — methodStringInfo.check_alt — methodStringInfo.regex_links — methodStringInfo.links — methodStringInfo.indexes(l, v)Source line 3731
| Parameter | Passing convention | Default / required |
|---|---|---|
l | positional or keyword | required |
v | positional or keyword | required |
StringInfo.__getattr__(self, name)Source line 3739
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
StringInfo.__init__(self, s)Source line 3741
| Parameter | Passing convention | Default / required |
|---|---|---|
s | positional or keyword | required |
StringInfo.__len__(self)Source line 3797
No caller-supplied parameters are declared.
StringInfo.lower(self)Source line 3799
No caller-supplied parameters are declared.
StringInfo.char_count(self, c)Source line 3801
| Parameter | Passing convention | Default / required |
|---|---|---|
c | positional or keyword | required |
StringInfo.avg_word_len(self)Source line 3805
No caller-supplied parameters are declared.
StringInfo.check(self, *args)Source line 3813
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
StringInfo.check_alt(self, i)Source line 3828
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
StringInfo.regex_links(self)Source line 3841
No caller-supplied parameters are declared.
StringInfo.links(self)Source line 3843
No caller-supplied parameters are declared.
class LinkInfoSource line 3847
Construct: LinkInfo(url)
Fields assigned by the constructor: domain_name, fragment, hostname, path, port, qs, qs_raw, scheme, sld, subdomains, text_url, tld, url. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
LinkInfo.qs_parse — methodLinkInfo.base_url — propertyLinkInfo.__init__ — methodLinkInfo.hash — decorated property (see guide)LinkInfo.__str__ — methodLinkInfo.__len__ — methodLinkInfo.__eq__ — methodLinkInfo.__repr__ — methodLinkInfo.regex_find — methodLinkInfo.find — methodLinkInfo.qs_parse(qs)Source line 3849
| Parameter | Passing convention | Default / required |
|---|---|---|
qs | positional or keyword | required |
LinkInfo.base_url(self)Source line 3868
Decorators: @property
No caller-supplied parameters are declared.
LinkInfo.__init__(self, url)Source line 3878
| Parameter | Passing convention | Default / required |
|---|---|---|
url | positional or keyword | required |
LinkInfo.hash(self)Source line 3947
Decorators: @CachedProperty
No caller-supplied parameters are declared.
LinkInfo.__str__(self)Source line 3955
No caller-supplied parameters are declared.
LinkInfo.__len__(self)Source line 3957
No caller-supplied parameters are declared.
LinkInfo.__eq__(self, other)Source line 3959
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
LinkInfo.__repr__(self)Source line 3965
No caller-supplied parameters are declared.
LinkInfo.regex_find(string)Source line 3968
| Parameter | Passing convention | Default / required |
|---|---|---|
string | positional or keyword | required |
LinkInfo.find(string)Source line 3975
| Parameter | Passing convention | Default / required |
|---|---|---|
string | positional or keyword | required |
class ZF_REQSource line 4058
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
ZF_REQ._data — nested classZF_REQ.request — methodZF_REQ.download — methodclass ZF_REQ._dataSource line 4059
Construct: ZF_REQ._data(b, r)
Fields assigned by the constructor: compress_sizes, content, encoding, ratio, request. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ZF_REQ._data.__init__ — methodZF_REQ._data.json — methodZF_REQ._data.text — propertyZF_REQ._data.__getattr__ — methodZF_REQ._data.__repr__ — methodZF_REQ._data.__init__(self, b, r)Source line 4060
| Parameter | Passing convention | Default / required |
|---|---|---|
b | positional or keyword | required |
r | positional or keyword | required |
ZF_REQ._data.json(self)Source line 4066
No caller-supplied parameters are declared.
ZF_REQ._data.text(self)Source line 4069
Decorators: @property
No caller-supplied parameters are declared.
ZF_REQ._data.__getattr__(self, name)Source line 4071
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
ZF_REQ._data.__repr__(self)Source line 4073
No caller-supplied parameters are declared.
ZF_REQ.request(url, params=None, headers=None, timeout=600)Source line 4078
| Parameter | Passing convention | Default / required |
|---|---|---|
url | positional or keyword | required |
params | positional or keyword | None |
headers | positional or keyword | None |
timeout | positional or keyword | 600 |
ZF_REQ.download(fp, url, *args, **kwargs)Source line 4099
| Parameter | Passing convention | Default / required |
|---|---|---|
fp | positional or keyword | required |
url | positional or keyword | required |
args | extra positional arguments (*args) | optional collection |
kwargs | extra keyword arguments (**kwargs) | optional collection |
randomize_list(l)Source line 4122
| Parameter | Passing convention | Default / required |
|---|---|---|
l | positional or keyword | required |
class IterLoopSource line 4130
Construct: IterLoop(i)
Fields assigned by the constructor: l. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
IterLoop.__init__ — methodIterLoop.next — methodIterLoop.__contains__ — methodIterLoop.__len__ — methodIterLoop.__iter__ — methodIterLoop.__next__ — methodIterLoop.__init__(self, i)Source line 4131
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
IterLoop.next(self)Source line 4136
No caller-supplied parameters are declared.
IterLoop.__contains__(self, item)Source line 4138
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
IterLoop.__len__(self)Source line 4140
No caller-supplied parameters are declared.
IterLoop.__iter__(self)Source line 4142
No caller-supplied parameters are declared.
IterLoop.__next__(self)Source line 4145
No caller-supplied parameters are declared.
class CountryInfoSource line 4188
Construct: CountryInfo(key=None, compressed_requests=False)
Fields assigned by the constructor: compressed_requests, key. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
CountryInfo.__init__ — methodCountryInfo.request — methodCountryInfo.countries — decorated property (see guide)CountryInfo.__init__(self, key=None, compressed_requests=False)Source line 4189
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | None |
compressed_requests | positional or keyword | False |
CountryInfo.request(self, url, **kwargs)Source line 4192
| Parameter | Passing convention | Default / required |
|---|---|---|
url | positional or keyword | required |
kwargs | extra keyword arguments (**kwargs) | optional collection |
CountryInfo.countries(self)Source line 4212
Decorators: @CachedProperty
No caller-supplied parameters are declared.
class IpInfoSource line 4224
Construct: IpInfo(ip=None, data=None)
Fields assigned by the constructor: asn, city, country, hostname, ip, location, org, postal, raw_org, region. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
IpInfo.ip_list — methodIpInfo.get_ip — methodIpInfo.is_ipv4 — methodIpInfo.is_ipv6 — methodIpInfo.__repr__ — methodIpInfo.__init__ — methodIpInfo.dict — methodIpInfo.__hash__ — methodIpInfo.fqdn — methodIpInfo.__eq__ — methodIpInfo.ip_list(cls)Source line 4235
Decorators: @ClassProperty
No caller-supplied parameters are declared.
IpInfo.get_ip(ip=None)Source line 4399
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | None |
IpInfo.is_ipv4(ip)Source line 4423
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | required |
IpInfo.is_ipv6(ip)Source line 4448
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | required |
IpInfo.__repr__(self)Source line 4458
No caller-supplied parameters are declared.
IpInfo.__init__(self, ip=None, data=None)Source line 4460
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | None |
data | positional or keyword | None |
IpInfo.dict(self)Source line 4505
No caller-supplied parameters are declared.
IpInfo.__hash__(self)Source line 4517
No caller-supplied parameters are declared.
IpInfo.fqdn(self)Source line 4522
No caller-supplied parameters are declared.
IpInfo.__eq__(self, other)Source line 4524
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
class AsyncIpInfoSource line 4536
Construct: AsyncIpInfo(ip=None, data=None)
Fields assigned by the constructor: asn, city, country, hostname, ip, loaded, location, org, postal, raw_org, region, timestamp. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
AsyncIpInfo.ip_list — methodAsyncIpInfo.get_ip — async methodAsyncIpInfo.is_ipv4 — methodAsyncIpInfo.is_ipv6 — methodAsyncIpInfo.__repr__ — methodAsyncIpInfo.__init__ — methodAsyncIpInfo.__await__ — methodAsyncIpInfo.dict — methodAsyncIpInfo.__hash__ — methodAsyncIpInfo.fqdn — methodAsyncIpInfo.__eq__ — methodAsyncIpInfo.ip_list(cls)Source line 4547
Decorators: @ClassProperty
No caller-supplied parameters are declared.
async AsyncIpInfo.get_ip(ip=None)Source line 4772
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | None |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
AsyncIpInfo.is_ipv4(ip)Source line 4797
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | required |
AsyncIpInfo.is_ipv6(ip)Source line 4822
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | required |
AsyncIpInfo.__repr__(self)Source line 4832
No caller-supplied parameters are declared.
AsyncIpInfo.__init__(self, ip=None, data=None)Source line 4834
| Parameter | Passing convention | Default / required |
|---|---|---|
ip | positional or keyword | None |
data | positional or keyword | None |
AsyncIpInfo.__await__(self)Source line 4893
No caller-supplied parameters are declared.
AsyncIpInfo.dict(self)Source line 4895
No caller-supplied parameters are declared.
AsyncIpInfo.__hash__(self)Source line 4908
No caller-supplied parameters are declared.
AsyncIpInfo.fqdn(self)Source line 4913
No caller-supplied parameters are declared.
AsyncIpInfo.__eq__(self, other)Source line 4915
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
quick_save(fp, data, *args, **kwargs)Source line 4931
| Parameter | Passing convention | Default / required |
|---|---|---|
fp | positional or keyword | required |
data | positional or keyword | required |
args | extra positional arguments (*args) | optional collection |
kwargs | extra keyword arguments (**kwargs) | optional collection |
obj_attr_print(obj, no_methods=True, no_class_attrs=False, show_type=False, ignore=[])Source line 4942
| Parameter | Passing convention | Default / required |
|---|---|---|
obj | positional or keyword | required |
no_methods | positional or keyword | True |
no_class_attrs | positional or keyword | False |
show_type | positional or keyword | False |
ignore | positional or keyword | [] |
obj_attr_txt(obj, no_methods=True, no_class_attrs=False, show_type=False, ignore=[])Source line 4958
| Parameter | Passing convention | Default / required |
|---|---|---|
obj | positional or keyword | required |
no_methods | positional or keyword | True |
no_class_attrs | positional or keyword | False |
show_type | positional or keyword | False |
ignore | positional or keyword | [] |
class BivariateDataSource line 4978
Construct: BivariateData(data)
Fields assigned by the constructor: data, data_points, x, x_info, y, y_info. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
BivariateData.DataPoint — nested classBivariateData.__init__ — methodBivariateData.slope — decorated property (see guide)BivariateData.correlation — decorated property (see guide)BivariateData.plot — methodBivariateData.plot_residuals — methodBivariateData.show — methodBivariateData.show_residuals — methodclass BivariateData.DataPointSource line 4979
Construct: BivariateData.DataPoint(x, y, bd)
Fields assigned by the constructor: bd, x, y. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
BivariateData.DataPoint.__init__ — methodBivariateData.DataPoint.residual — decorated property (see guide)BivariateData.DataPoint.__init__(self, x, y, bd)Source line 4980
| Parameter | Passing convention | Default / required |
|---|---|---|
x | positional or keyword | required |
y | positional or keyword | required |
bd | positional or keyword | required |
BivariateData.DataPoint.residual(self)Source line 4985
Decorators: @CachedProperty
No caller-supplied parameters are declared.
BivariateData.__init__(self, data)Source line 4988
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
BivariateData.slope(self)Source line 5001
Decorators: @CachedProperty
No caller-supplied parameters are declared.
BivariateData.correlation(self)Source line 5006
Decorators: @CachedProperty
No caller-supplied parameters are declared.
BivariateData.plot(self, format='png', show_slope=True, show_residual_lines=False)Source line 5046
| Parameter | Passing convention | Default / required |
|---|---|---|
format | positional or keyword | 'png' |
show_slope | positional or keyword | True |
show_residual_lines | positional or keyword | False |
BivariateData.plot_residuals(self, format='png', show_line=True)Source line 5052
| Parameter | Passing convention | Default / required |
|---|---|---|
format | positional or keyword | 'png' |
show_line | positional or keyword | True |
BivariateData.show(self, show_slope=True, show_residual_lines=False)Source line 5058
| Parameter | Passing convention | Default / required |
|---|---|---|
show_slope | positional or keyword | True |
show_residual_lines | positional or keyword | False |
BivariateData.show_residuals(self, show_line=True)Source line 5061
| Parameter | Passing convention | Default / required |
|---|---|---|
show_line | positional or keyword | True |
class SlopeSource line 5065
Construct: Slope(slope, yint)
Fields assigned by the constructor: slope, yint. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Slope.__init__ — methodSlope.__str__ — methodSlope.__call__ — methodSlope.__init__(self, slope, yint)Source line 5066
| Parameter | Passing convention | Default / required |
|---|---|---|
slope | positional or keyword | required |
yint | positional or keyword | required |
Slope.__str__(self)Source line 5069
No caller-supplied parameters are declared.
Slope.__call__(self, x=None, y=None)Source line 5074
| Parameter | Passing convention | Default / required |
|---|---|---|
x | positional or keyword | None |
y | positional or keyword | None |
class CacheListSource line 5081
Construct: CacheList(max_cache_size=100)
Fields assigned by the constructor: idx, max_cache_size, queue, stringify. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
CacheList.__init__ — methodCacheList.stringify_func — methodCacheList.append — methodCacheList.add — methodCacheList.remove — methodCacheList.pop — methodCacheList.get — methodCacheList.__len__ — methodCacheList.__getitem__ — methodCacheList.__iter__ — methodCacheList.__contains__ — methodCacheList.__init__(self, max_cache_size=100)Source line 5082
| Parameter | Passing convention | Default / required |
|---|---|---|
max_cache_size | positional or keyword | 100 |
CacheList.stringify_func(self, func)Source line 5089
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
CacheList.append(self, item)Source line 5094
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
CacheList.add(self, item)Source line 5107
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
CacheList.remove(self, item)Source line 5109
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
CacheList.pop(self, index=-1)Source line 5114
| Parameter | Passing convention | Default / required |
|---|---|---|
index | positional or keyword | -1 |
CacheList.get(self, key, default=None)Source line 5120
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
default | positional or keyword | None |
CacheList.__len__(self)Source line 5125
No caller-supplied parameters are declared.
CacheList.__getitem__(self, key)Source line 5127
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
CacheList.__iter__(self)Source line 5129
No caller-supplied parameters are declared.
CacheList.__contains__(self, value)Source line 5131
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
class UniqueSource line 5136
Construct: Unique(max_items=None)
Fields assigned by the constructor: max_items, v. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Unique.__init__ — methodUnique.append — methodUnique.remove — methodUnique.pop — methodUnique.purge_func — methodUnique.__call__ — methodUnique.__len__ — methodUnique.__getitem__ — methodUnique.__iter__ — methodUnique.__contains__ — methodUnique.__init__(self, max_items=None)Source line 5137
| Parameter | Passing convention | Default / required |
|---|---|---|
max_items | positional or keyword | None |
Unique.append(self, item)Source line 5142
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
Unique.remove(self, item)Source line 5144
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
Unique.pop(self, index=-1)Source line 5147
| Parameter | Passing convention | Default / required |
|---|---|---|
index | positional or keyword | -1 |
Unique.purge_func(self, func)Source line 5150
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
Unique.__call__(self, v)Source line 5155
| Parameter | Passing convention | Default / required |
|---|---|---|
v | positional or keyword | required |
Unique.__len__(self)Source line 5164
No caller-supplied parameters are declared.
Unique.__getitem__(self, key)Source line 5166
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
Unique.__iter__(self)Source line 5168
No caller-supplied parameters are declared.
Unique.__contains__(self, value)Source line 5170
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
class UniqueDictSource line 5173
Construct: UniqueDict()
Fields assigned by the constructor: v. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
UniqueDict.__init__ — methodUniqueDict.__call__ — methodUniqueDict.__getitem__ — methodUniqueDict.__setitem__ — methodUniqueDict.__iter__ — methodUniqueDict.__next__ — methodUniqueDict.all — methodUniqueDict.__init__(self)Source line 5174
No caller-supplied parameters are declared.
UniqueDict.__call__(self, v)Source line 5176
| Parameter | Passing convention | Default / required |
|---|---|---|
v | positional or keyword | required |
UniqueDict.__getitem__(self, key)Source line 5181
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
UniqueDict.__setitem__(self, key, value)Source line 5183
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
value | positional or keyword | required |
UniqueDict.__iter__(self)Source line 5188
No caller-supplied parameters are declared.
UniqueDict.__next__(self)Source line 5191
No caller-supplied parameters are declared.
UniqueDict.all(self)Source line 5193
No caller-supplied parameters are declared.
count_dict(l, compare=None, estimate=False)Source line 5198
| Parameter | Passing convention | Default / required |
|---|---|---|
l | positional or keyword | required |
compare | positional or keyword | None |
estimate | positional or keyword | False |
class TimeEstimateSource line 5224
Construct: TimeEstimate(amt=None, print_every=None, print_format='<done>/<t> (<p>) | ~<e> Remaining | <a>/trial', over_time_est=None)
Fields assigned by the constructor: amt, over_time_est, print_every, print_format, trial_count. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TimeEstimate.__init__ — methodTimeEstimate.__iter__ — methodTimeEstimate.__next__ — methodTimeEstimate.format — methodTimeEstimate.remaining — propertyTimeEstimate.percent_done — propertyTimeEstimate.percent_done_str — propertyTimeEstimate.estimate — propertyTimeEstimate.estimate_str — propertyTimeEstimate.duration — propertyTimeEstimate.end_duration_estimate — propertyTimeEstimate.duration_str — propertyTimeEstimate.avg_duration — propertyTimeEstimate.avg_duration_str — propertyTimeEstimate.print_results — methodTimeEstimate.txt_results — methodTimeEstimate.__init__(self, amt=None, print_every=None, print_format='<done>/<t> (<p>) | ~<e> Remaining | <a>/trial', over_time_est=None)Source line 5225
| Parameter | Passing convention | Default / required |
|---|---|---|
amt | positional or keyword | None |
print_every | positional or keyword | None |
print_format | positional or keyword | '<done>/<t> (<p>) | ~<e> Remaining | <a>/trial' |
over_time_est | positional or keyword | None |
TimeEstimate.__iter__(self)Source line 5233
No caller-supplied parameters are declared.
TimeEstimate.__next__(self)Source line 5242
No caller-supplied parameters are declared.
TimeEstimate.format(self, format_str)Source line 5267
| Parameter | Passing convention | Default / required |
|---|---|---|
format_str | positional or keyword | required |
TimeEstimate.remaining(self)Source line 5291
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.percent_done(self)Source line 5294
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.percent_done_str(self)Source line 5297
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.estimate(self)Source line 5300
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.estimate_str(self)Source line 5303
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.duration(self)Source line 5306
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.end_duration_estimate(self)Source line 5312
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.duration_str(self)Source line 5318
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.avg_duration(self)Source line 5321
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.avg_duration_str(self)Source line 5330
Decorators: @property
No caller-supplied parameters are declared.
TimeEstimate.print_results(self)Source line 5332
No caller-supplied parameters are declared.
TimeEstimate.txt_results(self)Source line 5336
No caller-supplied parameters are declared.
class ReverseListIterSource line 5342
Construct: ReverseListIter(item)
Declared functions, properties, and nested objects:
ReverseListIter.__init__ — methodReverseListIter.__iter__ — methodReverseListIter.__next__ — methodReverseListIter.__init__(self, item)Source line 5343
| Parameter | Passing convention | Default / required |
|---|---|---|
item | positional or keyword | required |
ReverseListIter.__iter__(self)Source line 5347
No caller-supplied parameters are declared.
ReverseListIter.__next__(self)Source line 5350
No caller-supplied parameters are declared.
make_json_parsable(d)Source line 5357
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
dict_print(d, indent=2, parse=True)Source line 5393
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
indent | positional or keyword | 2 |
parse | positional or keyword | True |
class TxtParserExpSource line 5405
Construct: TxtParserExp(format_txt, var_chars=['<', '>'], handle_not_found=False, possible_chars=['[', ']'])
Fields assigned by the constructor: format_txt, formats, handle_not_found, possible_chars, var_chars. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TxtParserExp.__init__ — methodTxtParserExp.__call__ — methodTxtParserExp.__init__(self, format_txt, var_chars=['<', '>'], handle_not_found=False, possible_chars=['[', ']'])Source line 5406
| Parameter | Passing convention | Default / required |
|---|---|---|
format_txt | positional or keyword | required |
var_chars | positional or keyword | ['<', '>'] |
handle_not_found | positional or keyword | False |
possible_chars | positional or keyword | ['[', ']'] |
TxtParserExp.__call__(self, txt, **kwargs)Source line 5495
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
kwargs | extra keyword arguments (**kwargs) | optional collection |
class TxtParserSource line 5562
Construct: TxtParser(format_txt, var_chars=['<', '>'], handle_not_found=False, possible_chars=['[', ']'])
Fields assigned by the constructor: format_txt, formats, handle_not_found, possible_chars, regex_format, var_chars. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TxtParser.__init__ — methodTxtParser.__call__ — methodTxtParser.__init__(self, format_txt, var_chars=['<', '>'], handle_not_found=False, possible_chars=['[', ']'])Source line 5568
| Parameter | Passing convention | Default / required |
|---|---|---|
format_txt | positional or keyword | required |
var_chars | positional or keyword | ['<', '>'] |
handle_not_found | positional or keyword | False |
possible_chars | positional or keyword | ['[', ']'] |
TxtParser.__call__(self, txt, **kwargs)Source line 5634
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
kwargs | extra keyword arguments (**kwargs) | optional collection |
class TxtParserBasicSource line 5725
Construct: TxtParserBasic(format_txt, var_chars=['<', '>'], handle_not_found=False)
Fields assigned by the constructor: format_txt, formats, handle_not_found, var_chars. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
TxtParserBasic.__init__ — methodTxtParserBasic.__call__ — methodTxtParserBasic.__init__(self, format_txt, var_chars=['<', '>'], handle_not_found=False)Source line 5726
| Parameter | Passing convention | Default / required |
|---|---|---|
format_txt | positional or keyword | required |
var_chars | positional or keyword | ['<', '>'] |
handle_not_found | positional or keyword | False |
TxtParserBasic.__call__(self, txt, **kwargs)Source line 5761
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
kwargs | extra keyword arguments (**kwargs) | optional collection |
split_multi_old(txt, *items, amt=None, cap_sensitive=True)Source line 5812
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
items | extra positional arguments (*args) | optional collection |
amt | keyword only | None |
cap_sensitive | keyword only | True |
split_old(txt, item, amt=None, cap_sensitive=True)Source line 5869
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
item | positional or keyword | required |
amt | positional or keyword | None |
cap_sensitive | positional or keyword | True |
split_multi(txt, *items, amt=None, cap_sensitive=True)Source line 5900
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
items | extra positional arguments (*args) | optional collection |
amt | keyword only | None |
cap_sensitive | keyword only | True |
split(txt, item, amt=None, cap_sensitive=True)Source line 5927
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
item | positional or keyword | required |
amt | positional or keyword | None |
cap_sensitive | positional or keyword | True |
class AndroidDeviceSource line 5936
Construct: AndroidDevice(r)
Fields assigned by the constructor: device, marketing_name, model, retail_branding. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
AndroidDevice._DeviceIndex — nested classAndroidDevice.model_index — methodAndroidDevice.opt_models — methodAndroidDevice.devices — methodAndroidDevice.data — methodAndroidDevice.__init__ — methodAndroidDevice.__str__ — methodAndroidDevice.__contains__ — methodAndroidDevice.get_model — methodAndroidDevice.__repr__ — methodclass AndroidDevice._DeviceIndexSource line 5940
Construct: AndroidDevice._DeviceIndex(d, attr, f_idx=0)
Fields assigned by the constructor: attr, d, f_idx, index. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
AndroidDevice._DeviceIndex.__init__ — methodAndroidDevice._DeviceIndex.get — methodAndroidDevice._DeviceIndex.__init__(self, d, attr, f_idx=0)Source line 5941
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
attr | positional or keyword | required |
f_idx | positional or keyword | 0 |
AndroidDevice._DeviceIndex.get(self, i)Source line 5977
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
AndroidDevice.model_index(cls)Source line 5996
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
AndroidDevice.opt_models(cls)Source line 6000
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
AndroidDevice.devices(cls)Source line 6011
Decorators: @ClassProperty
No caller-supplied parameters are declared.
AndroidDevice.data(cls)Source line 6019
Decorators: @ClassProperty
No caller-supplied parameters are declared.
AndroidDevice.__init__(self, r)Source line 6076
| Parameter | Passing convention | Default / required |
|---|---|---|
r | positional or keyword | required |
AndroidDevice.__str__(self)Source line 6081
No caller-supplied parameters are declared.
AndroidDevice.__contains__(self, value)Source line 6092
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
AndroidDevice.get_model(model)Source line 6094
| Parameter | Passing convention | Default / required |
|---|---|---|
model | positional or keyword | required |
AndroidDevice.__repr__(self)Source line 6107
No caller-supplied parameters are declared.
class AgentFormatSource line 6110
Construct: AgentFormat(parser, os, device=None, is_mobile=None, is_tablet=None)
Fields assigned by the constructor: device, is_mobile, is_tablet, os, parser. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
AgentFormat.__init__ — methodAgentFormat.__call__ — methodAgentFormat.__str__ — methodAgentFormat.__init__(self, parser, os, device=None, is_mobile=None, is_tablet=None)Source line 6111
| Parameter | Passing convention | Default / required |
|---|---|---|
parser | positional or keyword | required |
os | positional or keyword | required |
device | positional or keyword | None |
is_mobile | positional or keyword | None |
is_tablet | positional or keyword | None |
AgentFormat.__call__(self, *args, **kwargs)Source line 6117
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
kwargs | extra keyword arguments (**kwargs) | optional collection |
AgentFormat.__str__(self)Source line 6119
No caller-supplied parameters are declared.
class UserAgentSource line 6121
Construct: UserAgent(txt)
Fields assigned by the constructor: device, extra_info, os, os_version, txt. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
UserAgent.from_request — class methodUserAgent.Formats — nested classUserAgent.Version — nested classUserAgent.__init__ — methodUserAgent.base — decorated property (see guide)UserAgent.is_mobile — decorated property (see guide)UserAgent.is_crawler — propertyUserAgent.browser_version — decorated property (see guide)UserAgent.browser — decorated property (see guide)UserAgent.is_google — decorated property (see guide)UserAgent.is_bing — propertyUserAgent.is_bot — decorated property (see guide)UserAgent.from_request(cls, request)Source line 6187
Decorators: @classmethod
| Parameter | Passing convention | Default / required |
|---|---|---|
request | positional or keyword | required |
class UserAgent.FormatsSource line 6254
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
UserAgent.Formats._opt_iter — nested classUserAgent.Formats._opt_iters — nested classUserAgent.Formats.opt — methodclass UserAgent.Formats._opt_iterSource line 6255
Construct: UserAgent.Formats._opt_iter(opt, remove=[])
Fields assigned by the constructor: l, opt. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
UserAgent.Formats._opt_iter.__init__ — methodUserAgent.Formats._opt_iter.__iter__ — methodUserAgent.Formats._opt_iter.__next__ — methodUserAgent.Formats._opt_iter.__init__(self, opt, remove=[])Source line 6256
| Parameter | Passing convention | Default / required |
|---|---|---|
opt | positional or keyword | required |
remove | positional or keyword | [] |
UserAgent.Formats._opt_iter.__iter__(self)Source line 6269
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iter.__next__(self)Source line 6272
No caller-supplied parameters are declared.
class UserAgent.Formats._opt_itersSource line 6274
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
UserAgent.Formats._opt_iters.i1 — methodUserAgent.Formats._opt_iters.i2 — methodUserAgent.Formats._opt_iters.i3 — methodUserAgent.Formats._opt_iters.i4 — methodUserAgent.Formats._opt_iters.i5 — methodUserAgent.Formats._opt_iters.i6 — methodUserAgent.Formats._opt_iters.i7 — methodUserAgent.Formats._opt_iters.i8 — methodUserAgent.Formats._opt_iters.i9 — methodUserAgent.Formats._opt_iters.i1(cls)Source line 6276
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i2(cls)Source line 6281
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i3(cls)Source line 6286
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i4(cls)Source line 6291
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i5(cls)Source line 6296
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i6(cls)Source line 6301
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i7(cls)Source line 6306
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i8(cls)Source line 6311
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats._opt_iters.i9(cls)Source line 6316
Decorators: @CachedClassProperty
No caller-supplied parameters are declared.
UserAgent.Formats.opt(text, base)Source line 6345
| Parameter | Passing convention | Default / required |
|---|---|---|
text | positional or keyword | required |
base | positional or keyword | required |
class UserAgent.VersionSource line 6517
Construct: UserAgent.Version(v_str)
Fields assigned by the constructor: extra, major, minor, patch, raw, short. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
UserAgent.Version.__init__ — methodUserAgent.Version.__lt__ — methodUserAgent.Version.__gt__ — methodUserAgent.Version.__eq__ — methodUserAgent.Version.__str__ — methodUserAgent.Version.__repr__ — methodUserAgent.Version.__init__(self, v_str)Source line 6518
| Parameter | Passing convention | Default / required |
|---|---|---|
v_str | positional or keyword | required |
UserAgent.Version.__lt__(self, other)Source line 6559
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
UserAgent.Version.__gt__(self, other)Source line 6573
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
UserAgent.Version.__eq__(self, other: object) -> boolSource line 6575
| Parameter | Passing convention | Default / required |
|---|---|---|
other: object | positional or keyword | required |
Return annotation: bool.
UserAgent.Version.__str__(self)Source line 6580
No caller-supplied parameters are declared.
UserAgent.Version.__repr__(self)Source line 6582
No caller-supplied parameters are declared.
UserAgent.__init__(self, txt)Source line 6601
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
UserAgent.base(self)Source line 6655
Decorators: @CachedProperty
No caller-supplied parameters are declared.
UserAgent.is_mobile(self)Source line 6664
Decorators: @CachedProperty
No caller-supplied parameters are declared.
UserAgent.is_crawler(self)Source line 6674
Decorators: @property
No caller-supplied parameters are declared.
UserAgent.browser_version(self)Source line 6681
Decorators: @CachedProperty
No caller-supplied parameters are declared.
UserAgent.browser(self)Source line 6687
Decorators: @CachedProperty
No caller-supplied parameters are declared.
UserAgent.is_google(self)Source line 6798
Decorators: @CachedProperty
No caller-supplied parameters are declared.
UserAgent.is_bing(self)Source line 6805
Decorators: @property
No caller-supplied parameters are declared.
UserAgent.is_bot(self)Source line 6808
Decorators: @CachedProperty
No caller-supplied parameters are declared.
class TimeSource line 6870
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
Time._TimestampFormat — nested classTime._Measure — nested classTime.to_min — methodTime.parse_datetime — methodTime.parse_time — methodTime.date_formats — methodTime.parse_date — methodclass Time._TimestampFormatSource line 6871
Construct: Time._TimestampFormat(name, parser=None)
Fields assigned by the constructor: name, parser, to_datetime. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Time._TimestampFormat.__init__ — methodTime._TimestampFormat.datetime_convert — methodTime._TimestampFormat.parser_func — methodTime._TimestampFormat.__call__ — methodTime._TimestampFormat.__init__(self, name, parser=None)Source line 6888
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
parser | positional or keyword | None |
Time._TimestampFormat.datetime_convert(self, func)Source line 6892
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
Time._TimestampFormat.parser_func(self, func)Source line 6894
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
Time._TimestampFormat.__call__(self, timestamp_str)Source line 6896
| Parameter | Passing convention | Default / required |
|---|---|---|
timestamp_str | positional or keyword | required |
class Time._MeasureSource line 6902
Construct: Time._Measure(name, short, char, seconds, *aliases)
Fields assigned by the constructor: aliases, char, name, seconds, short. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Time._Measure.__init__ — methodTime._Measure.__float__ — methodTime._Measure.__str__ — methodTime._Measure.__repr__ — methodTime._Measure.__contains__ — methodTime._Measure.__init__(self, name, short, char, seconds, *aliases)Source line 6903
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
short | positional or keyword | required |
char | positional or keyword | required |
seconds | positional or keyword | required |
aliases | extra positional arguments (*args) | optional collection |
Time._Measure.__float__(self)Source line 6909
No caller-supplied parameters are declared.
Time._Measure.__str__(self)Source line 6911
No caller-supplied parameters are declared.
Time._Measure.__repr__(self)Source line 6913
No caller-supplied parameters are declared.
Time._Measure.__contains__(self, other)Source line 6915
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
Time.to_min(amt, dur_str)Source line 7002
| Parameter | Passing convention | Default / required |
|---|---|---|
amt | positional or keyword | required |
dur_str | positional or keyword | required |
Time.parse_datetime(txt)Source line 7037
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
Time.parse_time(txt)Source line 7045
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
Time.date_formats(*args)Source line 7093
Decorators: @CachedClassProperty
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
Time.parse_date(txt)Source line 7116
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
is_class_instance(t)Source line 7158
| Parameter | Passing convention | Default / required |
|---|---|---|
t | positional or keyword | required |
class WebRequestInfoSource line 7165
Construct: WebRequestInfo(user_agent, ip)
Fields assigned by the constructor: ip_raw, ua, ua_raw. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
WebRequestInfo.__init__ — methodWebRequestInfo.ip — decorated property (see guide)WebRequestInfo.is_google_confirm — methodWebRequestInfo.is_bing_confirm — methodWebRequestInfo.is_baidu_confirm — methodWebRequestInfo.is_yahoo_confirm — methodWebRequestInfo.is_yandex_confirm — methodWebRequestInfo.is_crawler_confirm — methodWebRequestInfo.__init__(self, user_agent, ip)Source line 7166
| Parameter | Passing convention | Default / required |
|---|---|---|
user_agent | positional or keyword | required |
ip | positional or keyword | required |
WebRequestInfo.ip(self)Source line 7171
Decorators: @CachedProperty
No caller-supplied parameters are declared.
WebRequestInfo.is_google_confirm(self, two_way_confirm=True)Source line 7173
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
WebRequestInfo.is_bing_confirm(self, two_way_confirm=True)Source line 7176
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
WebRequestInfo.is_baidu_confirm(self, two_way_confirm=True)Source line 7179
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
WebRequestInfo.is_yahoo_confirm(self, two_way_confirm=True)Source line 7182
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
WebRequestInfo.is_yandex_confirm(self, two_way_confirm=True)Source line 7185
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
WebRequestInfo.is_crawler_confirm(self, two_way_confirm=True)Source line 7188
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
is_json_parsable(d)Source line 7238
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
epoch(epoch_timestamp=None)Source line 7284
| Parameter | Passing convention | Default / required |
|---|---|---|
epoch_timestamp | positional or keyword | None |
class ActionQueueSource line 7291
Construct: ActionQueue(queue_file='queue.json', queue_file_type=None, loop_interval=60, remove_on_err=True)
Fields assigned by the constructor: actions, logger, loop_count, loop_interval, queue_db, queue_file, queue_file_type, remove_on_err, run_queue. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ActionQueue.Item — nested classActionQueue.__init__ — methodActionQueue.items — decorated property (see guide)ActionQueue._check_iter — nested classActionQueue.start — methodActionQueue.run — async methodActionQueue.to_thread — methodActionQueue.action — methodActionQueue.create_action — async methodclass ActionQueue.ItemSource line 7294
Construct: ActionQueue.Item(d, q)
Fields assigned by the constructor: action, activate, created, d, data, q. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ActionQueue.Item.__init__ — methodActionQueue.Item.remove — async methodActionQueue.Item.hash — decorated property (see guide)ActionQueue.Item.__repr__ — methodActionQueue.Item.__init__(self, d, q)Source line 7295
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
q | positional or keyword | required |
async ActionQueue.Item.remove(self)Source line 7302
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
ActionQueue.Item.hash(self)Source line 7322
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ActionQueue.Item.__repr__(self)Source line 7327
No caller-supplied parameters are declared.
ActionQueue.__init__(self, queue_file='queue.json', queue_file_type=None, loop_interval=60, remove_on_err=True)Source line 7329
| Parameter | Passing convention | Default / required |
|---|---|---|
queue_file | positional or keyword | 'queue.json' |
queue_file_type | positional or keyword | None |
loop_interval | positional or keyword | 60 |
remove_on_err | positional or keyword | True |
async ActionQueue.items(self)Source line 7385
Decorators: @CachedProperty
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class ActionQueue._check_iterSource line 7422
Construct: ActionQueue._check_iter(i, q)
Fields assigned by the constructor: i, q. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ActionQueue._check_iter.__init__ — methodActionQueue._check_iter.hash — methodActionQueue._check_iter.__iter__ — methodActionQueue._check_iter.__next__ — methodActionQueue._check_iter.sort — methodActionQueue._check_iter.__init__(self, i, q)Source line 7423
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
q | positional or keyword | required |
ActionQueue._check_iter.hash(self)Source line 7426
No caller-supplied parameters are declared.
ActionQueue._check_iter.__iter__(self)Source line 7431
No caller-supplied parameters are declared.
ActionQueue._check_iter.__next__(self)Source line 7436
No caller-supplied parameters are declared.
ActionQueue._check_iter.sort(self)Source line 7456
No caller-supplied parameters are declared.
ActionQueue.start(self)Source line 7497
No caller-supplied parameters are declared.
async ActionQueue.run(self)Source line 7499
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
ActionQueue.to_thread(self)Source line 7501
No caller-supplied parameters are declared.
ActionQueue.action(self, func)Source line 7514
| Parameter | Passing convention | Default / required |
|---|---|---|
func | positional or keyword | required |
async ActionQueue.create_action(self, action, data=None, activate=None)Source line 7521
| Parameter | Passing convention | Default / required |
|---|---|---|
action | positional or keyword | required |
data | positional or keyword | None |
activate | positional or keyword | None |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class iCalendarSource line 7582
Construct: iCalendar(name, uid, default_organizer_name=None, default_organizer_email=None)
Fields assigned by the constructor: default_organizer_email, default_organizer_name, events, name, uid, url. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
iCalendar.property_formatter — methodiCalendar.date_formatter — methodiCalendar.datetime_formatter — methodiCalendar.Event — nested classiCalendar.__init__ — methodiCalendar.add_event — methodiCalendar.generate — methodiCalendar.property_formatter(name, value, properties={})Source line 7583
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
value | positional or keyword | required |
properties | positional or keyword | {} |
iCalendar.date_formatter(dt)Source line 7590
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | required |
iCalendar.datetime_formatter(dt)Source line 7603
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | required |
class iCalendar.EventSource line 7630
Construct: iCalendar.Event(ical, name, uid, dt_start, dt_end=None, description=None, organizer_name=None, organizer_email=None, location=None)
Fields assigned by the constructor: description, dt_end, dt_start, ical, location, name, organizer_email, organizer_name, uid. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
iCalendar.Event.__init__ — methodiCalendar.Event.generate — methodiCalendar.Event.__init__(self, ical, name, uid, dt_start, dt_end=None, description=None, organizer_name=None, organizer_email=None, location=None)Source line 7631
| Parameter | Passing convention | Default / required |
|---|---|---|
ical | positional or keyword | required |
name | positional or keyword | required |
uid | positional or keyword | required |
dt_start | positional or keyword | required |
dt_end | positional or keyword | None |
description | positional or keyword | None |
organizer_name | positional or keyword | None |
organizer_email | positional or keyword | None |
location | positional or keyword | None |
iCalendar.Event.generate(self)Source line 7641
No caller-supplied parameters are declared.
iCalendar.__init__(self, name, uid, default_organizer_name=None, default_organizer_email=None)Source line 7666
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
uid | positional or keyword | required |
default_organizer_name | positional or keyword | None |
default_organizer_email | positional or keyword | None |
iCalendar.add_event(self, name, uid, dt_start, dt_end=None, description=None, organizer_name=None, organizer_email=None, location=None)Source line 7673
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
uid | positional or keyword | required |
dt_start | positional or keyword | required |
dt_end | positional or keyword | None |
description | positional or keyword | None |
organizer_name | positional or keyword | None |
organizer_email | positional or keyword | None |
location | positional or keyword | None |
iCalendar.generate(self)Source line 7692
No caller-supplied parameters are declared.
class vCardSource line 7708
Construct: vCard(first_name, last_name, address=None, organization=None, title=None, url=None)
Fields assigned by the constructor: address, address_types, emails, first_name, full_name, last_name, organization, phones, title, url. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
vCard.property_formatter — methodvCard.date_formatter — methodvCard.datetime_formatter — methodvCard.__init__ — methodvCard.add_phone — methodvCard.add_email — methodvCard.set_organization — methodvCard.set_address — methodvCard.set_title — methodvCard.set_url — methodvCard.__str__ — methodvCard.generate — methodvCard.property_formatter(name, value, properties={})Source line 7709
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
value | positional or keyword | required |
properties | positional or keyword | {} |
vCard.date_formatter(dt)Source line 7716
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | required |
vCard.datetime_formatter(dt)Source line 7729
| Parameter | Passing convention | Default / required |
|---|---|---|
dt | positional or keyword | required |
vCard.__init__(self, first_name, last_name, address=None, organization=None, title=None, url=None)Source line 7756
| Parameter | Passing convention | Default / required |
|---|---|---|
first_name | positional or keyword | required |
last_name | positional or keyword | required |
address | positional or keyword | None |
organization | positional or keyword | None |
title | positional or keyword | None |
url | positional or keyword | None |
vCard.add_phone(self, phone, phone_types=['HOME', 'VOICE'])Source line 7767
| Parameter | Passing convention | Default / required |
|---|---|---|
phone | positional or keyword | required |
phone_types | positional or keyword | ['HOME', 'VOICE'] |
vCard.add_email(self, email, email_types=['INTERNET', 'WORK'])Source line 7784
| Parameter | Passing convention | Default / required |
|---|---|---|
email | positional or keyword | required |
email_types | positional or keyword | ['INTERNET', 'WORK'] |
vCard.set_organization(self, organization)Source line 7798
| Parameter | Passing convention | Default / required |
|---|---|---|
organization | positional or keyword | required |
vCard.set_address(self, address, address_types=['HOME'])Source line 7805
| Parameter | Passing convention | Default / required |
|---|---|---|
address | positional or keyword | required |
address_types | positional or keyword | ['HOME'] |
vCard.set_title(self, title)Source line 7828
| Parameter | Passing convention | Default / required |
|---|---|---|
title | positional or keyword | required |
vCard.set_url(self, url)Source line 7835
| Parameter | Passing convention | Default / required |
|---|---|---|
url | positional or keyword | required |
vCard.__str__(self)Source line 7842
No caller-supplied parameters are declared.
vCard.generate(self)Source line 7844
No caller-supplied parameters are declared.
class AddressSource line 8753
Represents an address with properties for address line 1, address line 2, city, state, and zip code.
Construct: Address(d, correct_address=True, parse_address=True)
Fields assigned by the constructor: address1, address2, city, parsed_address, state, zip. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Address.__init__ — methodAddress.__str__ — methodAddress.to_dict — methodAddress.get_dict — methodAddress.parsed_address — decorated property (see guide)Address.compare_address — decorated property (see guide)Address.street — propertyAddress.address — propertyAddress.address2_int — decorated property (see guide)Address.street2 — propertyAddress.zip_code — propertyAddress.postal_code — propertyAddress.__repr__ — methodAddress.__eq__ — methodAddress.parse_address — methodAddress.__init__(self, d, correct_address=True, parse_address=True)Source line 8762
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
correct_address | positional or keyword | True |
parse_address | positional or keyword | True |
Address.__str__(self)Source line 8930
No caller-supplied parameters are declared.
Address.to_dict(self)Source line 8935
No caller-supplied parameters are declared.
Address.get_dict(self)Source line 8943
No caller-supplied parameters are declared.
Address.parsed_address(self)Source line 8947
Decorators: @CachedProperty
No caller-supplied parameters are declared.
Address.compare_address(self)Source line 8951
Decorators: @CachedProperty
No caller-supplied parameters are declared.
Address.street(self)Source line 8955
Decorators: @property
No caller-supplied parameters are declared.
Address.address(self)Source line 8958
Decorators: @property
No caller-supplied parameters are declared.
Address.address2_int(self)Source line 8961
Decorators: @CachedProperty
No caller-supplied parameters are declared.
Address.street2(self)Source line 8964
Decorators: @property
No caller-supplied parameters are declared.
Address.zip_code(self)Source line 8967
Decorators: @property
No caller-supplied parameters are declared.
Address.postal_code(self)Source line 8970
Decorators: @property
No caller-supplied parameters are declared.
Address.__repr__(self)Source line 8973
No caller-supplied parameters are declared.
Address.__eq__(self, value: object) -> boolSource line 8976
Check if the current Address object is equal to another object.
Args:
value (object): The object to compare with.
Returns:
bool: True if the objects are equal, False otherwise.
| Parameter | Passing convention | Default / required |
|---|---|---|
value: object | positional or keyword | required |
Return annotation: bool.
Address.parse_address(txt)Source line 9010
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
async run_code(code, **kwargs)Source line 9178
| Parameter | Passing convention | Default / required |
|---|---|---|
code | positional or keyword | required |
kwargs | extra keyword arguments (**kwargs) | optional collection |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class CodeFormatSource line 9232
Construct: CodeFormat()
Fields assigned by the constructor: con_lexer, formatter, lexer, trace_lexer. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
CodeFormat.__init__ — methodCodeFormat.styling — methodCodeFormat.code_format — methodCodeFormat.console_format — methodCodeFormat.traceback_format — methodCodeFormat.__init__(self)Source line 9233
No caller-supplied parameters are declared.
CodeFormat.styling(self)Source line 9238
No caller-supplied parameters are declared.
CodeFormat.code_format(self, txt, linenos=False)Source line 9243
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
linenos | positional or keyword | False |
CodeFormat.console_format(self, txt, linenos=False)Source line 9245
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
linenos | positional or keyword | False |
CodeFormat.traceback_format(self, txt, linenos=False)Source line 9247
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
linenos | positional or keyword | False |
class StandardRequestSource line 9311
Construct: StandardRequest(request)
Fields assigned by the constructor: cookies, headers, method, remote, request, url, user_agent. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
StandardRequest.__init__ — methodStandardRequest.path — decorated property (see guide)StandardRequest.scheme — decorated property (see guide)StandardRequest.query_string — decorated property (see guide)StandardRequest.query — decorated property (see guide)StandardRequest.args — propertyStandardRequest.ip — propertyStandardRequest.ip_info — decorated property (see guide)StandardRequest.body — decorated property (see guide)StandardRequest.load — async methodStandardRequest.__await__ — methodStandardRequest.__init__(self, request)Source line 9312
| Parameter | Passing convention | Default / required |
|---|---|---|
request | positional or keyword | required |
StandardRequest.path(self)Source line 9397
Decorators: @CachedProperty
No caller-supplied parameters are declared.
StandardRequest.scheme(self)Source line 9401
Decorators: @CachedProperty
No caller-supplied parameters are declared.
StandardRequest.query_string(self)Source line 9405
Decorators: @CachedProperty
No caller-supplied parameters are declared.
StandardRequest.query(self)Source line 9409
Decorators: @CachedProperty
No caller-supplied parameters are declared.
StandardRequest.args(self)Source line 9413
Decorators: @property
No caller-supplied parameters are declared.
StandardRequest.ip(self)Source line 9416
Decorators: @property
No caller-supplied parameters are declared.
async StandardRequest.ip_info(self)Source line 9419
Decorators: @CachedProperty
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
StandardRequest.body(self)Source line 9423
Decorators: @CachedProperty
No caller-supplied parameters are declared.
async StandardRequest.load(self)Source line 9430
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
StandardRequest.__await__(self)Source line 9436
No caller-supplied parameters are declared.
class ListIndexSource line 9440
Construct: ListIndex(d, key=str, f_idx=0, nested_indexes=None)
Fields assigned by the constructor: d, f_idx, index, key, nested_indexes. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ListIndex.__init__ — methodListIndex.get — methodListIndex.get_ci — methodListIndex.get_list — methodListIndex.get_ci_list — methodListIndex.get_index — methodListIndex.get_index_ci — methodListIndex.add — methodListIndex.append — methodListIndex.count — methodListIndex.__contains__ — methodListIndex.__iter__ — methodListIndex.__getitem__ — methodListIndex.__len__ — methodListIndex.__init__(self, d, key=str, f_idx=0, nested_indexes=None)Source line 9441
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
key | positional or keyword | str |
f_idx | positional or keyword | 0 |
nested_indexes | positional or keyword | None |
ListIndex.get(self, i, case_insensitive=False)Source line 9484
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
case_insensitive | positional or keyword | False |
ListIndex.get_ci(self, i)Source line 9505
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
ListIndex.get_list(self, i, case_insensitive=False)Source line 9525
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
case_insensitive | positional or keyword | False |
ListIndex.get_ci_list(self, i)Source line 9548
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
ListIndex.get_index(self, i, case_insensitive=False)Source line 9570
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
case_insensitive | positional or keyword | False |
ListIndex.get_index_ci(self, i)Source line 9591
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
ListIndex.add(self, i)Source line 9681
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
ListIndex.append(self, i)Source line 9700
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
ListIndex.count(self, i)Source line 9702
| Parameter | Passing convention | Default / required |
|---|---|---|
i | positional or keyword | required |
ListIndex.__contains__(self, other)Source line 9704
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
ListIndex.__iter__(self)Source line 9706
No caller-supplied parameters are declared.
ListIndex.__getitem__(self, value)Source line 9708
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
ListIndex.__len__(self)Source line 9714
No caller-supplied parameters are declared.
class SortedListSource line 9720
Construct: SortedList(d, key=str, reverse=False)
Fields assigned by the constructor: d, key, reverse. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
SortedList.__init__ — methodSortedList.append — methodSortedList.add — methodSortedList.__contains__ — methodSortedList.__iter__ — methodSortedList.__getitem__ — methodSortedList.__len__ — methodSortedList.__init__(self, d, key=str, reverse=False)Source line 9721
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
key | positional or keyword | str |
reverse | positional or keyword | False |
SortedList.append(self, new)Source line 9728
| Parameter | Passing convention | Default / required |
|---|---|---|
new | positional or keyword | required |
SortedList.add(self, new_value)Source line 9730
| Parameter | Passing convention | Default / required |
|---|---|---|
new_value | positional or keyword | required |
SortedList.__contains__(self, other)Source line 9796
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
SortedList.__iter__(self)Source line 9798
No caller-supplied parameters are declared.
SortedList.__getitem__(self, value)Source line 9800
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
SortedList.__len__(self)Source line 9802
No caller-supplied parameters are declared.
class AttrDictSource line 9805
Construct: AttrDict(data={})
Declared functions, properties, and nested objects:
AttrDict.__init__ — methodAttrDict.__getattr__ — methodAttrDict.__setattr__ — methodAttrDict.__getitem__ — methodAttrDict.__setitem__ — methodAttrDict.__delitem__ — methodAttrDict.get — methodAttrDict.__init__(self, data={})Source line 9806
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | {} |
AttrDict.__getattr__(self, name)Source line 9808
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
AttrDict.__setattr__(self, name, value)Source line 9814
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
value | positional or keyword | required |
AttrDict.__getitem__(self, key)Source line 9817
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
AttrDict.__setitem__(self, key, value)Source line 9820
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
value | positional or keyword | required |
AttrDict.__delitem__(self, key)Source line 9823
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
AttrDict.get(self, name, default=None)Source line 9826
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
default | positional or keyword | None |
count_print(v, max_lines=None)Source line 9831
| Parameter | Passing convention | Default / required |
|---|---|---|
v | positional or keyword | required |
max_lines | positional or keyword | None |
class ServerAnalyticsSource line 9847
Construct: ServerAnalytics()
Fields assigned by the constructor: recent_requests. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ServerAnalytics.__init__ — methodServerAnalytics.__init__(self)Source line 9848
No caller-supplied parameters are declared.
class ReqInfoSource line 9852
Construct: ReqInfo(*args)
Fields assigned by the constructor: ip, method, time, url, user_agent. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
ReqInfo.__init__ — methodReqInfo.to_dict — methodReqInfo.get_id — methodReqInfo.link_info — decorated property (see guide)ReqInfo.path — propertyReqInfo.ua_raw — propertyReqInfo.user_agent_info — decorated property (see guide)ReqInfo.device — decorated property (see guide)ReqInfo.browser — decorated property (see guide)ReqInfo.os — decorated property (see guide)ReqInfo.is_mobile — decorated property (see guide)ReqInfo.browser — decorated property (see guide)ReqInfo.ip_info — decorated property (see guide)ReqInfo.country — decorated property (see guide)ReqInfo.region — decorated property (see guide)ReqInfo.city — decorated property (see guide)ReqInfo.asn — decorated property (see guide)ReqInfo.org — decorated property (see guide)ReqInfo.location — decorated property (see guide)ReqInfo.hostname — decorated property (see guide)ReqInfo.is_google_confirm — methodReqInfo.is_bing_confirm — methodReqInfo.is_baidu_confirm — methodReqInfo.is_yahoo_confirm — methodReqInfo.is_yandex_confirm — methodReqInfo.is_crawler_confirm — methodReqInfo.__init__(self, *args)Source line 9853
| Parameter | Passing convention | Default / required |
|---|---|---|
args | extra positional arguments (*args) | optional collection |
ReqInfo.to_dict(self)Source line 9870
No caller-supplied parameters are declared.
ReqInfo.get_id(self)Source line 9878
No caller-supplied parameters are declared.
ReqInfo.link_info(self)Source line 9888
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.path(self)Source line 9891
Decorators: @property
No caller-supplied parameters are declared.
ReqInfo.ua_raw(self)Source line 9894
Decorators: @property
No caller-supplied parameters are declared.
ReqInfo.user_agent_info(self)Source line 9897
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.device(self)Source line 9900
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.browser(self)Source line 9904
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.os(self)Source line 9907
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.is_mobile(self)Source line 9910
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.browser(self)Source line 9913
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.ip_info(self)Source line 9917
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.country(self)Source line 9925
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.region(self)Source line 9928
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.city(self)Source line 9931
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.asn(self)Source line 9934
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.org(self)Source line 9937
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.location(self)Source line 9940
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.hostname(self)Source line 9943
Decorators: @CachedProperty
No caller-supplied parameters are declared.
ReqInfo.is_google_confirm(self, two_way_confirm=True)Source line 9947
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
ReqInfo.is_bing_confirm(self, two_way_confirm=True)Source line 9950
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
ReqInfo.is_baidu_confirm(self, two_way_confirm=True)Source line 9953
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
ReqInfo.is_yahoo_confirm(self, two_way_confirm=True)Source line 9956
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
ReqInfo.is_yandex_confirm(self, two_way_confirm=True)Source line 9959
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
ReqInfo.is_crawler_confirm(self, two_way_confirm=True)Source line 9962
| Parameter | Passing convention | Default / required |
|---|---|---|
two_way_confirm | positional or keyword | True |
class VersionSource line 10019
Construct: Version(v_str)
Fields assigned by the constructor: extra, major, minor, patch, raw, short. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Version.__init__ — methodVersion.__lt__ — methodVersion.__gt__ — methodVersion.__le__ — methodVersion.__ge__ — methodVersion.__eq__ — methodVersion.__str__ — methodVersion.__repr__ — methodVersion.__init__(self, v_str)Source line 10020
| Parameter | Passing convention | Default / required |
|---|---|---|
v_str | positional or keyword | required |
Version.__lt__(self, other)Source line 10056
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
Version.__gt__(self, other)Source line 10072
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
Version.__le__(self, other)Source line 10074
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
Version.__ge__(self, other)Source line 10076
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
Version.__eq__(self, other: object) -> boolSource line 10078
| Parameter | Passing convention | Default / required |
|---|---|---|
other: object | positional or keyword | required |
Return annotation: bool.
Version.__str__(self)Source line 10085
No caller-supplied parameters are declared.
Version.__repr__(self)Source line 10087
No caller-supplied parameters are declared.
class ExtraSource line 10106
Construct: Extra(data, identifier, db, table_name, column_name='extra', identifier_column='id', as_dict=False)
Fields assigned by the constructor: as_dict. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Extra.__init__ — methodExtra.encoded — propertyExtra.__getitem__ — methodExtra.__setitem__ — methodExtra.__delitem__ — methodExtra.__iter__ — methodExtra.__len__ — methodExtra.__str__ — methodExtra.__contains__ — methodExtra.get — methodExtra.set — methodExtra.append — methodExtra.add — methodExtra.remove — methodExtra.save — async methodExtra.__init__(self, data, identifier, db, table_name, column_name='extra', identifier_column='id', as_dict=False)Source line 10109
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
identifier | positional or keyword | required |
db | positional or keyword | required |
table_name | positional or keyword | required |
column_name | positional or keyword | 'extra' |
identifier_column | positional or keyword | 'id' |
as_dict | positional or keyword | False |
Extra.encoded(self)Source line 10142
Decorators: @property
No caller-supplied parameters are declared.
Extra.__getitem__(self, key)Source line 10151
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
Extra.__setitem__(self, key, value)Source line 10153
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
value | positional or keyword | required |
Extra.__delitem__(self, key)Source line 10155
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
Extra.__iter__(self)Source line 10157
No caller-supplied parameters are declared.
Extra.__len__(self)Source line 10159
No caller-supplied parameters are declared.
Extra.__str__(self)Source line 10161
No caller-supplied parameters are declared.
Extra.__contains__(self, key)Source line 10163
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
Extra.get(self, key, default=None)Source line 10165
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
default | positional or keyword | None |
Extra.set(self, key, value)Source line 10167
| Parameter | Passing convention | Default / required |
|---|---|---|
key | positional or keyword | required |
value | positional or keyword | required |
Extra.append(self, value)Source line 10169
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
Extra.add(self, value)Source line 10171
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
Extra.remove(self, value)Source line 10173
| Parameter | Passing convention | Default / required |
|---|---|---|
value | positional or keyword | required |
async Extra.save(self)Source line 10175
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class PhoneNumberSource line 10179
Construct: PhoneNumber(number)
Fields assigned by the constructor: area_code, country_code, number. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
PhoneNumber.__init__ — methodPhoneNumber.e164 — propertyPhoneNumber.domestic_format — propertyPhoneNumber.international_format — propertyPhoneNumber.__str__ — methodPhoneNumber.__eq__ — methodPhoneNumber.__len__ — methodPhoneNumber.__getattr__ — methodPhoneNumber.__init__(self, number)Source line 10180
| Parameter | Passing convention | Default / required |
|---|---|---|
number | positional or keyword | required |
PhoneNumber.e164(self)Source line 10194
Decorators: @property
No caller-supplied parameters are declared.
PhoneNumber.domestic_format(self)Source line 10197
Decorators: @property
No caller-supplied parameters are declared.
PhoneNumber.international_format(self)Source line 10200
Decorators: @property
No caller-supplied parameters are declared.
PhoneNumber.__str__(self)Source line 10202
No caller-supplied parameters are declared.
PhoneNumber.__eq__(self, other)Source line 10204
| Parameter | Passing convention | Default / required |
|---|---|---|
other | positional or keyword | required |
PhoneNumber.__len__(self)Source line 10221
No caller-supplied parameters are declared.
PhoneNumber.__getattr__(self, name)Source line 10223
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
class PermissionSource line 10228
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
Permission.evaluate_permission — methodPermission.evaluate_permission(primary, evaluate)Source line 10229
| Parameter | Passing convention | Default / required |
|---|---|---|
primary | positional or keyword | required |
evaluate | positional or keyword | required |
class pluginsSource line 10247
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
plugins.Mailgun — nested classplugins.Twilio — nested classplugins.UserManager — nested classclass plugins.MailgunSource line 10248
Construct: plugins.Mailgun(api_key, domain, default_from=None, default_archive_to=None)
Fields assigned by the constructor: api_key, default_archive_to, default_from, domain. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.Mailgun.__init__ — methodplugins.Mailgun.send_email — async methodplugins.Mailgun.__init__(self, api_key, domain, default_from=None, default_archive_to=None)Source line 10249
| Parameter | Passing convention | Default / required |
|---|---|---|
api_key | positional or keyword | required |
domain | positional or keyword | required |
default_from | positional or keyword | None |
default_archive_to | positional or keyword | None |
async plugins.Mailgun.send_email(self, subject, to, from_email=None, text=None, html=None, template=None, cc=None, bcc=None, reply_to=None, template_variables=None, archive_to=None)Source line 10254
| Parameter | Passing convention | Default / required |
|---|---|---|
subject | positional or keyword | required |
to | positional or keyword | required |
from_email | positional or keyword | None |
text | positional or keyword | None |
html | positional or keyword | None |
template | positional or keyword | None |
cc | positional or keyword | None |
bcc | positional or keyword | None |
reply_to | positional or keyword | None |
template_variables | positional or keyword | None |
archive_to | positional or keyword | None |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class plugins.TwilioSource line 10301
Construct: plugins.Twilio(account_sid, auth_token, default_from=None)
Fields assigned by the constructor: account_sid, auth_token, default_from. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.Twilio.__init__ — methodplugins.Twilio.send_sms — async methodplugins.Twilio.LookupNumber — nested classplugins.Twilio.lookup — async methodplugins.Twilio.identity_match — async methodplugins.Twilio.line_status — async methodplugins.Twilio.is_line_active — async methodplugins.Twilio.__init__(self, account_sid, auth_token, default_from=None)Source line 10302
| Parameter | Passing convention | Default / required |
|---|---|---|
account_sid | positional or keyword | required |
auth_token | positional or keyword | required |
default_from | positional or keyword | None |
async plugins.Twilio.send_sms(self, to, from_phone=None, body=None, media_url=None)Source line 10307
| Parameter | Passing convention | Default / required |
|---|---|---|
to | positional or keyword | required |
from_phone | positional or keyword | None |
body | positional or keyword | None |
media_url | positional or keyword | None |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class plugins.Twilio.LookupNumber(PhoneNumber)Source line 10340
A parsed Twilio Lookup response with PhoneNumber behavior.
Construct: plugins.Twilio.LookupNumber(phone_number, lookup_fields, raw_response)
Fields assigned by the constructor: caller_name, calling_country_code, identity_match, iso_country_code, line_status, line_type_intelligence, lookup_fields, national_format, payload, raw_response, requested_fields, url, valid, validation_errors. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.Twilio.LookupNumber.CallerName — nested classplugins.Twilio.LookupNumber.IdentityMatch — nested classplugins.Twilio.LookupNumber.LineStatus — nested classplugins.Twilio.LookupNumber.LineTypeIntelligence — nested classplugins.Twilio.LookupNumber.__init__ — methodplugins.Twilio.LookupNumber.phone_number — propertyplugins.Twilio.LookupNumber.text — propertyplugins.Twilio.LookupNumber.json — methodplugins.Twilio.LookupNumber.raise_for_status — methodclass plugins.Twilio.LookupNumber.CallerNameSource line 10343
Construct: plugins.Twilio.LookupNumber.CallerName(data)
Fields assigned by the constructor: caller_name, caller_type, error_code, payload. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.Twilio.LookupNumber.CallerName.__init__(self, data)Source line 10344
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
class plugins.Twilio.LookupNumber.IdentityMatchSource line 10350
Construct: plugins.Twilio.LookupNumber.IdentityMatch(data)
Fields assigned by the constructor: address_country_match, address_line_match, address_lines_match, city_match, date_of_birth_match, error_code, error_message, first_name_match, last_name_match, national_id_match, payload, postal_code_match, state_match, summary_score. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.Twilio.LookupNumber.IdentityMatch.__init__(self, data)Source line 10351
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
class plugins.Twilio.LookupNumber.LineStatusSource line 10368
Construct: plugins.Twilio.LookupNumber.LineStatus(data)
Fields assigned by the constructor: error_code, payload, status. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.Twilio.LookupNumber.LineStatus.__init__(self, data)Source line 10369
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
plugins.Twilio.LookupNumber.LineStatus.is_line_active(self)Source line 10375
Decorators: @property
True when active/reachable, False when inactive/unreachable, otherwise None.
No caller-supplied parameters are declared.
class plugins.Twilio.LookupNumber.LineTypeIntelligenceSource line 10384
Construct: plugins.Twilio.LookupNumber.LineTypeIntelligence(data)
Fields assigned by the constructor: carrier_name, error_code, mobile_country_code, mobile_network_code, payload, type. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.Twilio.LookupNumber.LineTypeIntelligence.__init__(self, data)Source line 10385
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
plugins.Twilio.LookupNumber.__init__(self, phone_number, lookup_fields, raw_response)Source line 10393
| Parameter | Passing convention | Default / required |
|---|---|---|
phone_number | positional or keyword | required |
lookup_fields | positional or keyword | required |
raw_response | positional or keyword | required |
plugins.Twilio.LookupNumber.phone_number(self)Source line 10430
Decorators: @property
No caller-supplied parameters are declared.
plugins.Twilio.LookupNumber.text(self)Source line 10434
Decorators: @property
No caller-supplied parameters are declared.
plugins.Twilio.LookupNumber.json(self)Source line 10437
No caller-supplied parameters are declared.
plugins.Twilio.LookupNumber.raise_for_status(self)Source line 10442
No caller-supplied parameters are declared.
async plugins.Twilio.lookup(self, phone_number, lookup_fields, **params)Source line 10455
Look up a phone number and return a LookupNumber. Fields listed below: - caller_name = name of a caller if available ($.01) - identity_match = match of a phone number to a person ($.10) - line_status = line status of a phone number ($.007) - line_type_intelligence = line type intelligence of a phone number ($.008) Docs: https://www.twilio.com/docs/lookup/v2-api Pricing: https://www.twilio.com/en-us/user-authentication-identity/pricing/lookup
| Parameter | Passing convention | Default / required |
|---|---|---|
phone_number | positional or keyword | required |
lookup_fields | positional or keyword | required |
params | extra keyword arguments (**kwargs) | optional collection |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.Twilio.identity_match(self, phone_number, first_name=None, last_name=None, address=None, date_of_birth=None, lookup_fields='identity_match', **params)Source line 10488
| Parameter | Passing convention | Default / required |
|---|---|---|
phone_number | positional or keyword | required |
first_name | positional or keyword | None |
last_name | positional or keyword | None |
address | positional or keyword | None |
date_of_birth | positional or keyword | None |
lookup_fields | positional or keyword | 'identity_match' |
params | extra keyword arguments (**kwargs) | optional collection |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.Twilio.line_status(self, phone)Source line 10534
| Parameter | Passing convention | Default / required |
|---|---|---|
phone | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.Twilio.is_line_active(self, phone)Source line 10536
Returns True if the line is active, False if inactive, and None if unknown.
| Parameter | Passing convention | Default / required |
|---|---|---|
phone | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class plugins.UserManagerSource line 10543
Construct: plugins.UserManager(dbm, tbl_name='users', mfa_tbl=None, session_validator=None)
Fields assigned by the constructor: db, dbm, hash_func, mfa_tbl, session_validator, tbl_name. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.UserManager.__init__ — methodplugins.UserManager.mfa — decorated property (see guide)plugins.UserManager.users — decorated property (see guide)plugins.UserManager.add_user — async methodplugins.UserManager.get_user — async methodplugins.UserManager.get_session — async methodplugins.UserManager.User — nested classplugins.UserManager.UserSession — nested classplugins.UserManager.MFA — nested classplugins.UserManager.__init__(self, dbm, tbl_name='users', mfa_tbl=None, session_validator=None) -> NoneSource line 10549
| Parameter | Passing convention | Default / required |
|---|---|---|
dbm | positional or keyword | required |
tbl_name | positional or keyword | 'users' |
mfa_tbl | positional or keyword | None |
session_validator | positional or keyword | None |
Return annotation: None.
async plugins.UserManager.mfa(self)Source line 10626
Decorators: @AsyncProperty
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.users(self)Source line 10635
Decorators: @CachedProperty
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.add_user(self, username, password)Source line 10641
| Parameter | Passing convention | Default / required |
|---|---|---|
username | positional or keyword | required |
password | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.get_user(self, d)Source line 10657
| Parameter | Passing convention | Default / required |
|---|---|---|
d | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.get_session(self, token)Source line 10666
| Parameter | Passing convention | Default / required |
|---|---|---|
token | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class plugins.UserManager.UserSource line 10671
Construct: plugins.UserManager.User(data, um)
Fields assigned by the constructor: data, id, password, salt, sessions, username. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.UserManager.User.__init__ — methodplugins.UserManager.User.check_password — methodplugins.UserManager.User.update_password — async methodplugins.UserManager.User.get_session — async methodplugins.UserManager.User.save_sessions — async methodplugins.UserManager.User.add_session — async methodplugins.UserManager.User.set_username — async methodplugins.UserManager.User.__init__(self, data, um)Source line 10672
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
um | positional or keyword | required |
plugins.UserManager.User.check_password(self, password)Source line 10683
| Parameter | Passing convention | Default / required |
|---|---|---|
password | positional or keyword | required |
async plugins.UserManager.User.update_password(self, password)Source line 10685
| Parameter | Passing convention | Default / required |
|---|---|---|
password | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.User.get_session(self, token)Source line 10694
| Parameter | Passing convention | Default / required |
|---|---|---|
token | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.User.save_sessions(self)Source line 10698
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.User.add_session(self, req, extra=None)Source line 10704
| Parameter | Passing convention | Default / required |
|---|---|---|
req | positional or keyword | required |
extra | positional or keyword | None |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.User.set_username(self, username)Source line 10721
| Parameter | Passing convention | Default / required |
|---|---|---|
username | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class plugins.UserManager.UserSessionSource line 10724
Construct: plugins.UserManager.UserSession(base_data, u)
Fields assigned by the constructor: created, extra, ip, token, user, user_agent. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.UserManager.UserSession.Validation — nested classplugins.UserManager.UserSession.__init__ — methodplugins.UserManager.UserSession.delete — async methodplugins.UserManager.UserSession.raw_data — propertyplugins.UserManager.UserSession.encoded — propertyplugins.UserManager.UserSession.ip_info — decorated property (see guide)plugins.UserManager.UserSession.location — decorated property (see guide)plugins.UserManager.UserSession.time_since_created — propertyplugins.UserManager.UserSession.validate — async methodclass plugins.UserManager.UserSession.ValidationSource line 10757
Construct: plugins.UserManager.UserSession.Validation(max_duration=None, ip=None, check_user_agent=False, max_distance=None, function=None)
Fields assigned by the constructor: check_user_agent, function, ip, max_distance, max_duration. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.UserManager.UserSession.Validation.__init__(self, max_duration=None, ip=None, check_user_agent=False, max_distance=None, function=None)Source line 10758
| Parameter | Passing convention | Default / required |
|---|---|---|
max_duration | positional or keyword | None |
ip | positional or keyword | None |
check_user_agent | positional or keyword | False |
max_distance | positional or keyword | None |
function | positional or keyword | None |
plugins.UserManager.UserSession.Validation.__call__(self, session, req)Source line 10766
| Parameter | Passing convention | Default / required |
|---|---|---|
session | positional or keyword | required |
req | positional or keyword | required |
plugins.UserManager.UserSession.__init__(self, base_data, u)Source line 10804
| Parameter | Passing convention | Default / required |
|---|---|---|
base_data | positional or keyword | required |
u | positional or keyword | required |
async plugins.UserManager.UserSession.delete(self)Source line 10825
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
plugins.UserManager.UserSession.raw_data(self)Source line 10829
Decorators: @property
No caller-supplied parameters are declared.
plugins.UserManager.UserSession.encoded(self)Source line 10840
Decorators: @property
No caller-supplied parameters are declared.
async plugins.UserManager.UserSession.ip_info(self)Source line 10843
Decorators: @CachedProperty(expire=20000)
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
async plugins.UserManager.UserSession.location(self)Source line 10846
Decorators: @CachedProperty(expire=3600)
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
plugins.UserManager.UserSession.time_since_created(self)Source line 10849
Decorators: @property
No caller-supplied parameters are declared.
async plugins.UserManager.UserSession.validate(self, req)Source line 10851
| Parameter | Passing convention | Default / required |
|---|---|---|
req | positional or keyword | required |
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
class plugins.UserManager.MFASource line 10853
Construct: plugins.UserManager.MFA(data, um)
Fields assigned by the constructor: created_at, data, id, type, user_id. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
plugins.UserManager.MFA.__init__ — methodplugins.UserManager.MFA.delete — async methodplugins.UserManager.MFA.__init__(self, data, um)Source line 10854
| Parameter | Passing convention | Default / required |
|---|---|---|
data | positional or keyword | required |
um | positional or keyword | required |
async plugins.UserManager.MFA.delete(self)Source line 10861
No caller-supplied parameters are declared.
Declared with async def. Normal calls return an awaitable, or an async generator if the body yields. Decorated properties may be accessed differently; follow the object guide.
haversine(lat1, lon1, lat2, lon2, use_miles=False)Source line 10867
| Parameter | Passing convention | Default / required |
|---|---|---|
lat1 | positional or keyword | required |
lon1 | positional or keyword | required |
lat2 | positional or keyword | required |
lon2 | positional or keyword | required |
use_miles | positional or keyword | False |
word_to_digit(word)Source line 10894
| Parameter | Passing convention | Default / required |
|---|---|---|
word | positional or keyword | required |
name_to_normal(name)Source line 10926
| Parameter | Passing convention | Default / required |
|---|---|---|
name | positional or keyword | required |
convert_to_normal(txt)Source line 11320
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
convert_to_single_letters(txt)Source line 11429
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
equivilency_convert(txt)Source line 11445
| Parameter | Passing convention | Default / required |
|---|---|---|
txt | positional or keyword | required |
class MatchingSource line 11475
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
Matching.Methods — nested classMatching.Settings — nested classMatching.fuzzy_match — methodMatching.fuzzy_within — methodMatching.match — methodMatching.within — methodclass Matching.MethodsSource line 11476
No constructor is declared here. Some utility classes group functions for direct class access; use the call style shown in the guide.
Declared functions, properties, and nested objects:
Matching.Methods.levenshtein_local — methodMatching.Methods.levenshtein_local(s1, s2)Source line 11477
| Parameter | Passing convention | Default / required |
|---|---|---|
s1 | positional or keyword | required |
s2 | positional or keyword | required |
class Matching.SettingsSource line 11498
normalize: convert to normalized form (ex. "héllô" -> "hello") extraneous_characters: convert to single letters (ex. "hello" -> "helo") ignore_spaces: ignore spaces (ex. "he llo" == "hello") match_asterisk: match '*' as a wildcard (ex. "h*llo" == "hello") fuzzy_threshold: how close (in % of characters) the strings must be to be considered a match (ex. "12345" == "12344" with threshold .8) phonetic: convert text to a phonetic form (ex. "Derrick" == "Derrik")
Construct: Matching.Settings(normalize=True, extraneous_characters=False, ignore_spaces=False, match_asterisk=False, fuzzy_threshold=1, phonetic=False)
Fields assigned by the constructor: extraneous_characters, fuzzy_threshold, ignore_spaces, match_asterisk, normalize, phonetic. Some assignments may be conditional; see the object guide for meaning and lifecycle.
Declared functions, properties, and nested objects:
Matching.Settings.__init__ — methodMatching.Settings.__init__(self, normalize=True, extraneous_characters=False, ignore_spaces=False, match_asterisk=False, fuzzy_threshold=1, phonetic=False)Source line 11505
| Parameter | Passing convention | Default / required |
|---|---|---|
normalize | positional or keyword | True |
extraneous_characters | positional or keyword | False |
ignore_spaces | positional or keyword | False |
match_asterisk | positional or keyword | False |
fuzzy_threshold | positional or keyword | 1 |
phonetic | positional or keyword | False |
Matching.fuzzy_match(txt1, txt2, threshold=0.8)Source line 11529
| Parameter | Passing convention | Default / required |
|---|---|---|
txt1 | positional or keyword | required |
txt2 | positional or keyword | required |
threshold | positional or keyword | 0.8 |
Matching.fuzzy_within(txt1, txt2, threshold=0.8)Source line 11539
Check if txt1 is within txt2 based on fuzzy matching
| Parameter | Passing convention | Default / required |
|---|---|---|
txt1 | positional or keyword | required |
txt2 | positional or keyword | required |
threshold | positional or keyword | 0.8 |
Matching.match(txt1, txt2, settings=None)Source line 11547
| Parameter | Passing convention | Default / required |
|---|---|---|
txt1 | positional or keyword | required |
txt2 | positional or keyword | required |
settings | positional or keyword | None |
Matching.within(txt1, txt2, settings=None)Source line 11585
Check if txt1 is within txt2 based on settings
| Parameter | Passing convention | Default / required |
|---|---|---|
txt1 | positional or keyword | required |
txt2 | positional or keyword | required |
settings | positional or keyword | None |