peewee API Reference
Full documentation for peewee (4.3.0)
peewee.Alias
Python Library Documentation: class Alias in module peewee class Alias(WrappedNode) | Alias(node, alias) | | Method resolution order: | Alias | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __hash__(self) | Return hash(self). | | __init__(self, node, alias) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | alias(self, alias=None) | | c = <peewee._DynamicEntity object> | is_alias(self) | | unalias(self) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | name | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.AliasManager
Python Library Documentation: class AliasManager in module peewee class AliasManager(builtins.object) | Methods defined here: | | __getitem__(self, source) | | __init__(self) | Initialize self. See help(type(self)) for accurate signature. | | __setitem__(self, source, alias) | | add(self, source) | | get(self, source, any_depth=False) | | pop(self) | | push(self) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | mapping
peewee.AnyField
Python Library Documentation: class AnyField in module peewee class AnyField(Field) | AnyField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | AnyField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | field_type = 'ANY' | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.AsIs
Python Library Documentation: function AsIs in module peewee AsIs(value, converter=None)
peewee.Asc
Python Library Documentation: function Asc in module peewee Asc(node, collation=None, nulls=None)
peewee.AutoField
Python Library Documentation: class AutoField in module peewee class AutoField(IntegerField) | AutoField(*args, **kwargs) | | Method resolution order: | AutoField | IntegerField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | auto_increment = True | | field_type = 'AUTO' | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BackrefAccessor
Python Library Documentation: class BackrefAccessor in module peewee class BackrefAccessor(builtins.object) | BackrefAccessor(field) | | Methods defined here: | | __get__(self, instance, instance_type=None) | | __init__(self, field) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.BareField
Python Library Documentation: class BareField in module peewee class BareField(Field) | BareField(adapt=None, *args, **kwargs) | | Method resolution order: | BareField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, adapt=None, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ddl_datatype(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BaseJSONMethods
Python Library Documentation: class BaseJSONMethods in module peewee class BaseJSONMethods(builtins.object) | BaseJSONMethods(database) | | Methods defined here: | | __init__(self, database) | Initialize self. See help(type(self)) for accurate signature. | | append(self, field, keys, value) | | cast_for_case(self, field, value) | | cast_type(self, t) | | compare_value(self, field, value) | | contained_by(self, field, keys, value) | | contains(self, field, keys, value) | # Containment / key predicates, used in WHERE clauses. | | extract(self, field, keys) | | extract_text(self, field, keys) | | has_any_keys(self, field, keys, key_list) | | has_key(self, field, keys, key) | | has_keys(self, field, keys, key_list) | | insert(self, field, keys, value) | | length(self, field, keys) | | make_value_reader(self, loads) | | remove(self, field, keys) | | replace(self, field, keys, value) | | set(self, field, keys, value) | | update(self, field, value) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.BaseModelCursorWrapper
Python Library Documentation: class BaseModelCursorWrapper in module peewee class BaseModelCursorWrapper(DictCursorWrapper) | BaseModelCursorWrapper(cursor, model, columns) | | Method resolution order: | BaseModelCursorWrapper | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | __init__(self, cursor, model, columns) | Initialize self. See help(type(self)) for accurate signature. | | initialize(self) | | process_row(self, row) | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.BaseModelSelect
Python Library Documentation: class BaseModelSelect in module peewee class BaseModelSelect(_ModelQueryHelper) | BaseModelSelect(*args, **kwargs) | | Method resolution order: | BaseModelSelect | _ModelQueryHelper | builtins.object | | Methods defined here: | | __add__ = union_all(self, rhs) | | __and__ = intersect(self, rhs) | | __iter__(self) | | __or__ = union(self, rhs) | | __sub__ = except_(self, rhs) | | except_(self, rhs) | | get(self, database=None) | | get_or_none(self, database=None) | | group_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | intersect(self, rhs) | | iterator(self, database=None) | | prefetch(self, *subqueries, **kwargs) | | union(self, rhs) | | union_all(self, rhs) | | with_related = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5
peewee.BaseQuery
Python Library Documentation: class BaseQuery in module peewee class BaseQuery(Node) | BaseQuery(_database=None, **kwargs) | | Method resolution order: | BaseQuery | Node | builtins.object | | Methods defined here: | | __getitem__(self, value) | | __init__(self, _database=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __iter__(self) | | __len__(self) | | __sql__(self, ctx) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BaseTable
Python Library Documentation: class BaseTable in module peewee class BaseTable(Source) | BaseTable(alias=None) | | Method resolution order: | BaseTable | Source | Node | builtins.object | | Methods defined here: | | __add__ = method(self, other) from peewee.__join__.<locals> | | __and__ = method(self, other) from peewee.__join__.<locals> | | __mul__ = method(self, other) from peewee.__join__.<locals> | | __or__ = method(self, other) from peewee.__join__.<locals> | | __radd__ = method(self, other) from peewee.__join__.<locals> | | __rand__ = method(self, other) from peewee.__join__.<locals> | | __rmul__ = method(self, other) from peewee.__join__.<locals> | | __ror__ = method(self, other) from peewee.__join__.<locals> | | __rsub__ = method(self, other) from peewee.__join__.<locals> | | __sub__ = method(self, other) from peewee.__join__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Source: | | __init__(self, alias=None) | Initialize self. See help(type(self)) for accurate signature. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __sql__(self, ctx) | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BigAutoField
Python Library Documentation: class BigAutoField in module peewee class BigAutoField(AutoField) | BigAutoField(*args, **kwargs) | | Method resolution order: | BigAutoField | AutoField | IntegerField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | field_type = 'BIGAUTO' | | ---------------------------------------------------------------------- | Methods inherited from AutoField: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from AutoField: | | auto_increment = True | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BigBitField
Python Library Documentation: class BigBitField in module peewee class BigBitField(BlobField) | BigBitField(*args, **kwargs) | | Method resolution order: | BigBitField | BlobField | FieldDatabaseHook | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | db_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | accessor_class = <class 'peewee.BigBitFieldAccessor'> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BlobField: | | field_type = 'BLOB' | | ---------------------------------------------------------------------- | Methods inherited from FieldDatabaseHook: | | bind(self, model, name, set_attribute=True) | | ---------------------------------------------------------------------- | Data descriptors inherited from FieldDatabaseHook: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BigBitFieldAccessor
Python Library Documentation: class BigBitFieldAccessor in module peewee class BigBitFieldAccessor(FieldAccessor) | BigBitFieldAccessor(model, field, name) | | Method resolution order: | BigBitFieldAccessor | FieldAccessor | builtins.object | | Methods defined here: | | __get__(self, instance, instance_type=None) | | __set__(self, instance, value) | | ---------------------------------------------------------------------- | Methods inherited from FieldAccessor: | | __init__(self, model, field, name) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from FieldAccessor: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.BigBitFieldData
Python Library Documentation: class BigBitFieldData in module peewee class BigBitFieldData(builtins.object) | BigBitFieldData(instance, name) | | Methods defined here: | | __and__(self, other) | | __bytes__(self) | | __delitem__ = clear_bit(self, idx) | | __getitem__ = is_set(self, idx) | | __init__(self, instance, name) | Initialize self. See help(type(self)) for accurate signature. | | __iter__(self) | | __len__(self) | | __or__(self, other) | Return self|value. | | __repr__(self) | Return repr(self). | | __setitem__(self, item, value) | | __xor__(self, other) | | clear(self) | | clear_bit(self, idx) | | is_set(self, idx) | | set_bit(self, idx) | | toggle_bit(self, idx) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.BigIntegerField
Python Library Documentation: class BigIntegerField in module peewee class BigIntegerField(IntegerField) | BigIntegerField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | BigIntegerField | IntegerField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | field_type = 'BIGINT' | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BinaryUUIDField
Python Library Documentation: class BinaryUUIDField in module peewee class BinaryUUIDField(BlobField) | BinaryUUIDField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | BinaryUUIDField | BlobField | FieldDatabaseHook | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | db_value(self, value) | | python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'UUIDB' | | ---------------------------------------------------------------------- | Methods inherited from FieldDatabaseHook: | | bind(self, model, name, set_attribute=True) | | ---------------------------------------------------------------------- | Data descriptors inherited from FieldDatabaseHook: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BindTo
Python Library Documentation: class BindTo in module peewee class BindTo(WrappedNode) | BindTo(node, dest) | | Method resolution order: | BindTo | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, node, dest) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BitField
Python Library Documentation: class BitField in module peewee class BitField(BitwiseMixin, BigIntegerField) | BitField(*args, **kwargs) | | Method resolution order: | BitField | BitwiseMixin | BigIntegerField | IntegerField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | flag(self, value=None) | | ---------------------------------------------------------------------- | Methods inherited from BitwiseMixin: | | __and__(self, other) | | __invert__(self) | | __or__(self, other) | Return self|value. | | __sub__(self, other) | | ---------------------------------------------------------------------- | Data descriptors inherited from BitwiseMixin: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from BigIntegerField: | | field_type = 'BIGINT' | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BitwiseMixin
Python Library Documentation: class BitwiseMixin in module peewee class BitwiseMixin(builtins.object) | Methods defined here: | | __and__(self, other) | | __invert__(self) | | __or__(self, other) | Return self|value. | | __sub__(self, other) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.BitwiseNegated
Python Library Documentation: class BitwiseNegated in module peewee class BitwiseNegated(BitwiseMixin, WrappedNode) | BitwiseNegated(node) | | Method resolution order: | BitwiseNegated | BitwiseMixin | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __invert__(self) | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | op = '~' | | ---------------------------------------------------------------------- | Methods inherited from BitwiseMixin: | | __and__(self, other) | | __or__(self, other) | Return self|value. | | __sub__(self, other) | | ---------------------------------------------------------------------- | Data descriptors inherited from BitwiseMixin: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | __init__(self, node) | Initialize self. See help(type(self)) for accurate signature. | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BlobField
Python Library Documentation: class BlobField in module peewee class BlobField(FieldDatabaseHook, Field) | BlobField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | BlobField | FieldDatabaseHook | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | db_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'BLOB' | | ---------------------------------------------------------------------- | Methods inherited from FieldDatabaseHook: | | bind(self, model, name, set_attribute=True) | | ---------------------------------------------------------------------- | Data descriptors inherited from FieldDatabaseHook: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.BooleanField
Python Library Documentation: class BooleanField in module peewee class BooleanField(Field) | BooleanField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | BooleanField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | adapt = <class 'bool'> | bool(x) -> bool | | Returns True when the argument x is true, False otherwise. | The builtins True and False are the only two instances of the class bool. | The class bool is a subclass of the class int, and cannot be subclassed. | | | field_type = 'BOOL' | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.CSQ_FLAT
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.CSQ_PARENS
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.CSQ_PARENTHESES_ALWAYS
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.CSQ_PARENTHESES_GROUPED
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.CSQ_PARENTHESES_NEVER
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.CSQ_PARENTHESES_UNNESTED
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.CSQ_WRAP
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.CTE
Python Library Documentation: class CTE in module peewee class CTE(_HashableSource, Source) | CTE(name, query, recursive=False, columns=None, materialized=None) | | Method resolution order: | CTE | _HashableSource | Source | Node | builtins.object | | Methods defined here: | | __add__ = union_all(self, rhs) | | __init__(self, name, query, recursive=False, columns=None, materialized=None) | Initialize self. See help(type(self)) for accurate signature. | | __or__ = union(self, rhs) | | __sql__(self, ctx) | | select_from(self, *columns) | | union(self, rhs) | | union_all(self, rhs) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | clone(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from _HashableSource: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Callable
Python Library Documentation: class Callable in module collections.abc
class Callable(builtins.object)
| Methods defined here:
|
| __call__(self, *args, **kwds)
| Call self as a function.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__ = _CallableGenericAlias(args)
| Represent `Callable[argtypes, resulttype]`.
|
| This sets ``__args__`` to a tuple containing the flattened ``argtypes``
| followed by ``resulttype``.
|
| Example: ``Callable[[int, str], float]`` sets ``__args__`` to
| ``(int, str, float)``.
|
| __subclasshook__(C)
| Abstract classes can override this to customize issubclass().
|
| This is invoked early on by abc.ABCMeta.__subclasscheck__().
| It should return True, False or NotImplemented. If it returns
| NotImplemented, the normal algorithm is used. Otherwise, it
| overrides the normal algorithm (and the outcome is cached).
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset({'__call__'})
peewee.Case
Python Library Documentation: class Case in module peewee class Case(ColumnBase) | Case(predicate, expression_tuples, default=None) | | Method resolution order: | Case | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, predicate, expression_tuples, default=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Cast
Python Library Documentation: class Cast in module peewee class Cast(WrappedNode) | Cast(node, cast) | | Method resolution order: | Cast | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, node, cast) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.CharField
Python Library Documentation: class CharField in module peewee class CharField(_StringField) | CharField(max_length=255, *args, **kwargs) | | Method resolution order: | CharField | _StringField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, max_length=255, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | get_modifiers(self) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'VARCHAR' | | ---------------------------------------------------------------------- | Methods inherited from _StringField: | | __add__(self, other) | | __radd__(self, other) | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Check
Python Library Documentation: function Check in module peewee Check(constraint, name=None)
peewee.Column
Python Library Documentation: class Column in module peewee class Column(ColumnBase) | Column(source, name) | | Method resolution order: | Column | ColumnBase | Node | builtins.object | | Methods defined here: | | __hash__(self) | Return hash(self). | | __init__(self, source, name) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | get_sort_key(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ColumnBase
Python Library Documentation: class ColumnBase in module peewee class ColumnBase(Node) | Method resolution order: | ColumnBase | Node | builtins.object | | Methods defined here: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __sql__(self, ctx) | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ColumnFactory
Python Library Documentation: class ColumnFactory in module peewee class ColumnFactory(builtins.object) | ColumnFactory(node) | | Methods defined here: | | __getattr__(self, attr) | | __getitem__ = __getattr__(self, attr) | | __init__(self, node) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | node
peewee.ColumnMetadata
Python Library Documentation: class ColumnMetadata in module peewee
class ColumnMetadata(builtins.tuple)
| ColumnMetadata(name, data_type, null, primary_key, table, default, full_type=None, identity=False)
|
| ColumnMetadata(name, data_type, null, primary_key, table, default, full_type, identity)
|
| Method resolution order:
| ColumnMetadata
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __getnewargs__(self) from collections.ColumnMetadata
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections.ColumnMetadata
| Return a nicely formatted representation string
|
| _asdict(self) from collections.ColumnMetadata
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections.ColumnMetadata
| Return a new ColumnMetadata object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| _make(iterable) from collections.ColumnMetadata
| Make a new ColumnMetadata object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(_cls, name, data_type, null, primary_key, table, default, full_type=None, identity=False) from namedtuple_ColumnMetadata.ColumnMetadata
| Create new instance of ColumnMetadata(name, data_type, null, primary_key, table, default, full_type, identity)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| name
| Alias for field number 0
|
| data_type
| Alias for field number 1
|
| null
| Alias for field number 2
|
| primary_key
| Alias for field number 3
|
| table
| Alias for field number 4
|
| default
| Alias for field number 5
|
| full_type
| Alias for field number 6
|
| identity
| Alias for field number 7
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('name', 'data_type', 'null', 'primary_key', 'table',...
|
| _field_defaults = {'full_type': None, 'identity': False}
|
| _fields = ('name', 'data_type', 'null', 'primary_key', 'table', 'defau...
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
peewee.CommaNodeList
Python Library Documentation: function CommaNodeList in module peewee CommaNodeList(nodes)
peewee.CompositeKey
Python Library Documentation: class CompositeKey in module peewee class CompositeKey(MetaField) | CompositeKey(*field_names) | | Method resolution order: | CompositeKey | MetaField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __eq__(self, other) | Return self==value. | | __get__(self, instance, instance_type=None) | | __hash__(self) | Return hash(self). | | __init__(self, *field_names) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __set__(self, instance, value) | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | safe_field_names | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | sequence = None | | ---------------------------------------------------------------------- | Data and other attributes inherited from MetaField: | | column_name = None | | default = None | | model = None | | name = None | | primary_key = False | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __repr__(self) | Return repr(self). | | adapt(self, value) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.CompoundSelectQuery
Python Library Documentation: class CompoundSelectQuery in module peewee class CompoundSelectQuery(SelectBase) | CompoundSelectQuery(lhs, op, rhs) | | Method resolution order: | CompoundSelectQuery | SelectBase | _HashableSource | Source | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, lhs, op, rhs) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | exists(self, database) | | ---------------------------------------------------------------------- | Methods inherited from SelectBase: | | count(self, database, clear_limit=False) | | first(self, database, n=1) | | get(self, database) | | peek(self, database, n=1) | | scalar(self, database, as_tuple=False, as_dict=False) | | scalars(self, database) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | clone(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from _HashableSource: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from SelectQuery: | | __add__ = method(self, other) from peewee.__compound_select__.<locals> | | __and__ = method(self, other) from peewee.__compound_select__.<locals> | | __or__ = method(self, other) from peewee.__compound_select__.<locals> | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | __sub__ = method(self, other) from peewee.__compound_select__.<locals> | | except_ = method(self, other) from peewee.__compound_select__.<locals> | | intersect = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | union = method(self, other) from peewee.__compound_select__.<locals> | | union_all = method(self, other) from peewee.__compound_select__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ConnectionContext
Python Library Documentation: class ConnectionContext in module peewee class ConnectionContext(builtins.object) | ConnectionContext(db) | | Methods defined here: | | __call__(self, fn) | Call self as a function. | | __enter__(self) | | __exit__(self, exc_type, exc_val, exc_tb) | | __init__(self, db) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | db
peewee.Context
Python Library Documentation: class Context in module peewee class Context(builtins.object) | Context(**settings) | | Methods defined here: | | __call__(self, **overrides) | Call self as a function. | | __enter__(self) | | __exit__(self, exc_type, exc_val, exc_tb) | | __init__(self, **settings) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | as_new(self) | | column_sort_key(self, item) | | literal(self, keyword) | | parse(self, node) | | push_alias(self) | | query(self) | | scope_column = inner(self, **kwargs) from peewee.__scope_context__.<locals> | | scope_cte = inner(self, **kwargs) from peewee.__scope_context__.<locals> | | scope_normal = inner(self, **kwargs) from peewee.__scope_context__.<locals> | | scope_source = inner(self, **kwargs) from peewee.__scope_context__.<locals> | | scope_values = inner(self, **kwargs) from peewee.__scope_context__.<locals> | | sql(self, obj) | | value(self, value, converter=None, add_param=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | parentheses | | scope | | subquery | | ---------------------------------------------------------------------- | Data descriptors defined here: | | alias_manager | | stack | | state
peewee.CursorWrapper
Python Library Documentation: class CursorWrapper in module peewee class CursorWrapper(builtins.object) | CursorWrapper(cursor) | | Methods defined here: | | __getitem__(self, item) | | __init__(self, cursor) | Initialize self. See help(type(self)) for accurate signature. | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | initialize(self) | | iterate(self, cache=True) | | iterator(self) | | process_row(self, row) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.DJANGO_MAP
Python Library Documentation: attrdict in module peewee object class attrdict(builtins.dict) | Method resolution order: | attrdict | builtins.dict | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __getattr__(self, attr) | | __iadd__(self, rhs) | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.dict: | | __contains__(self, key, /) | True if the dictionary has the specified key, else False. | | __delitem__(self, key, /) | Delete self[key]. | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __gt__(self, value, /) | Return self>value. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ior__(self, value, /) | Return self|=value. | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __or__(self, value, /) | Return self|value. | | __repr__(self, /) | Return repr(self). | | __reversed__(self, /) | Return a reverse iterator over the dict keys. | | __ror__(self, value, /) | Return value|self. | | __setitem__(self, key, value, /) | Set self[key] to value. | | __sizeof__(...) | D.__sizeof__() -> size of D in memory, in bytes | | clear(...) | D.clear() -> None. Remove all items from D. | | copy(...) | D.copy() -> a shallow copy of D | | get(self, key, default=None, /) | Return the value for key if key is in the dictionary, else default. | | items(...) | D.items() -> a set-like object providing a view on D's items | | keys(...) | D.keys() -> a set-like object providing a view on D's keys | | pop(...) | D.pop(k[,d]) -> v, remove specified key and return the corresponding value. | | If the key is not found, return the default if given; otherwise, | raise a KeyError. | | popitem(self, /) | Remove and return a (key, value) pair as a 2-tuple. | | Pairs are returned in LIFO (last-in, first-out) order. | Raises KeyError if the dict is empty. | | setdefault(self, key, default=None, /) | Insert key with a value of default if key is not in the dictionary. | | Return the value for key if key is in the dictionary, else default. | | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v | In either case, this is followed by: for k in F: D[k] = F[k] | | values(...) | D.values() -> an object providing a view on D's values | | ---------------------------------------------------------------------- | Class methods inherited from builtins.dict: | | __class_getitem__(...) | See PEP 585 | | fromkeys(iterable, value=None, /) | Create a new dictionary with keys from iterable and values set to value. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.dict: | | __new__(*args, **kwargs) class method of builtins.dict | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from builtins.dict: | | __hash__ = None
peewee.DQ
Python Library Documentation: class DQ in module peewee class DQ(ColumnBase) | DQ(**query) | | Method resolution order: | DQ | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, **query) | Initialize self. See help(type(self)) for accurate signature. | | __invert__ = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | clone(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __sql__(self, ctx) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.DataError
Python Library Documentation: class DataError in module peewee class DataError(DatabaseError) | DataError(*args) | | Method resolution order: | DataError | DatabaseError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.Database
Python Library Documentation: class Database in module peewee
class Database(_callable_context_manager)
| Database(database, thread_safe=True, autorollback=False, field_types=None, operations=None, autocommit=None, autoconnect=True, **kwargs)
|
| Method resolution order:
| Database
| _callable_context_manager
| builtins.object
|
| Methods defined here:
|
| __deepcopy__(self, memo)
|
| __enter__(self)
|
| __exit__(self, exc_type, exc_val, exc_tb)
|
| __init__(self, database, thread_safe=True, autorollback=False, field_types=None, operations=None, autocommit=None, autoconnect=True, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| atomic(self, *args, **kwargs)
|
| batch_commit(self, it, n)
|
| begin(self)
|
| bind(self, models, bind_refs=True, bind_backrefs=True)
|
| bind_ctx(self, models, bind_refs=True, bind_backrefs=True)
|
| close(self)
|
| commit(self)
|
| conflict_statement(self, on_conflict, query)
|
| conflict_update(self, on_conflict, query)
|
| connect(self, reuse_if_open=False)
|
| connection(self)
|
| connection_context(self)
|
| create_tables(self, models, **options)
|
| cursor(self, named_cursor=None)
|
| default_values_insert(self, ctx)
|
| drop_tables(self, models, **kwargs)
|
| execute(self, query, **context_options)
|
| execute_sql(self, sql, params=None)
|
| extract_date(self, date_part, date_field)
|
| from_timestamp(self, date_field)
|
| get_columns(self, table, schema=None)
|
| get_context_options(self)
|
| get_foreign_keys(self, table, schema=None)
|
| get_indexes(self, table, schema=None)
|
| get_noop_select(self, ctx)
|
| get_primary_keys(self, table, schema=None)
|
| get_sql_context(self, **context_options)
|
| get_tables(self, schema=None)
|
| in_transaction(self)
|
| init(self, database, **kwargs)
|
| is_closed(self)
|
| is_connection_usable(self)
|
| last_insert_id(self, cursor, query_type=None)
|
| manual_commit(self)
|
| pop_transaction(self)
|
| push_transaction(self, transaction)
|
| random(self)
|
| rollback(self)
|
| rows_affected(self, cursor)
|
| savepoint(self)
|
| sequence_exists(self, seq)
|
| session_commit(self)
|
| session_rollback(self)
|
| session_start(self)
|
| table_exists(self, table_name, schema=None)
|
| to_timestamp(self, date_field)
|
| top_transaction(self)
|
| transaction(self, *args, **kwargs)
|
| transaction_depth(self)
|
| truncate_date(self, date_part, date_field)
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| Model
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| compound_select_parentheses = 0
|
| context_class = <class 'peewee.Context'>
|
| field_types = {}
|
| for_update = False
|
| index_schema_prefix = False
|
| index_using_precedes_table = False
|
| index_value_literals = False
|
| json_methods = <class 'peewee.BaseJSONMethods'>
|
| limit_max = None
|
| nulls_ordering = False
|
| operations = {}
|
| param = '?'
|
| quote = '""'
|
| returning_clause = False
|
| safe_create_index = True
|
| safe_drop_index = True
|
| sequences = False
|
| server_version = None
|
| truncate_table = True
|
| ----------------------------------------------------------------------
| Methods inherited from _callable_context_manager:
|
| __call__(self, fn)
| Call self as a function.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _callable_context_manager:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
peewee.DatabaseError
Python Library Documentation: class DatabaseError in module peewee class DatabaseError(PeeweeException) | DatabaseError(*args) | | Method resolution order: | DatabaseError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.DatabaseProxy
Python Library Documentation: class DatabaseProxy in module peewee class DatabaseProxy(Proxy) | Method resolution order: | DatabaseProxy | Proxy | builtins.object | | Methods defined here: | | atomic(self, *args, **kwargs) | | connection_context(self) | | manual_commit(self) | | savepoint(self) | | transaction(self, *args, **kwargs) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | Model | | ---------------------------------------------------------------------- | Data descriptors defined here: | | obj | | ---------------------------------------------------------------------- | Methods inherited from Proxy: | | __enter__ = inner(self, *args, **kwargs) from peewee.Proxy.passthrough.<locals> | | __exit__ = inner(self, *args, **kwargs) from peewee.Proxy.passthrough.<locals> | | __getattr__(self, attr) | | __init__(self) | Initialize self. See help(type(self)) for accurate signature. | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | attach_callback(self, callback) | | initialize(self, obj) | | passthrough(method)
peewee.DateField
Python Library Documentation: class DateField in module peewee class DateField(_BaseFormattedField) | DateField(formats=None, *args, **kwargs) | | Method resolution order: | DateField | _BaseFormattedField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | adapt(self, value) | | to_timestamp(self) | | truncate(self, part) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | day | | month | | year | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'DATE' | | formats = ['%Y-%m-%d', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f'] | | ---------------------------------------------------------------------- | Methods inherited from _BaseFormattedField: | | __init__(self, formats=None, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.DateTimeField
Python Library Documentation: class DateTimeField in module peewee class DateTimeField(_BaseFormattedField) | DateTimeField(formats=None, *args, **kwargs) | | Method resolution order: | DateTimeField | _BaseFormattedField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | adapt(self, value) | | to_timestamp(self) | | truncate(self, part) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | day | | hour | | minute | | month | | second | | year | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'DATETIME' | | formats = ['%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%... | | ---------------------------------------------------------------------- | Methods inherited from _BaseFormattedField: | | __init__(self, formats=None, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.DecimalField
Python Library Documentation: class DecimalField in module peewee class DecimalField(Field) | DecimalField(max_digits=10, decimal_places=5, auto_round=False, rounding=None, *args, **kwargs) | | Method resolution order: | DecimalField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, max_digits=10, decimal_places=5, auto_round=False, rounding=None, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | db_value(self, value) | | get_modifiers(self) | | python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'DECIMAL' | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Default
Python Library Documentation: function Default in module peewee Default(value)
peewee.DeferredForeignKey
Python Library Documentation: class DeferredForeignKey in module peewee class DeferredForeignKey(Field) | DeferredForeignKey(rel_model_name, **kwargs) | | Method resolution order: | DeferredForeignKey | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __deepcopy__(self, memo=None) | | __hash__(self, /) from builtins.object | Return hash(self). | | __init__(self, rel_model_name, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | set_model(self, rel_model) | | ---------------------------------------------------------------------- | Static methods defined here: | | resolve(model_cls) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.DeferredThroughModel
Python Library Documentation: class DeferredThroughModel in module peewee class DeferredThroughModel(builtins.object) | Methods defined here: | | __init__(self) | Initialize self. See help(type(self)) for accurate signature. | | set_field(self, model, field, name) | | set_model(self, through_model) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.Delete
Python Library Documentation: class Delete in module peewee class Delete(_WriteQuery) | Delete(table, returning=None, **kwargs) | | Method resolution order: | Delete | _WriteQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from _WriteQuery: | | __init__(self, table, returning=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | apply_returning(self, ctx) | | cte(self, name, recursive=False, columns=None, materialized=None) | | execute_returning(self, database) | | handle_result(self, database, cursor) | | returning = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Desc
Python Library Documentation: function Desc in module peewee Desc(node, collation=None, nulls=None)
peewee.DictCursorWrapper
Python Library Documentation: class DictCursorWrapper in module peewee class DictCursorWrapper(CursorWrapper) | DictCursorWrapper(cursor) | | Method resolution order: | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | initialize(self) | | process_row = _row_to_dict(self, row) | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __init__(self, cursor) | Initialize self. See help(type(self)) for accurate signature. | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.DoesNotExist
Python Library Documentation: class DoesNotExist in module peewee class DoesNotExist(builtins.Exception) | Method resolution order: | DoesNotExist | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.DoubleField
Python Library Documentation: class DoubleField in module peewee class DoubleField(FloatField) | DoubleField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | DoubleField | FloatField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | field_type = 'DOUBLE' | | ---------------------------------------------------------------------- | Methods inherited from FloatField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.EXCEPTIONS
Python Library Documentation: dict object
class dict(object)
| dict() -> new empty dictionary
| dict(mapping) -> new dictionary initialized from a mapping object's
| (key, value) pairs
| dict(iterable) -> new dictionary initialized as if via:
| d = {}
| for k, v in iterable:
| d[k] = v
| dict(**kwargs) -> new dictionary initialized with the name=value pairs
| in the keyword argument list. For example: dict(one=1, two=2)
|
| Methods defined here:
|
| __contains__(self, key, /)
| True if the dictionary has the specified key, else False.
|
| __delitem__(self, key, /)
| Delete self[key].
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __ior__(self, value, /)
| Return self|=value.
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __or__(self, value, /)
| Return self|value.
|
| __repr__(self, /)
| Return repr(self).
|
| __reversed__(self, /)
| Return a reverse iterator over the dict keys.
|
| __ror__(self, value, /)
| Return value|self.
|
| __setitem__(self, key, value, /)
| Set self[key] to value.
|
| __sizeof__(...)
| D.__sizeof__() -> size of D in memory, in bytes
|
| clear(...)
| D.clear() -> None. Remove all items from D.
|
| copy(...)
| D.copy() -> a shallow copy of D
|
| get(self, key, default=None, /)
| Return the value for key if key is in the dictionary, else default.
|
| items(...)
| D.items() -> a set-like object providing a view on D's items
|
| keys(...)
| D.keys() -> a set-like object providing a view on D's keys
|
| pop(...)
| D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
|
| If the key is not found, return the default if given; otherwise,
| raise a KeyError.
|
| popitem(self, /)
| Remove and return a (key, value) pair as a 2-tuple.
|
| Pairs are returned in LIFO (last-in, first-out) order.
| Raises KeyError if the dict is empty.
|
| setdefault(self, key, default=None, /)
| Insert key with a value of default if key is not in the dictionary.
|
| Return the value for key if key is in the dictionary, else default.
|
| update(...)
| D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
| If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
| If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
| In either case, this is followed by: for k in F: D[k] = F[k]
|
| values(...)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| fromkeys(iterable, value=None, /)
| Create a new dictionary with keys from iterable and values set to value.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
peewee.EXCLUDED
Python Library Documentation: _Namespace in module peewee <peewee.NamespaceAttribute object>
peewee.EnclosedNodeList
Python Library Documentation: function EnclosedNodeList in module peewee EnclosedNodeList(nodes)
peewee.Entity
Python Library Documentation: class Entity in module peewee class Entity(ColumnBase) | Entity(*path) | | Method resolution order: | Entity | ColumnBase | Node | builtins.object | | Methods defined here: | | __getattr__(self, attr) | | __hash__(self) | Return hash(self). | | __init__(self, *path) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | get_sort_key(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.EntityFactory
Python Library Documentation: class EntityFactory in module peewee class EntityFactory(builtins.object) | EntityFactory(node) | | Methods defined here: | | __getattr__(self, attr) | | __init__(self, node) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | node
peewee.ExceptionWrapper
Python Library Documentation: class ExceptionWrapper in module peewee class ExceptionWrapper(builtins.object) | ExceptionWrapper(exceptions) | | Methods defined here: | | __enter__(self) | | __exit__(self, exc_type, exc_value, traceback) | | __init__(self, exceptions) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | exceptions
peewee.Expression
Python Library Documentation: class Expression in module peewee class Expression(ColumnBase) | Expression(lhs, op, rhs, flat=False) | | Method resolution order: | Expression | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, lhs, op, rhs, flat=False) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.FIELD
Python Library Documentation: attrdict in module peewee object class attrdict(builtins.dict) | Method resolution order: | attrdict | builtins.dict | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __getattr__(self, attr) | | __iadd__(self, rhs) | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.dict: | | __contains__(self, key, /) | True if the dictionary has the specified key, else False. | | __delitem__(self, key, /) | Delete self[key]. | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __gt__(self, value, /) | Return self>value. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ior__(self, value, /) | Return self|=value. | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __or__(self, value, /) | Return self|value. | | __repr__(self, /) | Return repr(self). | | __reversed__(self, /) | Return a reverse iterator over the dict keys. | | __ror__(self, value, /) | Return value|self. | | __setitem__(self, key, value, /) | Set self[key] to value. | | __sizeof__(...) | D.__sizeof__() -> size of D in memory, in bytes | | clear(...) | D.clear() -> None. Remove all items from D. | | copy(...) | D.copy() -> a shallow copy of D | | get(self, key, default=None, /) | Return the value for key if key is in the dictionary, else default. | | items(...) | D.items() -> a set-like object providing a view on D's items | | keys(...) | D.keys() -> a set-like object providing a view on D's keys | | pop(...) | D.pop(k[,d]) -> v, remove specified key and return the corresponding value. | | If the key is not found, return the default if given; otherwise, | raise a KeyError. | | popitem(self, /) | Remove and return a (key, value) pair as a 2-tuple. | | Pairs are returned in LIFO (last-in, first-out) order. | Raises KeyError if the dict is empty. | | setdefault(self, key, default=None, /) | Insert key with a value of default if key is not in the dictionary. | | Return the value for key if key is in the dictionary, else default. | | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v | In either case, this is followed by: for k in F: D[k] = F[k] | | values(...) | D.values() -> an object providing a view on D's values | | ---------------------------------------------------------------------- | Class methods inherited from builtins.dict: | | __class_getitem__(...) | See PEP 585 | | fromkeys(iterable, value=None, /) | Create a new dictionary with keys from iterable and values set to value. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.dict: | | __new__(*args, **kwargs) class method of builtins.dict | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from builtins.dict: | | __hash__ = None
peewee.Field
Python Library Documentation: class Field in module peewee class Field(ColumnBase) | Field(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | column | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.FieldAccessor
Python Library Documentation: class FieldAccessor in module peewee class FieldAccessor(builtins.object) | FieldAccessor(model, field, name) | | Methods defined here: | | __get__(self, instance, instance_type=None) | | __init__(self, model, field, name) | Initialize self. See help(type(self)) for accurate signature. | | __set__(self, instance, value) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.FieldAlias
Python Library Documentation: class FieldAlias in module peewee class FieldAlias(Field) | FieldAlias(source, field) | | Method resolution order: | FieldAlias | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __getattr__(self, attr) | | __init__(self, source, field) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | adapt(self, value) | | clone(self) | | db_value(self, value) | | python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | create(source, field) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.FieldDatabaseHook
Python Library Documentation: class FieldDatabaseHook in module peewee class FieldDatabaseHook(builtins.object) | Methods defined here: | | bind(self, model, name, set_attribute=True) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.FixedCharField
Python Library Documentation: class FixedCharField in module peewee class FixedCharField(CharField) | FixedCharField(max_length=255, *args, **kwargs) | | Method resolution order: | FixedCharField | CharField | _StringField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | adapt(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'CHAR' | | ---------------------------------------------------------------------- | Methods inherited from CharField: | | __init__(self, max_length=255, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | get_modifiers(self) | | ---------------------------------------------------------------------- | Methods inherited from _StringField: | | __add__(self, other) | | __radd__(self, other) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.FloatField
Python Library Documentation: class FloatField in module peewee class FloatField(Field) | FloatField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | FloatField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | adapt(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'FLOAT' | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ForUpdate
Python Library Documentation: class ForUpdate in module peewee class ForUpdate(Node) | ForUpdate(expr, of=None, nowait=None, skip_locked=None) | | Method resolution order: | ForUpdate | Node | builtins.object | | Methods defined here: | | __init__(self, expr, of=None, nowait=None, skip_locked=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ForeignKeyAccessor
Python Library Documentation: class ForeignKeyAccessor in module peewee class ForeignKeyAccessor(FieldAccessor) | ForeignKeyAccessor(model, field, name) | | Method resolution order: | ForeignKeyAccessor | FieldAccessor | builtins.object | | Methods defined here: | | __get__(self, instance, instance_type=None) | | __init__(self, model, field, name) | Initialize self. See help(type(self)) for accurate signature. | | __set__(self, instance, obj) | | get_rel_instance(self, instance) | | ---------------------------------------------------------------------- | Data descriptors inherited from FieldAccessor: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ForeignKeyField
Python Library Documentation: class ForeignKeyField in module peewee class ForeignKeyField(Field) | ForeignKeyField(model, field=None, backref=None, on_delete=None, on_update=None, deferrable=None, _deferred=None, rel_model=None, to_field=None, object_id_name=None, lazy_load=True, constraint_name=None, related_name=None, *args, **kwargs) | | Method resolution order: | ForeignKeyField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __getattr__(self, attr) | | __init__(self, model, field=None, backref=None, on_delete=None, on_update=None, deferrable=None, _deferred=None, rel_model=None, to_field=None, object_id_name=None, lazy_load=True, constraint_name=None, related_name=None, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | db_value(self, value) | | foreign_key_constraint(self, explicit_name=False) | | get_constraint_name(self) | | get_modifiers(self) | | python_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | field_type | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | accessor_class = <class 'peewee.ForeignKeyAccessor'> | | backref_accessor_class = <class 'peewee.BackrefAccessor'> | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ForeignKeyMetadata
Python Library Documentation: class ForeignKeyMetadata in module peewee
class ForeignKeyMetadata(builtins.tuple)
| ForeignKeyMetadata(column, dest_table, dest_column, table, name=None, on_delete=None, on_update=None)
|
| ForeignKeyMetadata(column, dest_table, dest_column, table, name, on_delete, on_update)
|
| Method resolution order:
| ForeignKeyMetadata
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __getnewargs__(self) from collections.ForeignKeyMetadata
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections.ForeignKeyMetadata
| Return a nicely formatted representation string
|
| _asdict(self) from collections.ForeignKeyMetadata
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections.ForeignKeyMetadata
| Return a new ForeignKeyMetadata object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| _make(iterable) from collections.ForeignKeyMetadata
| Make a new ForeignKeyMetadata object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(_cls, column, dest_table, dest_column, table, name=None, on_delete=None, on_update=None) from namedtuple_ForeignKeyMetadata.ForeignKeyMetadata
| Create new instance of ForeignKeyMetadata(column, dest_table, dest_column, table, name, on_delete, on_update)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| column
| Alias for field number 0
|
| dest_table
| Alias for field number 1
|
| dest_column
| Alias for field number 2
|
| table
| Alias for field number 3
|
| name
| Alias for field number 4
|
| on_delete
| Alias for field number 5
|
| on_update
| Alias for field number 6
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('column', 'dest_table', 'dest_column', 'table', 'nam...
|
| _field_defaults = {'name': None, 'on_delete': None, 'on_update': None}
|
| _fields = ('column', 'dest_table', 'dest_column', 'table', 'name', 'on...
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
peewee.Function
Python Library Documentation: class Function in module peewee
class Function(ColumnBase)
| Function(name, arguments, coerce=True, python_value=None)
|
| Method resolution order:
| Function
| ColumnBase
| Node
| builtins.object
|
| Methods defined here:
|
| __getattr__(self, attr)
|
| __init__(self, name, arguments, coerce=True, python_value=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __sql__(self, ctx)
|
| filter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals>
|
| order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals>
|
| over(self, partition_by=None, order_by=None, start=None, end=None, frame_type=None, window=None, exclude=None)
|
| python_value = inner(self, *args, **kwargs) from peewee.Node.copy.<locals>
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| no_coerce_functions = {'array_agg', 'avg', 'cast', 'count', 'sum'}
|
| ----------------------------------------------------------------------
| Methods inherited from ColumnBase:
|
| __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __eq__(self, rhs)
| Return self==value.
|
| __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __getitem__(self, item)
|
| __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __invert__(self)
|
| __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __ne__(self, rhs)
| Return self!=value.
|
| __neg__ = desc(self, collation=None, nulls=None)
|
| __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __pos__ = asc(self, collation=None, nulls=None)
|
| __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| alias(self, alias)
|
| asc(self, collation=None, nulls=None)
|
| between(self, lo, hi)
|
| bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| bind_to(self, dest)
|
| cast(self, as_type)
|
| collate(self, collation)
|
| concat(self, rhs)
|
| contains(self, rhs)
|
| converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals>
|
| desc(self, collation=None, nulls=None)
|
| distinct(self)
|
| endswith(self, rhs)
|
| get_sort_key(self, ctx)
|
| ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| is_null(self, is_null=True)
| # Special expressions.
|
| like = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals>
|
| startswith(self, rhs)
|
| unalias(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from ColumnBase:
|
| __hash__ = None
|
| __iter__ = None
|
| ----------------------------------------------------------------------
| Methods inherited from Node:
|
| clone(self)
|
| coerce(self, _coerce=True)
|
| is_alias(self)
|
| unwrap(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from Node:
|
| copy(method)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Node:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from Node:
|
| __isabstractmethod__ = False
peewee.IDENTIFIER_RE
Python Library Documentation: Pattern in module re object class Pattern(builtins.object) | Compiled regular expression object. | | Methods defined here: | | __copy__(self, /) | | __deepcopy__(self, memo, /) | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | findall(self, /, string, pos=0, endpos=9223372036854775807) | Return a list of all non-overlapping matches of pattern in string. | | finditer(self, /, string, pos=0, endpos=9223372036854775807) | Return an iterator over all non-overlapping matches for the RE pattern in string. | | For each match, the iterator returns a match object. | | fullmatch(self, /, string, pos=0, endpos=9223372036854775807) | Matches against all of the string. | | match(self, /, string, pos=0, endpos=9223372036854775807) | Matches zero or more characters at the beginning of the string. | | scanner(self, /, string, pos=0, endpos=9223372036854775807) | | search(self, /, string, pos=0, endpos=9223372036854775807) | Scan through string looking for a match, and return a corresponding match object instance. | | Return None if no position in the string matches. | | split(self, /, string, maxsplit=0) | Split string by the occurrences of pattern. | | sub(self, /, repl, string, count=0) | Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. | | subn(self, /, repl, string, count=0) | Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl. | | ---------------------------------------------------------------------- | Class methods defined here: | | __class_getitem__(...) | See PEP 585 | | ---------------------------------------------------------------------- | Data descriptors defined here: | | flags | The regex matching flags. | | groupindex | A dictionary mapping group names to group numbers. | | groups | The number of capturing groups in the pattern. | | pattern | The pattern string from which the RE object was compiled.
peewee.IPField
Python Library Documentation: class IPField in module peewee class IPField(BigIntegerField) | IPField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | IPField | BigIntegerField | IntegerField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | db_value(self, val) | | python_value(self, val) | | ---------------------------------------------------------------------- | Data and other attributes inherited from BigIntegerField: | | field_type = 'BIGINT' | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.IdentityField
Python Library Documentation: class IdentityField in module peewee class IdentityField(AutoField) | IdentityField(generate_always=False, **kwargs) | | Method resolution order: | IdentityField | AutoField | IntegerField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, generate_always=False, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'INT GENERATED BY DEFAULT AS IDENTITY' | | ---------------------------------------------------------------------- | Data and other attributes inherited from AutoField: | | auto_increment = True | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ImproperlyConfigured
Python Library Documentation: class ImproperlyConfigured in module peewee class ImproperlyConfigured(PeeweeException) | ImproperlyConfigured(*args) | | Method resolution order: | ImproperlyConfigured | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.Index
Python Library Documentation: class Index in module peewee class Index(Node) | Index(name, table, expressions, unique=False, safe=False, where=None, using=None, nulls_distinct=None) | | Method resolution order: | Index | Node | builtins.object | | Methods defined here: | | __init__(self, name, table, expressions, unique=False, safe=False, where=None, using=None, nulls_distinct=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | nulls_distinct = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | safe = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | using = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.IndexMetadata
Python Library Documentation: class IndexMetadata in module peewee
class IndexMetadata(builtins.tuple)
| IndexMetadata(name, sql, columns, unique, table)
|
| IndexMetadata(name, sql, columns, unique, table)
|
| Method resolution order:
| IndexMetadata
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __getnewargs__(self) from collections.IndexMetadata
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections.IndexMetadata
| Return a nicely formatted representation string
|
| _asdict(self) from collections.IndexMetadata
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections.IndexMetadata
| Return a new IndexMetadata object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| _make(iterable) from collections.IndexMetadata
| Make a new IndexMetadata object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(_cls, name, sql, columns, unique, table) from namedtuple_IndexMetadata.IndexMetadata
| Create new instance of IndexMetadata(name, sql, columns, unique, table)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| name
| Alias for field number 0
|
| sql
| Alias for field number 1
|
| columns
| Alias for field number 2
|
| unique
| Alias for field number 3
|
| table
| Alias for field number 4
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('name', 'sql', 'columns', 'unique', 'table')
|
| _field_defaults = {}
|
| _fields = ('name', 'sql', 'columns', 'unique', 'table')
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
peewee.Insert
Python Library Documentation: class Insert in module peewee class Insert(_WriteQuery) | Insert(table, insert=None, columns=None, on_conflict=None, **kwargs) | | Method resolution order: | Insert | _WriteQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, table, insert=None, columns=None, on_conflict=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | as_rowcount = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | get_default_columns(self) | | get_default_data(self) | | handle_result(self, database, cursor) | | on_conflict = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | on_conflict_ignore = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | on_conflict_replace = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where(self, *expressions) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | DefaultValuesException = <class 'peewee.Insert.DefaultValuesException'... | | MULTI = 2 | | QUERY = 1 | | SIMPLE = 0 | | ---------------------------------------------------------------------- | Methods inherited from _WriteQuery: | | apply_returning(self, ctx) | | cte(self, name, recursive=False, columns=None, materialized=None) | | execute_returning(self, database) | | returning = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.IntegerField
Python Library Documentation: class IntegerField in module peewee class IntegerField(Field) | IntegerField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | IntegerField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | adapt(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'INT' | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.IntegrityError
Python Library Documentation: class IntegrityError in module peewee class IntegrityError(DatabaseError) | IntegrityError(*args) | | Method resolution order: | IntegrityError | DatabaseError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.InterfaceError
Python Library Documentation: class InterfaceError in module peewee class InterfaceError(PeeweeException) | InterfaceError(*args) | | Method resolution order: | InterfaceError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.InternalError
Python Library Documentation: class InternalError in module peewee class InternalError(DatabaseError) | InternalError(*args) | | Method resolution order: | InternalError | DatabaseError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.JOIN
Python Library Documentation: attrdict in module peewee object class attrdict(builtins.dict) | Method resolution order: | attrdict | builtins.dict | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __getattr__(self, attr) | | __iadd__(self, rhs) | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.dict: | | __contains__(self, key, /) | True if the dictionary has the specified key, else False. | | __delitem__(self, key, /) | Delete self[key]. | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __gt__(self, value, /) | Return self>value. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ior__(self, value, /) | Return self|=value. | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __or__(self, value, /) | Return self|value. | | __repr__(self, /) | Return repr(self). | | __reversed__(self, /) | Return a reverse iterator over the dict keys. | | __ror__(self, value, /) | Return value|self. | | __setitem__(self, key, value, /) | Set self[key] to value. | | __sizeof__(...) | D.__sizeof__() -> size of D in memory, in bytes | | clear(...) | D.clear() -> None. Remove all items from D. | | copy(...) | D.copy() -> a shallow copy of D | | get(self, key, default=None, /) | Return the value for key if key is in the dictionary, else default. | | items(...) | D.items() -> a set-like object providing a view on D's items | | keys(...) | D.keys() -> a set-like object providing a view on D's keys | | pop(...) | D.pop(k[,d]) -> v, remove specified key and return the corresponding value. | | If the key is not found, return the default if given; otherwise, | raise a KeyError. | | popitem(self, /) | Remove and return a (key, value) pair as a 2-tuple. | | Pairs are returned in LIFO (last-in, first-out) order. | Raises KeyError if the dict is empty. | | setdefault(self, key, default=None, /) | Insert key with a value of default if key is not in the dictionary. | | Return the value for key if key is in the dictionary, else default. | | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v | In either case, this is followed by: for k in F: D[k] = F[k] | | values(...) | D.values() -> an object providing a view on D's values | | ---------------------------------------------------------------------- | Class methods inherited from builtins.dict: | | __class_getitem__(...) | See PEP 585 | | fromkeys(iterable, value=None, /) | Create a new dictionary with keys from iterable and values set to value. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.dict: | | __new__(*args, **kwargs) class method of builtins.dict | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from builtins.dict: | | __hash__ = None
peewee.JSONField
Python Library Documentation: class JSONField in module peewee class JSONField(FieldDatabaseHook, Field) | JSONField(dumps=None, loads=None, **kwargs) | | Method resolution order: | JSONField | FieldDatabaseHook | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __eq__(self, rhs) | Return self==value. | | __getitem__(self, key) | | __hash__(self) from peewee.Field | Return hash(self). | | __init__(self, dumps=None, loads=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, rhs) | Return self!=value. | | append(self, value) | | case_value(self, value) | | contained_by(self, value) | | contains(self, value) | | db_value(self, value) | | has_any_keys(self, key_list) | | has_key(self, key) | | has_keys(self, key_list) | | length(self) | | path(self, *keys) | | python_value(self, value) | | to_value(self, value) | | update(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'JSON' | | ---------------------------------------------------------------------- | Methods inherited from FieldDatabaseHook: | | bind(self, model, name, set_attribute=True) | | ---------------------------------------------------------------------- | Data descriptors inherited from FieldDatabaseHook: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.JSONPath
Python Library Documentation: class JSONPath in module peewee class JSONPath(ColumnBase) | JSONPath(field, keys=(), as_text=False) | | Method resolution order: | JSONPath | ColumnBase | Node | builtins.object | | Methods defined here: | | __eq__(self, rhs) | Return self==value. | | __ge__(self, rhs) | Return self>=value. | | __getitem__(self, key) | | __gt__(self, rhs) | Return self>value. | | __hash__(self, /) from builtins.object | Return hash(self). | | __init__(self, field, keys=(), as_text=False) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, rhs) | Return self<=value. | | __lt__(self, rhs) | Return self<value. | | __ne__(self, rhs) | Return self!=value. | | __sql__(self, ctx) | | append(self, value) | | as_float(self) | | as_int(self) | | as_text = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | between(self, lo, hi) | | clone(self) | | contained_by(self, value) | | contains(self, rhs) | | endswith(self, rhs) | | has_any_keys(self, key_list) | | has_key(self, key) | | has_keys(self, key_list) | | ilike(self, rhs) | | in_(self, rhs) | | insert(self, value) | | iregexp(self, rhs) | | is_null(self, is_null=True) | | length(self) | | like(self, rhs) | | not_in(self, rhs) | | path(self, *keys) | | regexp(self, rhs) | | remove(self) | | replace(self, value) | | set(self, value) | | startswith(self, rhs) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | get_sort_key(self, ctx) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Join
Python Library Documentation: class Join in module peewee class Join(BaseTable) | Join(lhs, rhs, join_type='INNER JOIN', on=None, alias=None) | | Method resolution order: | Join | BaseTable | Source | Node | builtins.object | | Methods defined here: | | __init__(self, lhs, rhs, join_type='INNER JOIN', on=None, alias=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | on(self, predicate) | | ---------------------------------------------------------------------- | Methods inherited from BaseTable: | | __add__ = method(self, other) from peewee.__join__.<locals> | | __and__ = method(self, other) from peewee.__join__.<locals> | | __mul__ = method(self, other) from peewee.__join__.<locals> | | __or__ = method(self, other) from peewee.__join__.<locals> | | __radd__ = method(self, other) from peewee.__join__.<locals> | | __rand__ = method(self, other) from peewee.__join__.<locals> | | __rmul__ = method(self, other) from peewee.__join__.<locals> | | __ror__ = method(self, other) from peewee.__join__.<locals> | | __rsub__ = method(self, other) from peewee.__join__.<locals> | | __sub__ = method(self, other) from peewee.__join__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Source: | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Json_pg2
Python Library Documentation: class Json in module psycopg2._json class Json(builtins.object) | Json(adapted, dumps=None) | | An `~psycopg2.extensions.ISQLQuote` wrapper to adapt a Python object to | :sql:`json` data type. | | `!Json` can be used to wrap any object supported by the provided *dumps* | function. If none is provided, the standard :py:func:`json.dumps()` is | used. | | Methods defined here: | | __conform__(self, proto) | | __init__(self, adapted, dumps=None) | Initialize self. See help(type(self)) for accurate signature. | | __str__(self) | Return str(self). | | dumps(self, obj) | Serialize *obj* in JSON format. | | The default is to call `!json.dumps()` or the *dumps* function | provided in the constructor. You can override this method to create a | customized JSON wrapper. | | getquoted(self) | | prepare(self, conn) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.Json_pg3
Python Library Documentation: NoneType object class NoneType(object) | Methods defined here: | | __bool__(self, /) | True if self else False | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) | Create and return a new object. See help(type) for accurate signature.
peewee.Jsonb_pg3
Python Library Documentation: NoneType object class NoneType(object) | Methods defined here: | | __bool__(self, /) | True if self else False | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) | Create and return a new object. See help(type) for accurate signature.
peewee.Load
Python Library Documentation: class Load in module peewee class Load(Node) | Load(rel, query=None, strategy=1, per_parent=None) | | Method resolution order: | Load | Node | builtins.object | | Methods defined here: | | __init__(self, rel, query=None, strategy=1, per_parent=None) | Initialize self. See help(type(self)) for accurate signature. | | then = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __sql__(self, ctx) | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ManyToManyField
Python Library Documentation: class ManyToManyField in module peewee class ManyToManyField(MetaField) | ManyToManyField(model, backref=None, through_model=None, on_delete=None, on_update=None, prevent_unsaved=True, _is_backref=False) | | Method resolution order: | ManyToManyField | MetaField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, model, backref=None, through_model=None, on_delete=None, on_update=None, prevent_unsaved=True, _is_backref=False) | Initialize self. See help(type(self)) for accurate signature. | | bind(self, model, name, set_attribute=True) | | get_models(self) | | get_through_model(self) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | through_model | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | accessor_class = <class 'peewee.ManyToManyFieldAccessor'> | | ---------------------------------------------------------------------- | Data and other attributes inherited from MetaField: | | column_name = None | | default = None | | model = None | | name = None | | primary_key = False | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ManyToManyFieldAccessor
Python Library Documentation: class ManyToManyFieldAccessor in module peewee class ManyToManyFieldAccessor(FieldAccessor) | ManyToManyFieldAccessor(model, field, name) | | Method resolution order: | ManyToManyFieldAccessor | FieldAccessor | builtins.object | | Methods defined here: | | __get__(self, instance, instance_type=None, force_query=False) | | __init__(self, model, field, name) | Initialize self. See help(type(self)) for accurate signature. | | __set__(self, instance, value) | | ---------------------------------------------------------------------- | Data descriptors inherited from FieldAccessor: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ManyToManyQuery
Python Library Documentation: class ManyToManyQuery in module peewee class ManyToManyQuery(ModelSelect) | ManyToManyQuery(instance, accessor, rel, *args, **kwargs) | | Method resolution order: | ManyToManyQuery | ModelSelect | BaseModelSelect | _ModelQueryHelper | Select | SelectBase | _HashableSource | Source | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, instance, accessor, rel, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | add(self, value, clear_existing=False) | | clear(self) | | remove(self, value) | | ---------------------------------------------------------------------- | Methods inherited from ModelSelect: | | __sql_selection__(self, ctx, is_subquery=False) | | clone(self) | | convert_dict_to_node(self, qdict) | | create_table(self, name, safe=True, **meta) | | ensure_join(self, lm, rm, on=None, **join_kwargs) | | filter(self, *args, **kwargs) | | join = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | join_from(self, src, dest, join_type='INNER JOIN', on=None, attr=None) | | left_outer_join(self, dest, on=None, src=None, attr=None) | | select(self, *fields_or_models) | | select_extend(self, *columns) | | switch(self, ctx=None) | | ---------------------------------------------------------------------- | Methods inherited from BaseModelSelect: | | __add__ = union_all(self, rhs) | | __and__ = intersect(self, rhs) | | __iter__(self) | | __or__ = union(self, rhs) | | __sub__ = except_(self, rhs) | | except_(self, rhs) | | get(self, database=None) | | get_or_none(self, database=None) | | group_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | intersect(self, rhs) | | iterator(self, database=None) | | prefetch(self, *subqueries, **kwargs) | | union(self, rhs) | | union_all(self, rhs) | | with_related = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5 | | ---------------------------------------------------------------------- | Methods inherited from Select: | | __sql__(self, ctx) | | columns = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | distinct = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | for_update = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | from_ = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | group_by_extend(self, *values) | | having = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | lateral = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | window = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from Select: | | selected_columns | | ---------------------------------------------------------------------- | Methods inherited from SelectBase: | | count(self, database, clear_limit=False) | | exists(self, database) | | first(self, database, n=1) | | peek(self, database, n=1) | | scalar(self, database, as_tuple=False, as_dict=False) | | scalars(self, database) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from SelectQuery: | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Mapping
Python Library Documentation: class Mapping in module collections.abc
class Mapping(Collection)
| A Mapping is a generic container for associating key/value
| pairs.
|
| This class provides concrete generic implementations of all
| methods except for __getitem__, __iter__, and __len__.
|
| Method resolution order:
| Mapping
| Collection
| Sized
| Iterable
| Container
| builtins.object
|
| Methods defined here:
|
| __contains__(self, key)
|
| __eq__(self, other)
| Return self==value.
|
| __getitem__(self, key)
|
| get(self, key, default=None)
| D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
|
| items(self)
| D.items() -> a set-like object providing a view on D's items
|
| keys(self)
| D.keys() -> a set-like object providing a view on D's keys
|
| values(self)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset({'__getitem__', '__iter__', '__len__'}...
|
| __hash__ = None
|
| __reversed__ = None
|
| ----------------------------------------------------------------------
| Class methods inherited from Collection:
|
| __subclasshook__(C)
| Abstract classes can override this to customize issubclass().
|
| This is invoked early on by abc.ABCMeta.__subclasscheck__().
| It should return True, False or NotImplemented. If it returns
| NotImplemented, the normal algorithm is used. Otherwise, it
| overrides the normal algorithm (and the outcome is cached).
|
| ----------------------------------------------------------------------
| Methods inherited from Sized:
|
| __len__(self)
|
| ----------------------------------------------------------------------
| Methods inherited from Iterable:
|
| __iter__(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from Iterable:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
peewee.MetaField
Python Library Documentation: class MetaField in module peewee class MetaField(Field) | MetaField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | MetaField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | column_name = None | | default = None | | model = None | | name = None | | primary_key = False | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Metadata
Python Library Documentation: class Metadata in module peewee class Metadata(builtins.object) | Metadata(model, database=None, table_name=None, indexes=None, primary_key=None, constraints=None, schema=None, only_save_dirty=False, depends_on=None, options=None, db_table=None, table_function=None, table_settings=None, without_rowid=False, temporary=False, strict_tables=None, legacy_table_names=True, **kwargs) | | Methods defined here: | | __init__(self, model, database=None, table_name=None, indexes=None, primary_key=None, constraints=None, schema=None, only_save_dirty=False, depends_on=None, options=None, db_table=None, table_function=None, table_settings=None, without_rowid=False, temporary=False, strict_tables=None, legacy_table_names=True, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | add_field(self, field_name, field, set_attribute=True) | | add_manytomany(self, field) | | add_ref(self, field) | | fields_to_index(self) | | get_default_dict(self) | | get_primary_keys(self) | | make_table_name(self) | | model_graph(self, refs=True, backrefs=True, depth_first=True) | | remove_field(self, field_name) | | remove_manytomany(self, field) | | remove_ref(self, field) | | set_database(self, database) | | set_primary_key(self, name, field) | | set_table_name(self, table_name) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | entity | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | schema | | table
peewee.Model
Python Library Documentation: class Model in module peewee class Model(Node) | Model(*args, **kwargs) | | Method resolution order: | Model | Node | builtins.object | | Methods defined here: | | __eq__(self, other) | Return self==value. | | __hash__(self) | Return hash(self). | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __sql__(self, ctx) | | __str__(self) | Return str(self). | | delete_instance(self, recursive=False, delete_nullable=False) | | dependencies(self, search_nullable=True, exclude_null_children=False) | | get_id(self) | | is_dirty(self) | | save(self, force_insert=False, only=None) | | ---------------------------------------------------------------------- | Class methods defined here: | | add_index(*fields, **kwargs) | | alias(alias=None) | | bind(database, bind_refs=True, bind_backrefs=True, _exclude=None) | | bind_ctx(database, bind_refs=True, bind_backrefs=True) | | bulk_create(model_list, batch_size=None) | | bulk_update(model_list, fields, batch_size=None) | | create(**query) | | create_table(safe=True, **options) | | delete() | | delete_by_id(pk) | | drop_table(safe=True, drop_sequences=True, **options) | | filter(*dq_nodes, **filters) | | get(*query, **filters) | | get_by_id(pk) | | get_or_create(**kwargs) | | get_or_none(*query, **filters) | | index(*fields, **kwargs) | | insert(_Model__data=None, **insert) | | insert_from(query, fields) | | insert_many(rows, fields=None) | | noop() | | raw(sql, *params) | | replace(_Model__data=None, **insert) | | replace_many(rows, fields=None) | | select(*fields) | | set_by_id(key, value) | | table_exists() | | truncate_table(**options) | | update(_Model__data=None, **update) | | validate_model() | | ---------------------------------------------------------------------- | Readonly properties defined here: | | dirty_field_names | | dirty_fields | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelAlias
Python Library Documentation: class ModelAlias in module peewee class ModelAlias(Node) | ModelAlias(model, alias=None) | | Method resolution order: | ModelAlias | Node | builtins.object | | Methods defined here: | | __call__(self, **kwargs) | Call self as a function. | | __getattr__(self, attr) | | __init__(self, model, alias=None) | Initialize self. See help(type(self)) for accurate signature. | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | __sql__(self, ctx) | | get_field_aliases(self) | | select(self, *selection) | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelBase
Python Library Documentation: class ModelBase in module peewee
class ModelBase(builtins.type)
| ModelBase(name, bases, attrs, **kwargs)
|
| Method resolution order:
| ModelBase
| builtins.type
| builtins.object
|
| Methods defined here:
|
| __bool__(self)
|
| __contains__(self, key)
|
| __delitem__(self, key)
|
| __getitem__(self, key)
|
| __iter__(self)
|
| __len__(self)
|
| __repr__(self)
| Return repr(self).
|
| __setitem__(self, key, value)
|
| __sql__(self, ctx)
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(cls, name, bases, attrs, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __annotations__ = {}
|
| inheritable = {'constraints', 'database', 'indexes', 'legacy_table_nam...
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.type:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __delattr__(self, name, /)
| Implement delattr(self, name).
|
| __dir__(self, /)
| Specialized __dir__ implementation for types.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __instancecheck__(self, instance, /)
| Check if an object is an instance.
|
| __or__(self, value, /)
| Return self|value.
|
| __ror__(self, value, /)
| Return value|self.
|
| __setattr__(self, name, value, /)
| Implement setattr(self, name, value).
|
| __sizeof__(self, /)
| Return memory consumption of the type object.
|
| __subclasscheck__(self, subclass, /)
| Check if a class is a subclass.
|
| __subclasses__(self, /)
| Return a list of immediate subclasses.
|
| mro(self, /)
| Return a type's method resolution order.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.type:
|
| __prepare__(...)
| __prepare__() -> dict
| used to create the namespace for the class statement
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.type:
|
| __abstractmethods__
|
| __dict__
|
| __text_signature__
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from builtins.type:
|
| __base__ = <class 'type'>
| type(object) -> the object's type
| type(name, bases, dict, **kwds) -> a new type
|
|
| __bases__ = (<class 'type'>,)
|
| __basicsize__ = 920
|
| __dictoffset__ = 264
|
| __flags__ = 2156420608
|
| __itemsize__ = 40
|
| __mro__ = (<class 'peewee.ModelBase'>, <class 'type'>, <class 'object'...
|
| __type_params__ = ()
|
| __weakrefoffset__ = 368
peewee.ModelCompoundSelectQuery
Python Library Documentation: class ModelCompoundSelectQuery in module peewee class ModelCompoundSelectQuery(BaseModelSelect, CompoundSelectQuery) | ModelCompoundSelectQuery(model, *args, **kwargs) | | Method resolution order: | ModelCompoundSelectQuery | BaseModelSelect | _ModelQueryHelper | CompoundSelectQuery | SelectBase | _HashableSource | Source | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, model, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from BaseModelSelect: | | __add__ = union_all(self, rhs) | | __and__ = intersect(self, rhs) | | __iter__(self) | | __or__ = union(self, rhs) | | __sub__ = except_(self, rhs) | | except_(self, rhs) | | get(self, database=None) | | get_or_none(self, database=None) | | group_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | intersect(self, rhs) | | iterator(self, database=None) | | prefetch(self, *subqueries, **kwargs) | | union(self, rhs) | | union_all(self, rhs) | | with_related = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5 | | ---------------------------------------------------------------------- | Methods inherited from CompoundSelectQuery: | | __sql__(self, ctx) | | exists(self, database) | | ---------------------------------------------------------------------- | Methods inherited from SelectBase: | | count(self, database, clear_limit=False) | | first(self, database, n=1) | | peek(self, database, n=1) | | scalar(self, database, as_tuple=False, as_dict=False) | | scalars(self, database) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | clone(self) | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from SelectQuery: | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelCursorWrapper
Python Library Documentation: class ModelCursorWrapper in module peewee class ModelCursorWrapper(BaseModelCursorWrapper) | ModelCursorWrapper(cursor, model, select, from_list, joins) | | Method resolution order: | ModelCursorWrapper | BaseModelCursorWrapper | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | __init__(self, cursor, model, select, from_list, joins) | Initialize self. See help(type(self)) for accurate signature. | | initialize(self) | | process_row(self, row) | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ModelDelete
Python Library Documentation: class ModelDelete in module peewee class ModelDelete(_ModelWriteQueryHelper, Delete) | ModelDelete(model, *args, **kwargs) | | Method resolution order: | ModelDelete | _ModelWriteQueryHelper | _ModelQueryHelper | Delete | _WriteQuery | Query | BaseQuery | Node | builtins.object | | Methods inherited from _ModelWriteQueryHelper: | | __init__(self, model, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | returning(self, *returning) | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5 | | ---------------------------------------------------------------------- | Methods inherited from Delete: | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from _WriteQuery: | | apply_returning(self, ctx) | | cte(self, name, recursive=False, columns=None, materialized=None) | | execute_returning(self, database) | | handle_result(self, database, cursor) | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelDescriptor
Python Library Documentation: class ModelDescriptor in module peewee class ModelDescriptor(builtins.object) | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ModelDictCursorWrapper
Python Library Documentation: class ModelDictCursorWrapper in module peewee class ModelDictCursorWrapper(BaseModelCursorWrapper) | ModelDictCursorWrapper(cursor, model, columns) | | Method resolution order: | ModelDictCursorWrapper | BaseModelCursorWrapper | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | initialize(self) | | process_row(self, row) | | ---------------------------------------------------------------------- | Methods inherited from BaseModelCursorWrapper: | | __init__(self, cursor, model, columns) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ModelIndex
Python Library Documentation: class ModelIndex in module peewee class ModelIndex(Index) | ModelIndex(model, fields, unique=False, safe=True, where=None, using=None, name=None, nulls_distinct=None) | | Method resolution order: | ModelIndex | Index | Node | builtins.object | | Methods defined here: | | __init__(self, model, fields, unique=False, safe=True, where=None, using=None, name=None, nulls_distinct=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Index: | | __sql__(self, ctx) | | nulls_distinct = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | safe = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | using = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelInsert
Python Library Documentation: class ModelInsert in module peewee class ModelInsert(_ModelWriteQueryHelper, Insert) | ModelInsert(*args, **kwargs) | | Method resolution order: | ModelInsert | _ModelWriteQueryHelper | _ModelQueryHelper | Insert | _WriteQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | get_default_columns(self) | | get_default_data(self) | | returning(self, *returning) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | default_row_type = 1 | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Insert: | | __sql__(self, ctx) | | as_rowcount = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | handle_result(self, database, cursor) | | on_conflict = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | on_conflict_ignore = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | on_conflict_replace = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where(self, *expressions) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Insert: | | DefaultValuesException = <class 'peewee.Insert.DefaultValuesException'... | | MULTI = 2 | | QUERY = 1 | | SIMPLE = 0 | | ---------------------------------------------------------------------- | Methods inherited from _WriteQuery: | | apply_returning(self, ctx) | | cte(self, name, recursive=False, columns=None, materialized=None) | | execute_returning(self, database) | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelNamedTupleCursorWrapper
Python Library Documentation: class ModelNamedTupleCursorWrapper in module peewee class ModelNamedTupleCursorWrapper(ModelTupleCursorWrapper) | ModelNamedTupleCursorWrapper(cursor, model, columns) | | Method resolution order: | ModelNamedTupleCursorWrapper | ModelTupleCursorWrapper | BaseModelCursorWrapper | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | initialize(self) | | ---------------------------------------------------------------------- | Methods inherited from ModelTupleCursorWrapper: | | process_row(self, row) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ModelTupleCursorWrapper: | | constructor = <class 'tuple'> | Built-in immutable sequence. | | If no argument is given, the constructor returns an empty tuple. | If iterable is specified the tuple is initialized from iterable's items. | | If the argument is a tuple, the return value is the same object. | | | ---------------------------------------------------------------------- | Methods inherited from BaseModelCursorWrapper: | | __init__(self, cursor, model, columns) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ModelObjectCursorWrapper
Python Library Documentation: class ModelObjectCursorWrapper in module peewee class ModelObjectCursorWrapper(ModelDictCursorWrapper) | ModelObjectCursorWrapper(cursor, model, select, constructor) | | Method resolution order: | ModelObjectCursorWrapper | ModelDictCursorWrapper | BaseModelCursorWrapper | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | __init__(self, cursor, model, select, constructor) | Initialize self. See help(type(self)) for accurate signature. | | initialize(self) | | process_row(self, row) | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ModelRaw
Python Library Documentation: class ModelRaw in module peewee class ModelRaw(_ModelQueryHelper, RawQuery) | ModelRaw(model, sql, params, **kwargs) | | Method resolution order: | ModelRaw | _ModelQueryHelper | RawQuery | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, model, sql, params, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | get(self) | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5 | | ---------------------------------------------------------------------- | Methods inherited from RawQuery: | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelSelect
Python Library Documentation: class ModelSelect in module peewee class ModelSelect(BaseModelSelect, Select) | ModelSelect(model, fields_or_models, is_default=False) | | Method resolution order: | ModelSelect | BaseModelSelect | _ModelQueryHelper | Select | SelectBase | _HashableSource | Source | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, model, fields_or_models, is_default=False) | Initialize self. See help(type(self)) for accurate signature. | | __sql_selection__(self, ctx, is_subquery=False) | | clone(self) | | convert_dict_to_node(self, qdict) | | create_table(self, name, safe=True, **meta) | | ensure_join(self, lm, rm, on=None, **join_kwargs) | | filter(self, *args, **kwargs) | | join = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | join_from(self, src, dest, join_type='INNER JOIN', on=None, attr=None) | | left_outer_join(self, dest, on=None, src=None, attr=None) | | select(self, *fields_or_models) | | select_extend(self, *columns) | | switch(self, ctx=None) | | ---------------------------------------------------------------------- | Methods inherited from BaseModelSelect: | | __add__ = union_all(self, rhs) | | __and__ = intersect(self, rhs) | | __iter__(self) | | __or__ = union(self, rhs) | | __sub__ = except_(self, rhs) | | except_(self, rhs) | | get(self, database=None) | | get_or_none(self, database=None) | | group_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | intersect(self, rhs) | | iterator(self, database=None) | | prefetch(self, *subqueries, **kwargs) | | union(self, rhs) | | union_all(self, rhs) | | with_related = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5 | | ---------------------------------------------------------------------- | Methods inherited from Select: | | __sql__(self, ctx) | | columns = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | distinct = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | for_update = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | from_ = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | group_by_extend(self, *values) | | having = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | lateral = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | window = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from Select: | | selected_columns | | ---------------------------------------------------------------------- | Methods inherited from SelectBase: | | count(self, database, clear_limit=False) | | exists(self, database) | | first(self, database, n=1) | | peek(self, database, n=1) | | scalar(self, database, as_tuple=False, as_dict=False) | | scalars(self, database) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from SelectQuery: | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ModelTupleCursorWrapper
Python Library Documentation: class ModelTupleCursorWrapper in module peewee class ModelTupleCursorWrapper(BaseModelCursorWrapper) | ModelTupleCursorWrapper(cursor, model, columns) | | Method resolution order: | ModelTupleCursorWrapper | BaseModelCursorWrapper | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | process_row(self, row) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | constructor = <class 'tuple'> | Built-in immutable sequence. | | If no argument is given, the constructor returns an empty tuple. | If iterable is specified the tuple is initialized from iterable's items. | | If the argument is a tuple, the return value is the same object. | | | ---------------------------------------------------------------------- | Methods inherited from BaseModelCursorWrapper: | | __init__(self, cursor, model, columns) | Initialize self. See help(type(self)) for accurate signature. | | initialize(self) | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ModelUpdate
Python Library Documentation: class ModelUpdate in module peewee class ModelUpdate(_ModelWriteQueryHelper, Update) | ModelUpdate(model, *args, **kwargs) | | Method resolution order: | ModelUpdate | _ModelWriteQueryHelper | _ModelQueryHelper | Update | _WriteQuery | Query | BaseQuery | Node | builtins.object | | Methods inherited from _ModelWriteQueryHelper: | | __init__(self, model, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | returning(self, *returning) | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5 | | ---------------------------------------------------------------------- | Methods inherited from Update: | | __sql__(self, ctx) | | from_ = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _WriteQuery: | | apply_returning(self, ctx) | | cte(self, name, recursive=False, columns=None, materialized=None) | | execute_returning(self, database) | | handle_result(self, database, cursor) | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.MySQLDatabase
Python Library Documentation: class MySQLDatabase in module peewee
class MySQLDatabase(Database)
| MySQLDatabase(database, thread_safe=True, autorollback=False, field_types=None, operations=None, autocommit=None, autoconnect=True, **kwargs)
|
| Method resolution order:
| MySQLDatabase
| Database
| _callable_context_manager
| builtins.object
|
| Methods defined here:
|
| begin(self, isolation_level=None)
|
| conflict_statement(self, on_conflict, query)
|
| conflict_update(self, on_conflict, query)
|
| default_values_insert(self, ctx)
|
| extract_date(self, date_part, date_field)
|
| from_timestamp(self, date_field)
|
| get_binary_type(self)
|
| get_columns(self, table, schema=None)
|
| get_foreign_keys(self, table, schema=None)
|
| get_indexes(self, table, schema=None)
|
| get_noop_select(self, ctx)
|
| get_primary_keys(self, table, schema=None)
|
| get_tables(self, schema=None)
|
| get_views(self, schema=None)
|
| init(self, database, mariadb=None, **kwargs)
|
| is_connection_usable(self)
|
| random(self)
|
| to_timestamp(self, date_field)
|
| truncate_date(self, date_part, date_field)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| compound_select_parentheses = 2
|
| field_types = {'AUTO': 'INTEGER AUTO_INCREMENT', 'BIGAUTO': 'BIGINT AU...
|
| for_update = True
|
| index_using_precedes_table = True
|
| json_methods = <class 'peewee.MySQLJSONMethods'>
|
| limit_max = 18446744073709551615
|
| mariadb = False
|
| operations = {'ILIKE': 'LIKE', 'IREGEXP': 'REGEXP', 'LIKE': 'LIKE BINA...
|
| param = '%s'
|
| quote = '``'
|
| safe_create_index = False
|
| safe_drop_index = False
|
| sql_mode = 'PIPES_AS_CONCAT'
|
| ----------------------------------------------------------------------
| Methods inherited from Database:
|
| __deepcopy__(self, memo)
|
| __enter__(self)
|
| __exit__(self, exc_type, exc_val, exc_tb)
|
| __init__(self, database, thread_safe=True, autorollback=False, field_types=None, operations=None, autocommit=None, autoconnect=True, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| atomic(self, *args, **kwargs)
|
| batch_commit(self, it, n)
|
| bind(self, models, bind_refs=True, bind_backrefs=True)
|
| bind_ctx(self, models, bind_refs=True, bind_backrefs=True)
|
| close(self)
|
| commit(self)
|
| connect(self, reuse_if_open=False)
|
| connection(self)
|
| connection_context(self)
|
| create_tables(self, models, **options)
|
| cursor(self, named_cursor=None)
|
| drop_tables(self, models, **kwargs)
|
| execute(self, query, **context_options)
|
| execute_sql(self, sql, params=None)
|
| get_context_options(self)
|
| get_sql_context(self, **context_options)
|
| in_transaction(self)
|
| is_closed(self)
|
| last_insert_id(self, cursor, query_type=None)
|
| manual_commit(self)
|
| pop_transaction(self)
|
| push_transaction(self, transaction)
|
| rollback(self)
|
| rows_affected(self, cursor)
|
| savepoint(self)
|
| sequence_exists(self, seq)
|
| session_commit(self)
|
| session_rollback(self)
|
| session_start(self)
|
| table_exists(self, table_name, schema=None)
|
| top_transaction(self)
|
| transaction(self, *args, **kwargs)
|
| transaction_depth(self)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from Database:
|
| Model
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from Database:
|
| context_class = <class 'peewee.Context'>
|
| index_schema_prefix = False
|
| index_value_literals = False
|
| nulls_ordering = False
|
| returning_clause = False
|
| sequences = False
|
| server_version = None
|
| truncate_table = True
|
| ----------------------------------------------------------------------
| Methods inherited from _callable_context_manager:
|
| __call__(self, fn)
| Call self as a function.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _callable_context_manager:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
peewee.MySQLJSONMethods
Python Library Documentation: class MySQLJSONMethods in module peewee class MySQLJSONMethods(BaseJSONMethods) | MySQLJSONMethods(database) | | Method resolution order: | MySQLJSONMethods | BaseJSONMethods | builtins.object | | Methods defined here: | | append(self, field, keys, value) | | cast_type(self, t) | | compare_value(self, field, value) | | contained_by(self, field, keys, value) | | contains(self, field, keys, value) | | extract(self, field, keys) | | extract_text(self, field, keys) | | has_any_keys(self, field, keys, key_list) | | has_key(self, field, keys, key) | | has_keys(self, field, keys, key_list) | | insert(self, field, keys, value) | | length(self, field, keys) | | make_value_wrapper(self, dumps) | | remove(self, field, keys) | | replace(self, field, keys, value) | | set(self, field, keys, value) | | update(self, field, value) | | ---------------------------------------------------------------------- | Methods inherited from BaseJSONMethods: | | __init__(self, database) | Initialize self. See help(type(self)) for accurate signature. | | cast_for_case(self, field, value) | | make_value_reader(self, loads) | | ---------------------------------------------------------------------- | Data descriptors inherited from BaseJSONMethods: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.NamedTupleCursorWrapper
Python Library Documentation: class NamedTupleCursorWrapper in module peewee class NamedTupleCursorWrapper(CursorWrapper) | NamedTupleCursorWrapper(cursor) | | Method resolution order: | NamedTupleCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | initialize(self) | | process_row(self, row) | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __init__(self, cursor) | Initialize self. See help(type(self)) for accurate signature. | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.NamespaceAttribute
Python Library Documentation: class NamespaceAttribute in module peewee class NamespaceAttribute(ColumnBase) | NamespaceAttribute(namespace, attribute) | | Method resolution order: | NamespaceAttribute | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, namespace, attribute) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Negated
Python Library Documentation: class Negated in module peewee class Negated(WrappedNode) | Negated(node) | | Method resolution order: | Negated | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __invert__(self) | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | __init__(self, node) | Initialize self. See help(type(self)) for accurate signature. | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Node
Python Library Documentation: class Node in module peewee class Node(builtins.object) | Methods defined here: | | __sql__(self, ctx) | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods defined here: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __isabstractmethod__ = False
peewee.NodeList
Python Library Documentation: class NodeList in module peewee class NodeList(ColumnBase) | NodeList(nodes, glue=' ', parens=False) | | Method resolution order: | NodeList | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, nodes, glue=' ', parens=False) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.NoopModelSelect
Python Library Documentation: class NoopModelSelect in module peewee class NoopModelSelect(ModelSelect) | NoopModelSelect(model, fields_or_models, is_default=False) | | Method resolution order: | NoopModelSelect | ModelSelect | BaseModelSelect | _ModelQueryHelper | Select | SelectBase | _HashableSource | Source | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ModelSelect: | | __init__(self, model, fields_or_models, is_default=False) | Initialize self. See help(type(self)) for accurate signature. | | __sql_selection__(self, ctx, is_subquery=False) | | clone(self) | | convert_dict_to_node(self, qdict) | | create_table(self, name, safe=True, **meta) | | ensure_join(self, lm, rm, on=None, **join_kwargs) | | filter(self, *args, **kwargs) | | join = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | join_from(self, src, dest, join_type='INNER JOIN', on=None, attr=None) | | left_outer_join(self, dest, on=None, src=None, attr=None) | | select(self, *fields_or_models) | | select_extend(self, *columns) | | switch(self, ctx=None) | | ---------------------------------------------------------------------- | Methods inherited from BaseModelSelect: | | __add__ = union_all(self, rhs) | | __and__ = intersect(self, rhs) | | __iter__(self) | | __or__ = union(self, rhs) | | __sub__ = except_(self, rhs) | | except_(self, rhs) | | get(self, database=None) | | get_or_none(self, database=None) | | group_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | intersect(self, rhs) | | iterator(self, database=None) | | prefetch(self, *subqueries, **kwargs) | | union(self, rhs) | | union_all(self, rhs) | | with_related = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _ModelQueryHelper: | | models = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _ModelQueryHelper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from _ModelQueryHelper: | | default_row_type = 5 | | ---------------------------------------------------------------------- | Methods inherited from Select: | | columns = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | distinct = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | for_update = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | from_ = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | group_by_extend(self, *values) | | having = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | lateral = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | window = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from Select: | | selected_columns | | ---------------------------------------------------------------------- | Methods inherited from SelectBase: | | count(self, database, clear_limit=False) | | exists(self, database) | | first(self, database, n=1) | | peek(self, database, n=1) | | scalar(self, database, as_tuple=False, as_dict=False) | | scalars(self, database) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from SelectQuery: | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.NotSupportedError
Python Library Documentation: class NotSupportedError in module peewee class NotSupportedError(DatabaseError) | NotSupportedError(*args) | | Method resolution order: | NotSupportedError | DatabaseError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.OP
Python Library Documentation: attrdict in module peewee object class attrdict(builtins.dict) | Method resolution order: | attrdict | builtins.dict | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __getattr__(self, attr) | | __iadd__(self, rhs) | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.dict: | | __contains__(self, key, /) | True if the dictionary has the specified key, else False. | | __delitem__(self, key, /) | Delete self[key]. | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __gt__(self, value, /) | Return self>value. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ior__(self, value, /) | Return self|=value. | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __or__(self, value, /) | Return self|value. | | __repr__(self, /) | Return repr(self). | | __reversed__(self, /) | Return a reverse iterator over the dict keys. | | __ror__(self, value, /) | Return value|self. | | __setitem__(self, key, value, /) | Set self[key] to value. | | __sizeof__(...) | D.__sizeof__() -> size of D in memory, in bytes | | clear(...) | D.clear() -> None. Remove all items from D. | | copy(...) | D.copy() -> a shallow copy of D | | get(self, key, default=None, /) | Return the value for key if key is in the dictionary, else default. | | items(...) | D.items() -> a set-like object providing a view on D's items | | keys(...) | D.keys() -> a set-like object providing a view on D's keys | | pop(...) | D.pop(k[,d]) -> v, remove specified key and return the corresponding value. | | If the key is not found, return the default if given; otherwise, | raise a KeyError. | | popitem(self, /) | Remove and return a (key, value) pair as a 2-tuple. | | Pairs are returned in LIFO (last-in, first-out) order. | Raises KeyError if the dict is empty. | | setdefault(self, key, default=None, /) | Insert key with a value of default if key is not in the dictionary. | | Return the value for key if key is in the dictionary, else default. | | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v | In either case, this is followed by: for k in F: D[k] = F[k] | | values(...) | D.values() -> an object providing a view on D's values | | ---------------------------------------------------------------------- | Class methods inherited from builtins.dict: | | __class_getitem__(...) | See PEP 585 | | fromkeys(iterable, value=None, /) | Create a new dictionary with keys from iterable and values set to value. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.dict: | | __new__(*args, **kwargs) class method of builtins.dict | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from builtins.dict: | | __hash__ = None
peewee.ObjectCursorWrapper
Python Library Documentation: class ObjectCursorWrapper in module peewee class ObjectCursorWrapper(DictCursorWrapper) | ObjectCursorWrapper(cursor, constructor) | | Method resolution order: | ObjectCursorWrapper | DictCursorWrapper | CursorWrapper | builtins.object | | Methods defined here: | | __init__(self, cursor, constructor) | Initialize self. See help(type(self)) for accurate signature. | | initialize(self) | | process_row(self, row) | | ---------------------------------------------------------------------- | Methods inherited from CursorWrapper: | | __getitem__(self, item) | | __iter__(self) | | __len__(self) | | dedupe_columns(self, columns, valid_identifiers=True) | | fill_cache(self, n=0) | | iterate(self, cache=True) | | iterator(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from CursorWrapper: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.ObjectIdAccessor
Python Library Documentation: class ObjectIdAccessor in module peewee class ObjectIdAccessor(builtins.object) | ObjectIdAccessor(field) | | Methods defined here: | | __get__(self, instance, instance_type=None) | | __init__(self, field) | Initialize self. See help(type(self)) for accurate signature. | | __set__(self, instance, value) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.OnConflict
Python Library Documentation: class OnConflict in module peewee class OnConflict(Node) | OnConflict(action=None, update=None, preserve=None, where=None, conflict_target=None, conflict_where=None, conflict_constraint=None) | | Method resolution order: | OnConflict | Node | builtins.object | | Methods defined here: | | __init__(self, action=None, update=None, preserve=None, where=None, conflict_target=None, conflict_where=None, conflict_constraint=None) | Initialize self. See help(type(self)) for accurate signature. | | conflict_constraint = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | conflict_target = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | conflict_where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | get_conflict_statement(self, ctx, query) | | get_conflict_update(self, ctx, query) | | preserve = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | update = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __sql__(self, ctx) | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.OperationalError
Python Library Documentation: class OperationalError in module peewee class OperationalError(DatabaseError) | OperationalError(*args) | | Method resolution order: | OperationalError | DatabaseError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.Ordering
Python Library Documentation: class Ordering in module peewee class Ordering(WrappedNode) | Ordering(node, direction, collation=None, nulls=None) | | Method resolution order: | Ordering | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, node, direction, collation=None, nulls=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | collate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.PREFETCH_TYPE
Python Library Documentation: attrdict in module peewee object class attrdict(builtins.dict) | Method resolution order: | attrdict | builtins.dict | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __getattr__(self, attr) | | __iadd__(self, rhs) | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.dict: | | __contains__(self, key, /) | True if the dictionary has the specified key, else False. | | __delitem__(self, key, /) | Delete self[key]. | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __gt__(self, value, /) | Return self>value. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ior__(self, value, /) | Return self|=value. | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __or__(self, value, /) | Return self|value. | | __repr__(self, /) | Return repr(self). | | __reversed__(self, /) | Return a reverse iterator over the dict keys. | | __ror__(self, value, /) | Return value|self. | | __setitem__(self, key, value, /) | Set self[key] to value. | | __sizeof__(...) | D.__sizeof__() -> size of D in memory, in bytes | | clear(...) | D.clear() -> None. Remove all items from D. | | copy(...) | D.copy() -> a shallow copy of D | | get(self, key, default=None, /) | Return the value for key if key is in the dictionary, else default. | | items(...) | D.items() -> a set-like object providing a view on D's items | | keys(...) | D.keys() -> a set-like object providing a view on D's keys | | pop(...) | D.pop(k[,d]) -> v, remove specified key and return the corresponding value. | | If the key is not found, return the default if given; otherwise, | raise a KeyError. | | popitem(self, /) | Remove and return a (key, value) pair as a 2-tuple. | | Pairs are returned in LIFO (last-in, first-out) order. | Raises KeyError if the dict is empty. | | setdefault(self, key, default=None, /) | Insert key with a value of default if key is not in the dictionary. | | Return the value for key if key is in the dictionary, else default. | | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v | In either case, this is followed by: for k in F: D[k] = F[k] | | values(...) | D.values() -> an object providing a view on D's values | | ---------------------------------------------------------------------- | Class methods inherited from builtins.dict: | | __class_getitem__(...) | See PEP 585 | | fromkeys(iterable, value=None, /) | Create a new dictionary with keys from iterable and values set to value. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.dict: | | __new__(*args, **kwargs) class method of builtins.dict | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from builtins.dict: | | __hash__ = None
peewee.PeeweeException
Python Library Documentation: class PeeweeException in module peewee class PeeweeException(builtins.Exception) | PeeweeException(*args) | | Method resolution order: | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.PostgresqlDatabase
Python Library Documentation: class PostgresqlDatabase in module peewee
class PostgresqlDatabase(Database)
| PostgresqlDatabase(database, thread_safe=True, autorollback=False, field_types=None, operations=None, autocommit=None, autoconnect=True, **kwargs)
|
| Method resolution order:
| PostgresqlDatabase
| Database
| _callable_context_manager
| builtins.object
|
| Methods defined here:
|
| begin(self, isolation_level=None)
|
| conflict_statement(self, on_conflict, query)
|
| conflict_update(self, oc, query)
|
| extract_date(self, date_part, date_field)
|
| from_timestamp(self, date_field)
|
| get_binary_type(self)
|
| get_columns(self, table, schema=None)
|
| get_foreign_keys(self, table, schema=None)
|
| get_indexes(self, table, schema=None)
|
| get_noop_select(self, ctx)
|
| get_primary_keys(self, table, schema=None)
|
| get_tables(self, schema=None)
|
| get_views(self, schema=None)
|
| init(self, database, register_unicode=True, encoding=None, isolation_level=None, **kwargs)
|
| interval(self, val)
|
| is_connection_usable(self)
|
| sequence_exists(self, sequence)
|
| set_isolation_level(self, isolation_level)
|
| set_time_zone(self, timezone)
|
| to_timestamp(self, date_field)
|
| truncate_date(self, date_part, date_field)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| compound_select_parentheses = 1
|
| field_types = {'AUTO': 'SERIAL', 'BIGAUTO': 'BIGSERIAL', 'BLOB': 'BYTE...
|
| for_update = True
|
| json_methods = <class 'peewee.PostgresqlJSONMethods'>
|
| nulls_ordering = True
|
| operations = {'IREGEXP': '~*', 'REGEXP': '~'}
|
| param = '%s'
|
| psycopg2_adapter = <class 'peewee.Psycopg2Adapter'>
|
| psycopg3_adapter = <class 'peewee.Psycopg3Adapter'>
|
| returning_clause = True
|
| sequences = True
|
| ----------------------------------------------------------------------
| Methods inherited from Database:
|
| __deepcopy__(self, memo)
|
| __enter__(self)
|
| __exit__(self, exc_type, exc_val, exc_tb)
|
| __init__(self, database, thread_safe=True, autorollback=False, field_types=None, operations=None, autocommit=None, autoconnect=True, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| atomic(self, *args, **kwargs)
|
| batch_commit(self, it, n)
|
| bind(self, models, bind_refs=True, bind_backrefs=True)
|
| bind_ctx(self, models, bind_refs=True, bind_backrefs=True)
|
| close(self)
|
| commit(self)
|
| connect(self, reuse_if_open=False)
|
| connection(self)
|
| connection_context(self)
|
| create_tables(self, models, **options)
|
| cursor(self, named_cursor=None)
|
| default_values_insert(self, ctx)
|
| drop_tables(self, models, **kwargs)
|
| execute(self, query, **context_options)
|
| execute_sql(self, sql, params=None)
|
| get_context_options(self)
|
| get_sql_context(self, **context_options)
|
| in_transaction(self)
|
| is_closed(self)
|
| last_insert_id(self, cursor, query_type=None)
|
| manual_commit(self)
|
| pop_transaction(self)
|
| push_transaction(self, transaction)
|
| random(self)
|
| rollback(self)
|
| rows_affected(self, cursor)
|
| savepoint(self)
|
| session_commit(self)
|
| session_rollback(self)
|
| session_start(self)
|
| table_exists(self, table_name, schema=None)
|
| top_transaction(self)
|
| transaction(self, *args, **kwargs)
|
| transaction_depth(self)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from Database:
|
| Model
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from Database:
|
| context_class = <class 'peewee.Context'>
|
| index_schema_prefix = False
|
| index_using_precedes_table = False
|
| index_value_literals = False
|
| limit_max = None
|
| quote = '""'
|
| safe_create_index = True
|
| safe_drop_index = True
|
| server_version = None
|
| truncate_table = True
|
| ----------------------------------------------------------------------
| Methods inherited from _callable_context_manager:
|
| __call__(self, fn)
| Call self as a function.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _callable_context_manager:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
peewee.PostgresqlJSONMethods
Python Library Documentation: class PostgresqlJSONMethods in module peewee class PostgresqlJSONMethods(BaseJSONMethods) | PostgresqlJSONMethods(database) | | Method resolution order: | PostgresqlJSONMethods | BaseJSONMethods | builtins.object | | Methods defined here: | | append(self, field, keys, value) | | cast_for_case(self, field, value) | | cast_type(self, t) | | contained_by(self, field, keys, value) | | contains(self, field, keys, value) | | extract(self, field, keys) | | extract_text(self, field, keys) | | has_any_keys(self, field, keys, key_list) | | has_key(self, field, keys, key) | | has_keys(self, field, keys, key_list) | | insert(self, field, keys, value) | | length(self, field, keys) | | make_value_reader(self, loads) | | make_value_wrapper(self, dumps) | | remove(self, field, keys) | | replace(self, field, keys, value) | | set(self, field, keys, value) | | update(self, field, value) | | ---------------------------------------------------------------------- | Methods inherited from BaseJSONMethods: | | __init__(self, database) | Initialize self. See help(type(self)) for accurate signature. | | compare_value(self, field, value) | | ---------------------------------------------------------------------- | Data descriptors inherited from BaseJSONMethods: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.PrefetchQuery
Python Library Documentation: class PrefetchQuery in module peewee
class PrefetchQuery(_PrefetchQuery)
| PrefetchQuery(query, fields=None, is_backref=None, rel_models=None, field_to_name=None)
|
| Method resolution order:
| PrefetchQuery
| _PrefetchQuery
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| populate_instance(self, instance, id_map)
|
| store_instance(self, instance, id_map)
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(cls, query, fields=None, is_backref=None, rel_models=None, field_to_name=None)
| Create new instance of _PrefetchQuery(query, fields, is_backref, rel_models, field_to_name, model)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| ----------------------------------------------------------------------
| Methods inherited from _PrefetchQuery:
|
| __getnewargs__(self) from collections._PrefetchQuery
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections._PrefetchQuery
| Return a nicely formatted representation string
|
| _asdict(self) from collections._PrefetchQuery
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections._PrefetchQuery
| Return a new _PrefetchQuery object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods inherited from _PrefetchQuery:
|
| _make(iterable) from collections._PrefetchQuery
| Make a new _PrefetchQuery object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _PrefetchQuery:
|
| query
| Alias for field number 0
|
| fields
| Alias for field number 1
|
| is_backref
| Alias for field number 2
|
| rel_models
| Alias for field number 3
|
| field_to_name
| Alias for field number 4
|
| model
| Alias for field number 5
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from _PrefetchQuery:
|
| __match_args__ = ('query', 'fields', 'is_backref', 'rel_models', 'fiel...
|
| _field_defaults = {}
|
| _fields = ('query', 'fields', 'is_backref', 'rel_models', 'field_to_na...
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
peewee.PrimaryKeyField
Python Library Documentation: class PrimaryKeyField in module peewee class PrimaryKeyField(AutoField) | PrimaryKeyField(*args, **kwargs) | | Method resolution order: | PrimaryKeyField | AutoField | IntegerField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from AutoField: | | auto_increment = True | | field_type = 'AUTO' | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ProgrammingError
Python Library Documentation: class ProgrammingError in module peewee class ProgrammingError(DatabaseError) | ProgrammingError(*args) | | Method resolution order: | ProgrammingError | DatabaseError | PeeweeException | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from PeeweeException: | | __init__(self, *args) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from PeeweeException: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
peewee.Proxy
Python Library Documentation: class Proxy in module peewee class Proxy(builtins.object) | Methods defined here: | | __enter__ = inner(self, *args, **kwargs) from peewee.Proxy.passthrough.<locals> | | __exit__ = inner(self, *args, **kwargs) from peewee.Proxy.passthrough.<locals> | | __getattr__(self, attr) | | __init__(self) | Initialize self. See help(type(self)) for accurate signature. | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | attach_callback(self, callback) | | initialize(self, obj) | | passthrough(method) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | obj
peewee.Psycopg2Adapter
Python Library Documentation: class Psycopg2Adapter in module peewee
class Psycopg2Adapter(_BasePsycopgAdapter)
| Method resolution order:
| Psycopg2Adapter
| _BasePsycopgAdapter
| builtins.object
|
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_driver(self)
|
| connect(self, db, **params)
|
| get_binary_type(self)
|
| get_server_version(self, conn)
|
| is_connection_closed(self, conn)
|
| is_connection_reusable(self, conn)
|
| is_connection_usable(self, conn)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| isolation_levels = {1: 'READ COMMITTED', 2: 'REPEATABLE READ', 3: 'SER...
|
| ----------------------------------------------------------------------
| Methods inherited from _BasePsycopgAdapter:
|
| isolation_level_int(self, isolation_level)
|
| isolation_level_str(self, isolation_level)
|
| server_side_cursor(self, conn)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _BasePsycopgAdapter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
peewee.Psycopg3Adapter
Python Library Documentation: class Psycopg3Adapter in module peewee
class Psycopg3Adapter(_BasePsycopgAdapter)
| Method resolution order:
| Psycopg3Adapter
| _BasePsycopgAdapter
| builtins.object
|
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_driver(self)
|
| connect(self, db, **params)
|
| get_binary_type(self)
|
| get_server_version(self, conn)
|
| is_connection_closed(self, conn)
|
| is_connection_reusable(self, conn)
|
| is_connection_usable(self, conn)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| isolation_levels = {1: 'READ UNCOMMITTED', 2: 'READ COMMITTED', 3: 'RE...
|
| ----------------------------------------------------------------------
| Methods inherited from _BasePsycopgAdapter:
|
| isolation_level_int(self, isolation_level)
|
| isolation_level_str(self, isolation_level)
|
| server_side_cursor(self, conn)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _BasePsycopgAdapter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
peewee.QualifiedNames
Python Library Documentation: class QualifiedNames in module peewee class QualifiedNames(WrappedNode) | QualifiedNames(node, scope=16) | | Method resolution order: | QualifiedNames | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, node, scope=16) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Query
Python Library Documentation: class Query in module peewee class Query(BaseQuery) | Query(where=None, order_by=None, limit=None, offset=None, **kwargs) | | Method resolution order: | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, where=None, order_by=None, limit=None, offset=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ROW
Python Library Documentation: attrdict in module peewee object class attrdict(builtins.dict) | Method resolution order: | attrdict | builtins.dict | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __getattr__(self, attr) | | __iadd__(self, rhs) | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.dict: | | __contains__(self, key, /) | True if the dictionary has the specified key, else False. | | __delitem__(self, key, /) | Delete self[key]. | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __gt__(self, value, /) | Return self>value. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ior__(self, value, /) | Return self|=value. | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __or__(self, value, /) | Return self|value. | | __repr__(self, /) | Return repr(self). | | __reversed__(self, /) | Return a reverse iterator over the dict keys. | | __ror__(self, value, /) | Return value|self. | | __setitem__(self, key, value, /) | Set self[key] to value. | | __sizeof__(...) | D.__sizeof__() -> size of D in memory, in bytes | | clear(...) | D.clear() -> None. Remove all items from D. | | copy(...) | D.copy() -> a shallow copy of D | | get(self, key, default=None, /) | Return the value for key if key is in the dictionary, else default. | | items(...) | D.items() -> a set-like object providing a view on D's items | | keys(...) | D.keys() -> a set-like object providing a view on D's keys | | pop(...) | D.pop(k[,d]) -> v, remove specified key and return the corresponding value. | | If the key is not found, return the default if given; otherwise, | raise a KeyError. | | popitem(self, /) | Remove and return a (key, value) pair as a 2-tuple. | | Pairs are returned in LIFO (last-in, first-out) order. | Raises KeyError if the dict is empty. | | setdefault(self, key, default=None, /) | Insert key with a value of default if key is not in the dictionary. | | Return the value for key if key is in the dictionary, else default. | | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v | In either case, this is followed by: for k in F: D[k] = F[k] | | values(...) | D.values() -> an object providing a view on D's values | | ---------------------------------------------------------------------- | Class methods inherited from builtins.dict: | | __class_getitem__(...) | See PEP 585 | | fromkeys(iterable, value=None, /) | Create a new dictionary with keys from iterable and values set to value. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.dict: | | __new__(*args, **kwargs) class method of builtins.dict | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from builtins.dict: | | __hash__ = None
peewee.RawQuery
Python Library Documentation: class RawQuery in module peewee class RawQuery(BaseQuery) | RawQuery(sql=None, params=None, **kwargs) | | Method resolution order: | RawQuery | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, sql=None, params=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ResultIterator
Python Library Documentation: class ResultIterator in module peewee class ResultIterator(builtins.object) | ResultIterator(cursor_wrapper) | | Methods defined here: | | __init__(self, cursor_wrapper) | Initialize self. See help(type(self)) for accurate signature. | | __iter__(self) | | __next__ = next(self) | | next(self) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.SCOPE_COLUMN
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.SCOPE_CTE
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.SCOPE_NORMAL
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.SCOPE_SOURCE
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.SCOPE_VALUES
Python Library Documentation: int object
class int(object)
| int([x]) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating-point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Built-in subclasses:
| bool
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(self, format_spec, /)
| Convert to a string according to format_spec.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
peewee.SENTINEL
Python Library Documentation: object object class object | The base class of the class hierarchy. | | When called, it accepts no arguments and returns a new featureless | instance that has no instance attributes and cannot be given any. | | Built-in subclasses: | anext_awaitable | async_generator | async_generator_asend | async_generator_athrow | ... and 90 other subclasses | | Methods defined here: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __dir__(self, /) | Default dir() implementation. | | __eq__(self, value, /) | Return self==value. | | __format__(self, format_spec, /) | Default object formatter. | | Return str(self) if format_spec is empty. Raise TypeError otherwise. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getstate__(self, /) | Helper for pickle. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __reduce__(self, /) | Helper for pickle. | | __reduce_ex__(self, protocol, /) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | __sizeof__(self, /) | Size of object in memory, in bytes. | | __str__(self, /) | Return str(self). | | ---------------------------------------------------------------------- | Class methods defined here: | | __init_subclass__(...) | This method is called when a class is subclassed. | | The default implementation does nothing. It may be | overridden to extend subclasses. | | __subclasshook__(...) | Abstract classes can override this to customize issubclass(). | | This is invoked early on by abc.ABCMeta.__subclasscheck__(). | It should return True, False or NotImplemented. If it returns | NotImplemented, the normal algorithm is used. Otherwise, it | overrides the normal algorithm (and the outcome is cached). | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __class__ = <class 'type'> | type(object) -> the object's type | type(name, bases, dict, **kwds) -> a new type
peewee.SNAKE_CASE_STEP1
Python Library Documentation: Pattern in module re object class Pattern(builtins.object) | Compiled regular expression object. | | Methods defined here: | | __copy__(self, /) | | __deepcopy__(self, memo, /) | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | findall(self, /, string, pos=0, endpos=9223372036854775807) | Return a list of all non-overlapping matches of pattern in string. | | finditer(self, /, string, pos=0, endpos=9223372036854775807) | Return an iterator over all non-overlapping matches for the RE pattern in string. | | For each match, the iterator returns a match object. | | fullmatch(self, /, string, pos=0, endpos=9223372036854775807) | Matches against all of the string. | | match(self, /, string, pos=0, endpos=9223372036854775807) | Matches zero or more characters at the beginning of the string. | | scanner(self, /, string, pos=0, endpos=9223372036854775807) | | search(self, /, string, pos=0, endpos=9223372036854775807) | Scan through string looking for a match, and return a corresponding match object instance. | | Return None if no position in the string matches. | | split(self, /, string, maxsplit=0) | Split string by the occurrences of pattern. | | sub(self, /, repl, string, count=0) | Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. | | subn(self, /, repl, string, count=0) | Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl. | | ---------------------------------------------------------------------- | Class methods defined here: | | __class_getitem__(...) | See PEP 585 | | ---------------------------------------------------------------------- | Data descriptors defined here: | | flags | The regex matching flags. | | groupindex | A dictionary mapping group names to group numbers. | | groups | The number of capturing groups in the pattern. | | pattern | The pattern string from which the RE object was compiled.
peewee.SNAKE_CASE_STEP2
Python Library Documentation: Pattern in module re object class Pattern(builtins.object) | Compiled regular expression object. | | Methods defined here: | | __copy__(self, /) | | __deepcopy__(self, memo, /) | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | findall(self, /, string, pos=0, endpos=9223372036854775807) | Return a list of all non-overlapping matches of pattern in string. | | finditer(self, /, string, pos=0, endpos=9223372036854775807) | Return an iterator over all non-overlapping matches for the RE pattern in string. | | For each match, the iterator returns a match object. | | fullmatch(self, /, string, pos=0, endpos=9223372036854775807) | Matches against all of the string. | | match(self, /, string, pos=0, endpos=9223372036854775807) | Matches zero or more characters at the beginning of the string. | | scanner(self, /, string, pos=0, endpos=9223372036854775807) | | search(self, /, string, pos=0, endpos=9223372036854775807) | Scan through string looking for a match, and return a corresponding match object instance. | | Return None if no position in the string matches. | | split(self, /, string, maxsplit=0) | Split string by the occurrences of pattern. | | sub(self, /, repl, string, count=0) | Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. | | subn(self, /, repl, string, count=0) | Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl. | | ---------------------------------------------------------------------- | Class methods defined here: | | __class_getitem__(...) | See PEP 585 | | ---------------------------------------------------------------------- | Data descriptors defined here: | | flags | The regex matching flags. | | groupindex | A dictionary mapping group names to group numbers. | | groups | The number of capturing groups in the pattern. | | pattern | The pattern string from which the RE object was compiled.
peewee.SQL
Python Library Documentation: class SQL in module peewee class SQL(ColumnBase) | SQL(sql, params=None) | | Method resolution order: | SQL | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, sql, params=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.SchemaManager
Python Library Documentation: class SchemaManager in module peewee class SchemaManager(builtins.object) | SchemaManager(model, database=None, **context_options) | | Methods defined here: | | __init__(self, model, database=None, **context_options) | Initialize self. See help(type(self)) for accurate signature. | | create_all(self, safe=True, **table_options) | | create_foreign_key(self, field) | | create_indexes(self, safe=True) | | create_sequence(self, field) | | create_sequences(self) | | create_table(self, safe=True, **options) | | create_table_as(self, table_name, query, safe=True, **meta) | | drop_all(self, safe=True, drop_sequences=True, **options) | | drop_index(self, field=None, index=None, safe=True) | | drop_indexes(self, safe=True) | | drop_sequence(self, field) | | drop_sequences(self) | | drop_table(self, safe=True, **options) | | truncate_table(self, restart_identity=False, cascade=False) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | database
peewee.Select
Python Library Documentation: class Select in module peewee class Select(SelectBase) | Select(from_list=None, columns=None, group_by=None, having=None, distinct=None, windows=None, for_update=None, lateral=None, **kwargs) | | Method resolution order: | Select | SelectBase | _HashableSource | Source | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, from_list=None, columns=None, group_by=None, having=None, distinct=None, windows=None, for_update=None, lateral=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | __sql_selection__(self, ctx, is_subquery=False) | | clone(self) | | columns = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | distinct = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | for_update = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | from_ = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | group_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | group_by_extend(self, *values) | | having = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | join = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | lateral = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | left_outer_join(self, dest, on=None) | | select = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | select_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | window = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors defined here: | | selected_columns | | ---------------------------------------------------------------------- | Methods inherited from SelectBase: | | count(self, database, clear_limit=False) | | exists(self, database) | | first(self, database, n=1) | | get(self, database) | | peek(self, database, n=1) | | scalar(self, database, as_tuple=False, as_dict=False) | | scalars(self, database) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _HashableSource: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from SelectQuery: | | __add__ = method(self, other) from peewee.__compound_select__.<locals> | | __and__ = method(self, other) from peewee.__compound_select__.<locals> | | __or__ = method(self, other) from peewee.__compound_select__.<locals> | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | __sub__ = method(self, other) from peewee.__compound_select__.<locals> | | except_ = method(self, other) from peewee.__compound_select__.<locals> | | intersect = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | union = method(self, other) from peewee.__compound_select__.<locals> | | union_all = method(self, other) from peewee.__compound_select__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.SelectBase
Python Library Documentation: class SelectBase in module peewee class SelectBase(_HashableSource, Source, SelectQuery) | SelectBase(*args, **kwargs) | | Method resolution order: | SelectBase | _HashableSource | Source | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | count(self, database, clear_limit=False) | | exists(self, database) | | first(self, database, n=1) | | get(self, database) | | peek(self, database, n=1) | | scalar(self, database, as_tuple=False, as_dict=False) | | scalars(self, database) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | clone(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from _HashableSource: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from SelectQuery: | | __add__ = method(self, other) from peewee.__compound_select__.<locals> | | __and__ = method(self, other) from peewee.__compound_select__.<locals> | | __or__ = method(self, other) from peewee.__compound_select__.<locals> | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | __sub__ = method(self, other) from peewee.__compound_select__.<locals> | | except_ = method(self, other) from peewee.__compound_select__.<locals> | | intersect = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | union = method(self, other) from peewee.__compound_select__.<locals> | | union_all = method(self, other) from peewee.__compound_select__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Query: | | __sql__(self, ctx) | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.SelectQuery
Python Library Documentation: class SelectQuery in module peewee class SelectQuery(Query) | SelectQuery(where=None, order_by=None, limit=None, offset=None, **kwargs) | | Method resolution order: | SelectQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __add__ = method(self, other) from peewee.__compound_select__.<locals> | | __and__ = method(self, other) from peewee.__compound_select__.<locals> | | __or__ = method(self, other) from peewee.__compound_select__.<locals> | | __radd__ = method(self, other) from peewee.__compound_select__.<locals> | | __rand__ = method(self, other) from peewee.__compound_select__.<locals> | | __ror__ = method(self, other) from peewee.__compound_select__.<locals> | | __rsub__ = method(self, other) from peewee.__compound_select__.<locals> | | __sub__ = method(self, other) from peewee.__compound_select__.<locals> | | except_ = method(self, other) from peewee.__compound_select__.<locals> | | intersect = method(self, other) from peewee.__compound_select__.<locals> | | select_from(self, *columns) | | union = method(self, other) from peewee.__compound_select__.<locals> | | union_all = method(self, other) from peewee.__compound_select__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Query: | | __init__(self, where=None, order_by=None, limit=None, offset=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.SmallIntegerField
Python Library Documentation: class SmallIntegerField in module peewee class SmallIntegerField(IntegerField) | SmallIntegerField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | SmallIntegerField | IntegerField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | field_type = 'SMALLINT' | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Source
Python Library Documentation: class Source in module peewee class Source(Node) | Source(alias=None) | | Method resolution order: | Source | Node | builtins.object | | Methods defined here: | | __init__(self, alias=None) | Initialize self. See help(type(self)) for accurate signature. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __sql__(self, ctx) | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.SqliteDatabase
Python Library Documentation: class SqliteDatabase in module peewee
class SqliteDatabase(Database)
| SqliteDatabase(database, pragmas=None, regexp_function=False, rank_functions=False, *args, **kwargs)
|
| Method resolution order:
| SqliteDatabase
| Database
| _callable_context_manager
| builtins.object
|
| Methods defined here:
|
| __init__(self, database, pragmas=None, regexp_function=False, rank_functions=False, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| aggregate(self, name=None, num_params=-1)
|
| attach(self, filename, name)
|
| begin(self, lock_type=None)
|
| collation(self, name=None)
|
| commit(self)
|
| conflict_statement(self, on_conflict, query)
|
| conflict_update(self, oc, query)
|
| detach(self, name)
|
| extract_date(self, date_part, date_field)
|
| from_timestamp(self, date_field)
|
| func(self, name=None, num_params=-1, deterministic=None)
|
| get_binary_type(self)
|
| get_columns(self, table, schema=None)
|
| get_foreign_keys(self, table, schema=None)
|
| get_indexes(self, table, schema=None)
|
| get_primary_keys(self, table, schema=None)
|
| get_tables(self, schema=None)
|
| get_views(self, schema=None)
|
| init(self, database, pragmas=None, timeout=5, returning_clause=None, **kwargs)
|
| load_extension(self, extension)
|
| pragma(self, key, value=<object object at 0x000001DE24118C40>, permanent=False, schema=None)
|
| register_aggregate(self, klass, name=None, num_params=-1)
|
| register_collation(self, fn, name=None)
|
| register_function(self, fn, name=None, num_params=-1, deterministic=None)
|
| register_window_function(self, klass, name=None, num_params=-1)
|
| rollback(self)
|
| to_timestamp(self, date_field)
|
| truncate_date(self, date_part, date_field)
|
| unload_extension(self, extension)
|
| unregister_aggregate(self, name)
|
| unregister_collation(self, name)
|
| unregister_function(self, name)
|
| unregister_window_function(self, name)
|
| window_function(self, name=None, num_params=-1)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| application_id
|
| cache_size
|
| data_version
|
| foreign_keys
|
| journal_mode
|
| journal_size_limit
|
| mmap_size
|
| page_size
|
| read_uncommitted
|
| synchronous
|
| timeout
|
| user_version
|
| wal_autocheckpoint
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| field_types = {'BIGAUTO': 'INTEGER', 'BIGINT': 'INTEGER', 'BOOL': 'INT...
|
| index_schema_prefix = True
|
| index_value_literals = True
|
| json_methods = <class 'peewee.SqliteJSONMethods'>
|
| limit_max = -1
|
| operations = {'ILIKE': 'LIKE', 'LIKE': 'GLOB'}
|
| server_version = (3, 45, 3)
|
| truncate_table = False
|
| ----------------------------------------------------------------------
| Methods inherited from Database:
|
| __deepcopy__(self, memo)
|
| __enter__(self)
|
| __exit__(self, exc_type, exc_val, exc_tb)
|
| atomic(self, *args, **kwargs)
|
| batch_commit(self, it, n)
|
| bind(self, models, bind_refs=True, bind_backrefs=True)
|
| bind_ctx(self, models, bind_refs=True, bind_backrefs=True)
|
| close(self)
|
| connect(self, reuse_if_open=False)
|
| connection(self)
|
| connection_context(self)
|
| create_tables(self, models, **options)
|
| cursor(self, named_cursor=None)
|
| default_values_insert(self, ctx)
|
| drop_tables(self, models, **kwargs)
|
| execute(self, query, **context_options)
|
| execute_sql(self, sql, params=None)
|
| get_context_options(self)
|
| get_noop_select(self, ctx)
|
| get_sql_context(self, **context_options)
|
| in_transaction(self)
|
| is_closed(self)
|
| is_connection_usable(self)
|
| last_insert_id(self, cursor, query_type=None)
|
| manual_commit(self)
|
| pop_transaction(self)
|
| push_transaction(self, transaction)
|
| random(self)
|
| rows_affected(self, cursor)
|
| savepoint(self)
|
| sequence_exists(self, seq)
|
| session_commit(self)
|
| session_rollback(self)
|
| session_start(self)
|
| table_exists(self, table_name, schema=None)
|
| top_transaction(self)
|
| transaction(self, *args, **kwargs)
|
| transaction_depth(self)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from Database:
|
| Model
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from Database:
|
| compound_select_parentheses = 0
|
| context_class = <class 'peewee.Context'>
|
| for_update = False
|
| index_using_precedes_table = False
|
| nulls_ordering = False
|
| param = '?'
|
| quote = '""'
|
| returning_clause = False
|
| safe_create_index = True
|
| safe_drop_index = True
|
| sequences = False
|
| ----------------------------------------------------------------------
| Methods inherited from _callable_context_manager:
|
| __call__(self, fn)
| Call self as a function.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _callable_context_manager:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
peewee.SqliteJSONMethods
Python Library Documentation: class SqliteJSONMethods in module peewee class SqliteJSONMethods(BaseJSONMethods) | SqliteJSONMethods(database) | | Method resolution order: | SqliteJSONMethods | BaseJSONMethods | builtins.object | | Methods defined here: | | __init__(self, database) | Initialize self. See help(type(self)) for accurate signature. | | append(self, field, keys, value) | | cast_type(self, t) | | contained_by(self, field, keys, value) | | contains(self, field, keys, value) | | extract(self, field, keys) | | extract_text(self, field, keys) | | has_any_keys(self, field, keys, key_list) | | has_key(self, field, keys, key) | | has_keys(self, field, keys, key_list) | | insert(self, field, keys, value) | | length(self, field, keys) | | make_value_wrapper(self, dumps) | | remove(self, field, keys) | | replace(self, field, keys, value) | | set(self, field, keys, value) | | update(self, field, value) | | ---------------------------------------------------------------------- | Methods inherited from BaseJSONMethods: | | cast_for_case(self, field, value) | | compare_value(self, field, value) | | make_value_reader(self, loads) | | ---------------------------------------------------------------------- | Data descriptors inherited from BaseJSONMethods: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
peewee.Star
Python Library Documentation: class Star in module peewee class Star(Node) | Star(source) | | Method resolution order: | Star | Node | builtins.object | | Methods defined here: | | __init__(self, source) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.State
Python Library Documentation: class State in module peewee
class State(_State)
| State(scope=1, parentheses=False, **kwargs)
|
| Method resolution order:
| State
| _State
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __call__(self, scope=None, parentheses=None, **kwargs)
| Call self as a function.
|
| __getattr__(self, attr_name)
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(cls, scope=1, parentheses=False, **kwargs)
| Create new instance of _State(scope, parentheses, settings)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| ----------------------------------------------------------------------
| Methods inherited from _State:
|
| __getnewargs__(self) from collections._State
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections._State
| Return a nicely formatted representation string
|
| _asdict(self) from collections._State
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections._State
| Return a new _State object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods inherited from _State:
|
| _make(iterable) from collections._State
| Make a new _State object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _State:
|
| scope
| Alias for field number 0
|
| parentheses
| Alias for field number 1
|
| settings
| Alias for field number 2
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from _State:
|
| __match_args__ = ('scope', 'parentheses', 'settings')
|
| _field_defaults = {}
|
| _fields = ('scope', 'parentheses', 'settings')
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
peewee.StringExpression
Python Library Documentation: class StringExpression in module peewee class StringExpression(Expression) | StringExpression(lhs, op, rhs, flat=False) | | Method resolution order: | StringExpression | Expression | ColumnBase | Node | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __radd__(self, lhs) | | ---------------------------------------------------------------------- | Methods inherited from Expression: | | __init__(self, lhs, op, rhs, flat=False) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.SubclassAwareMetadata
Python Library Documentation: class SubclassAwareMetadata in module peewee class SubclassAwareMetadata(Metadata) | SubclassAwareMetadata(model, *args, **kwargs) | | Method resolution order: | SubclassAwareMetadata | Metadata | builtins.object | | Methods defined here: | | __init__(self, model, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | map_models(self, fn) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | models = [] | | ---------------------------------------------------------------------- | Methods inherited from Metadata: | | add_field(self, field_name, field, set_attribute=True) | | add_manytomany(self, field) | | add_ref(self, field) | | fields_to_index(self) | | get_default_dict(self) | | get_primary_keys(self) | | make_table_name(self) | | model_graph(self, refs=True, backrefs=True, depth_first=True) | | remove_field(self, field_name) | | remove_manytomany(self, field) | | remove_ref(self, field) | | set_database(self, database) | | set_primary_key(self, name, field) | | set_table_name(self, table_name) | | ---------------------------------------------------------------------- | Readonly properties inherited from Metadata: | | entity | | ---------------------------------------------------------------------- | Data descriptors inherited from Metadata: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | schema | | table
peewee.Table
Python Library Documentation: class Table in module peewee class Table(_HashableSource, BaseTable) | Table(name, columns=None, primary_key=None, schema=None, alias=None, _model=None, _database=None) | | Method resolution order: | Table | _HashableSource | BaseTable | Source | Node | builtins.object | | Methods defined here: | | __init__(self, name, columns=None, primary_key=None, schema=None, alias=None, _model=None, _database=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | bind(self, database=None) | | bind_ctx(self, database=None) | | clone(self) | | delete(self) | | insert(self, insert=None, columns=None, **kwargs) | | replace(self, insert=None, columns=None, **kwargs) | | select(self, *columns) | | update(self, update=None, **kwargs) | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data descriptors inherited from _HashableSource: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from BaseTable: | | __add__ = method(self, other) from peewee.__join__.<locals> | | __and__ = method(self, other) from peewee.__join__.<locals> | | __mul__ = method(self, other) from peewee.__join__.<locals> | | __or__ = method(self, other) from peewee.__join__.<locals> | | __radd__ = method(self, other) from peewee.__join__.<locals> | | __rand__ = method(self, other) from peewee.__join__.<locals> | | __rmul__ = method(self, other) from peewee.__join__.<locals> | | __ror__ = method(self, other) from peewee.__join__.<locals> | | __rsub__ = method(self, other) from peewee.__join__.<locals> | | __sub__ = method(self, other) from peewee.__join__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.TextField
Python Library Documentation: class TextField in module peewee class TextField(_StringField) | TextField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | TextField | _StringField | Field | ColumnBase | Node | builtins.object | | Data and other attributes defined here: | | field_type = 'TEXT' | | ---------------------------------------------------------------------- | Methods inherited from _StringField: | | __add__(self, other) | | __radd__(self, other) | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.TimeField
Python Library Documentation: class TimeField in module peewee class TimeField(_BaseFormattedField) | TimeField(formats=None, *args, **kwargs) | | Method resolution order: | TimeField | _BaseFormattedField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | adapt(self, value) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | hour | | minute | | second | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'TIME' | | formats = ['%H:%M:%S.%f', '%H:%M:%S', '%H:%M', '%Y-%m-%d %H:%M:%S.%f',... | | ---------------------------------------------------------------------- | Methods inherited from _BaseFormattedField: | | __init__(self, formats=None, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | db_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | python_value(self, value) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.TimestampField
Python Library Documentation: class TimestampField in module peewee class TimestampField(BigIntegerField) | TimestampField(*args, **kwargs) | | Method resolution order: | TimestampField | BigIntegerField | IntegerField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | db_value(self, value) | | from_timestamp(self) | | get_timestamp(self, value) | | python_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | day | | hour | | minute | | month | | second | | year | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | formats = ['%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%... | | valid_resolutions = [1, 10, 100, 1000, 10000, 100000, 1000000] | | ---------------------------------------------------------------------- | Data and other attributes inherited from BigIntegerField: | | field_type = 'BIGINT' | | ---------------------------------------------------------------------- | Methods inherited from IntegerField: | | adapt(self, value) | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Tuple
Python Library Documentation: function <lambda> in module peewee
<lambda> lambda *a
#: Represent a row tuple.
peewee.UUIDField
Python Library Documentation: class UUIDField in module peewee class UUIDField(Field) | UUIDField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | | Method resolution order: | UUIDField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | db_value(self, value) | | python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_type = 'UUID' | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __init__(self, null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | bind(self, model, name, set_attribute=True) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Update
Python Library Documentation: class Update in module peewee class Update(_WriteQuery) | Update(table, update=None, **kwargs) | | Method resolution order: | Update | _WriteQuery | Query | BaseQuery | Node | builtins.object | | Methods defined here: | | __init__(self, table, update=None, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | from_ = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _WriteQuery: | | apply_returning(self, ctx) | | cte(self, name, recursive=False, columns=None, materialized=None) | | execute_returning(self, database) | | handle_result(self, database, cursor) | | returning = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Query: | | limit = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | offset = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | order_by_extend = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | orwhere = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | paginate = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | where = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | with_cte = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from BaseQuery: | | __getitem__(self, value) | | __iter__(self) | | __len__(self) | | __str__(self) | Return str(self). | | async aexecute(self, database=None) | | bind(self, database=None) | | clone(self) | | dicts = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | execute(self, database) | | iterator(self, database=None) | | namedtuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | objects = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | sql(self) | | tuples = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Data and other attributes inherited from BaseQuery: | | default_row_type = 2 | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Value
Python Library Documentation: class Value in module peewee class Value(ColumnBase) | Value(value, converter=None, unpack=True) | | Method resolution order: | Value | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, value, converter=None, unpack=True) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ValueLiterals
Python Library Documentation: class ValueLiterals in module peewee class ValueLiterals(WrappedNode) | ValueLiterals(node) | | Method resolution order: | ValueLiterals | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __sql__(self, ctx) | | ---------------------------------------------------------------------- | Methods inherited from WrappedNode: | | __init__(self, node) | Initialize self. See help(type(self)) for accurate signature. | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ValuesList
Python Library Documentation: class ValuesList in module peewee class ValuesList(_HashableSource, BaseTable) | ValuesList(values, columns=None, alias=None) | | Method resolution order: | ValuesList | _HashableSource | BaseTable | Source | Node | builtins.object | | Methods defined here: | | __init__(self, values, columns=None, alias=None) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | columns = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Methods inherited from _HashableSource: | | __eq__(self, other) | Return self==value. | | __ge__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __gt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __hash__(self) | Return hash(self). | | __le__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __lt__ = inner(self, rhs) from peewee._HashableSource._e.<locals> | | __ne__(self, other) | Return self!=value. | | alias = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | clone(self) | | ---------------------------------------------------------------------- | Data descriptors inherited from _HashableSource: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from BaseTable: | | __add__ = method(self, other) from peewee.__join__.<locals> | | __and__ = method(self, other) from peewee.__join__.<locals> | | __mul__ = method(self, other) from peewee.__join__.<locals> | | __or__ = method(self, other) from peewee.__join__.<locals> | | __radd__ = method(self, other) from peewee.__join__.<locals> | | __rand__ = method(self, other) from peewee.__join__.<locals> | | __rmul__ = method(self, other) from peewee.__join__.<locals> | | __ror__ = method(self, other) from peewee.__join__.<locals> | | __rsub__ = method(self, other) from peewee.__join__.<locals> | | __sub__ = method(self, other) from peewee.__join__.<locals> | | ---------------------------------------------------------------------- | Methods inherited from Source: | | apply_alias(self, ctx) | | apply_column(self, ctx) | | c = <peewee._DynamicColumn object> | cte(self, name, recursive=False, columns=None, materialized=None) | | get_sort_key(self, ctx) | | join(self, dest, join_type='INNER JOIN', on=None) | | left_outer_join(self, dest, on=None) | | select(self, *columns) | | ---------------------------------------------------------------------- | Readonly properties inherited from Source: | | __star__ | | ---------------------------------------------------------------------- | Methods inherited from Node: | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.ViewMetadata
Python Library Documentation: class ViewMetadata in module peewee
class ViewMetadata(builtins.tuple)
| ViewMetadata(name, sql)
|
| ViewMetadata(name, sql)
|
| Method resolution order:
| ViewMetadata
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __getnewargs__(self) from collections.ViewMetadata
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections.ViewMetadata
| Return a nicely formatted representation string
|
| _asdict(self) from collections.ViewMetadata
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections.ViewMetadata
| Return a new ViewMetadata object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| _make(iterable) from collections.ViewMetadata
| Make a new ViewMetadata object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(_cls, name, sql) from namedtuple_ViewMetadata.ViewMetadata
| Create new instance of ViewMetadata(name, sql)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| name
| Alias for field number 0
|
| sql
| Alias for field number 1
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('name', 'sql')
|
| _field_defaults = {}
|
| _fields = ('name', 'sql')
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
peewee.VirtualField
Python Library Documentation: class VirtualField in module peewee class VirtualField(MetaField) | VirtualField(field_class=None, *args, **kwargs) | | Method resolution order: | VirtualField | MetaField | Field | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, field_class=None, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | bind(self, model, name, set_attribute=True) | | db_value(self, value) | | python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | field_class = None | | ---------------------------------------------------------------------- | Data and other attributes inherited from MetaField: | | column_name = None | | default = None | | model = None | | name = None | | primary_key = False | | ---------------------------------------------------------------------- | Methods inherited from Field: | | __hash__(self) | Return hash(self). | | __repr__(self) | Return repr(self). | | __sql__(self, ctx) | | adapt(self, value) | | case_value(self, value) | | ddl(self, ctx) | | ddl_datatype(self, ctx) | | get_modifiers(self) | | get_sort_key(self, ctx) | | to_value(self, value) | | ---------------------------------------------------------------------- | Readonly properties inherited from Field: | | column | | ---------------------------------------------------------------------- | Data and other attributes inherited from Field: | | accessor_class = <class 'peewee.FieldAccessor'> | | auto_increment = False | | default_index_type = None | | field_type = 'DEFAULT' | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.Window
Python Library Documentation: class Window in module peewee class Window(Node) | Window(partition_by=None, order_by=None, start=None, end=None, frame_type=None, extends=None, exclude=None, alias=None, _inline=False) | | Method resolution order: | Window | Node | builtins.object | | Methods defined here: | | __init__(self, partition_by=None, order_by=None, start=None, end=None, frame_type=None, extends=None, exclude=None, alias=None, _inline=False) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | alias(self, alias=None) | | as_groups = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | as_range = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | as_rows = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | exclude = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | extends = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | ---------------------------------------------------------------------- | Static methods defined here: | | following(value=None) | | preceding(value=None) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | CURRENT_ROW = <peewee.SQL object> | | GROUP = <peewee.SQL object> | | GROUPS = 'GROUPS' | | NO_OTHERS = <peewee.SQL object> | | RANGE = 'RANGE' | | ROWS = 'ROWS' | | TIES = <peewee.SQL object> | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.WindowAlias
Python Library Documentation: class WindowAlias in module peewee class WindowAlias(Node) | WindowAlias(window) | | Method resolution order: | WindowAlias | Node | builtins.object | | Methods defined here: | | __init__(self, window) | Initialize self. See help(type(self)) for accurate signature. | | __sql__(self, ctx) | | alias(self, window_alias) | | ---------------------------------------------------------------------- | Methods inherited from Node: | | clone(self) | | coerce(self, _coerce=True) | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.WrappedNode
Python Library Documentation: class WrappedNode in module peewee class WrappedNode(ColumnBase) | WrappedNode(node) | | Method resolution order: | WrappedNode | ColumnBase | Node | builtins.object | | Methods defined here: | | __init__(self, node) | Initialize self. See help(type(self)) for accurate signature. | | is_alias(self) | | unwrap(self) | | ---------------------------------------------------------------------- | Methods inherited from ColumnBase: | | __add__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __and__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __eq__(self, rhs) | Return self==value. | | __ge__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __getitem__(self, item) | | __gt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __invert__(self) | | __le__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __lt__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mod__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __mul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ne__(self, rhs) | Return self!=value. | | __neg__ = desc(self, collation=None, nulls=None) | | __or__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __pos__ = asc(self, collation=None, nulls=None) | | __pow__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __radd__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rand__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rmul__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __ror__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rshift__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rsub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rtruediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __rxor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __sub__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __truediv__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | __xor__ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | alias(self, alias) | | asc(self, collation=None, nulls=None) | | between(self, lo, hi) | | bin_and = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bin_or = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | bind_to(self, dest) | | cast(self, as_type) | | collate(self, collation) | | concat(self, rhs) | | contains(self, rhs) | | converter = inner(self, *args, **kwargs) from peewee.Node.copy.<locals> | | desc(self, collation=None, nulls=None) | | distinct(self) | | endswith(self, rhs) | | get_sort_key(self, ctx) | | ilike = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | in_ = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | iregexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | is_null(self, is_null=True) | # Special expressions. | | like = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | not_in = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | regexp = inner(self, rhs) from peewee.ColumnBase._e.<locals> | | startswith(self, rhs) | | unalias(self) | | ---------------------------------------------------------------------- | Data and other attributes inherited from ColumnBase: | | __hash__ = None | | __iter__ = None | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __sql__(self, ctx) | | clone(self) | | coerce(self, _coerce=True) | | ---------------------------------------------------------------------- | Static methods inherited from Node: | | copy(method) | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from Node: | | __isabstractmethod__ = False
peewee.attrdict
Python Library Documentation: class attrdict in module peewee class attrdict(builtins.dict) | Method resolution order: | attrdict | builtins.dict | builtins.object | | Methods defined here: | | __add__(self, rhs) | | __getattr__(self, attr) | | __iadd__(self, rhs) | | __setattr__(self, attr, value) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.dict: | | __contains__(self, key, /) | True if the dictionary has the specified key, else False. | | __delitem__(self, key, /) | Delete self[key]. | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __gt__(self, value, /) | Return self>value. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __ior__(self, value, /) | Return self|=value. | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __or__(self, value, /) | Return self|value. | | __repr__(self, /) | Return repr(self). | | __reversed__(self, /) | Return a reverse iterator over the dict keys. | | __ror__(self, value, /) | Return value|self. | | __setitem__(self, key, value, /) | Set self[key] to value. | | __sizeof__(...) | D.__sizeof__() -> size of D in memory, in bytes | | clear(...) | D.clear() -> None. Remove all items from D. | | copy(...) | D.copy() -> a shallow copy of D | | get(self, key, default=None, /) | Return the value for key if key is in the dictionary, else default. | | items(...) | D.items() -> a set-like object providing a view on D's items | | keys(...) | D.keys() -> a set-like object providing a view on D's keys | | pop(...) | D.pop(k[,d]) -> v, remove specified key and return the corresponding value. | | If the key is not found, return the default if given; otherwise, | raise a KeyError. | | popitem(self, /) | Remove and return a (key, value) pair as a 2-tuple. | | Pairs are returned in LIFO (last-in, first-out) order. | Raises KeyError if the dict is empty. | | setdefault(self, key, default=None, /) | Insert key with a value of default if key is not in the dictionary. | | Return the value for key if key is in the dictionary, else default. | | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v | In either case, this is followed by: for k in F: D[k] = F[k] | | values(...) | D.values() -> an object providing a view on D's values | | ---------------------------------------------------------------------- | Class methods inherited from builtins.dict: | | __class_getitem__(...) | See PEP 585 | | fromkeys(iterable, value=None, /) | Create a new dictionary with keys from iterable and values set to value. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.dict: | | __new__(*args, **kwargs) class method of builtins.dict | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes inherited from builtins.dict: | | __hash__ = None
peewee.bisect_left
Python Library Documentation: built-in function bisect_left in module _bisect
bisect_left(a, x, lo=0, hi=None, *, key=None)
Return the index where to insert item x in list a, assuming a is sorted.
The return value i is such that all e in a[:i] have e < x, and all e in
a[i:] have e >= x. So if x already appears in the list, a.insert(i, x) will
insert just before the leftmost x already there.
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
A custom key function can be supplied to customize the sort order.
peewee.bisect_right
Python Library Documentation: built-in function bisect_right in module _bisect
bisect_right(a, x, lo=0, hi=None, *, key=None)
Return the index where to insert item x in list a, assuming a is sorted.
The return value i is such that all e in a[:i] have e <= x, and all e in
a[i:] have e > x. So if x already appears in the list, a.insert(i, x) will
insert just after the rightmost x already there.
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
A custom key function can be supplied to customize the sort order.
peewee.calendar
Python Library Documentation: module calendar
NAME
calendar - Calendar printing functions
MODULE REFERENCE
https://docs.python.org/3.12/library/calendar.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
Note when comparing these calendars to the ones printed by cal(1): By
default, these calendars have Monday as the first day of the week, and
Sunday as the last (the European convention). Use setfirstweekday() to
set the first day of the week (0=Monday, 6=Sunday).
CLASSES
builtins.ValueError(builtins.Exception)
IllegalMonthError
IllegalWeekdayError
builtins.object
Calendar
HTMLCalendar
LocaleHTMLCalendar
TextCalendar
LocaleTextCalendar
enum.IntEnum(builtins.int, enum.ReprEnum)
Day
Month
class Calendar(builtins.object)
| Calendar(firstweekday=0)
|
| Base calendar class. This class doesn't do any formatting. It simply
| provides data to subclasses.
|
| Methods defined here:
|
| __init__(self, firstweekday=0)
| Initialize self. See help(type(self)) for accurate signature.
|
| getfirstweekday(self)
|
| itermonthdates(self, year, month)
| Return an iterator for one month. The iterator will yield datetime.date
| values and will always iterate through complete weeks, so it will yield
| dates outside the specified month.
|
| itermonthdays(self, year, month)
| Like itermonthdates(), but will yield day numbers. For days outside
| the specified month the day number is 0.
|
| itermonthdays2(self, year, month)
| Like itermonthdates(), but will yield (day number, weekday number)
| tuples. For days outside the specified month the day number is 0.
|
| itermonthdays3(self, year, month)
| Like itermonthdates(), but will yield (year, month, day) tuples. Can be
| used for dates outside of datetime.date range.
|
| itermonthdays4(self, year, month)
| Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
| Can be used for dates outside of datetime.date range.
|
| iterweekdays(self)
| Return an iterator for one week of weekday numbers starting with the
| configured first one.
|
| monthdatescalendar(self, year, month)
| Return a matrix (list of lists) representing a month's calendar.
| Each row represents a week; week entries are datetime.date values.
|
| monthdays2calendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; week entries are
| (day number, weekday number) tuples. Day numbers outside this month
| are zero.
|
| monthdayscalendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; days outside this month are zero.
|
| setfirstweekday(self, firstweekday)
|
| yeardatescalendar(self, year, width=3)
| Return the data for the specified year ready for formatting. The return
| value is a list of month rows. Each month row contains up to width months.
| Each month contains between 4 and 6 weeks and each week contains 1-7
| days. Days are datetime.date objects.
|
| yeardays2calendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are
| (day number, weekday number) tuples. Day numbers outside this month are
| zero.
|
| yeardayscalendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are day numbers.
| Day numbers outside this month are zero.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| firstweekday
class Day(enum.IntEnum)
| Day(*values)
|
| # Constants for days
|
| Method resolution order:
| Day
| enum.IntEnum
| builtins.int
| enum.ReprEnum
| enum.Enum
| builtins.object
|
| Methods defined here:
|
| __format__(self, format_spec, /) from builtins.int
| Convert to a string according to format_spec.
|
| __new__(cls, value) from enum.Enum
| Create and return a new object. See help(type) for accurate signature.
|
| __repr__ = global_enum_repr(self) from enum
| use module.enum_name instead of class.enum_name
|
| the module is the last module in case of a multi-module name
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| FRIDAY = calendar.FRIDAY
|
| MONDAY = calendar.MONDAY
|
| SATURDAY = calendar.SATURDAY
|
| SUNDAY = calendar.SUNDAY
|
| THURSDAY = calendar.THURSDAY
|
| TUESDAY = calendar.TUESDAY
|
| WEDNESDAY = calendar.WEDNESDAY
|
| ----------------------------------------------------------------------
| Methods inherited from enum.IntEnum:
|
| __str__ = __repr__(self, /) from builtins.int
| Return repr(self).
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.int:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.int:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.int:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Enum:
|
| __dir__(self)
| Returns public methods and other interesting attributes.
|
| __init__(self, *args, **kwds)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce_ex__(self, proto)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
|
| name
| The name of the Enum member.
|
| value
| The value of the Enum member.
|
| ----------------------------------------------------------------------
| Static methods inherited from enum.EnumType:
|
| __contains__(value)
| Return True if `value` is in `cls`.
|
| `value` is in `cls` if:
| 1) `value` is a member of `cls`, or
| 2) `value` is the value of one of the `cls`'s members.
|
| __getitem__(name)
| Return the member matching `name`.
|
| __iter__()
| Return members in definition order.
|
| __len__()
| Return the number of members (no aliases)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|
| __members__
| Returns a mapping of member name->value.
|
| This mapping lists all enum members, including aliases. Note that this
| is a read-only view of the internal mapping.
class HTMLCalendar(Calendar)
| HTMLCalendar(firstweekday=0)
|
| This calendar returns complete HTML pages.
|
| Method resolution order:
| HTMLCalendar
| Calendar
| builtins.object
|
| Methods defined here:
|
| formatday(self, day, weekday)
| Return a day as a table cell.
|
| formatmonth(self, theyear, themonth, withyear=True)
| Return a formatted month as a table.
|
| formatmonthname(self, theyear, themonth, withyear=True)
| Return a month name as a table row.
|
| formatweek(self, theweek)
| Return a complete week as a table row.
|
| formatweekday(self, day)
| Return a weekday name as a table header.
|
| formatweekheader(self)
| Return a header for a week as a table row.
|
| formatyear(self, theyear, width=3)
| Return a formatted year as a table of tables.
|
| formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None)
| Return a formatted year as a complete HTML page.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| cssclass_month = 'month'
|
| cssclass_month_head = 'month'
|
| cssclass_noday = 'noday'
|
| cssclass_year = 'year'
|
| cssclass_year_head = 'year'
|
| cssclasses = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun']
|
| cssclasses_weekday_head = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', '...
|
| ----------------------------------------------------------------------
| Methods inherited from Calendar:
|
| __init__(self, firstweekday=0)
| Initialize self. See help(type(self)) for accurate signature.
|
| getfirstweekday(self)
|
| itermonthdates(self, year, month)
| Return an iterator for one month. The iterator will yield datetime.date
| values and will always iterate through complete weeks, so it will yield
| dates outside the specified month.
|
| itermonthdays(self, year, month)
| Like itermonthdates(), but will yield day numbers. For days outside
| the specified month the day number is 0.
|
| itermonthdays2(self, year, month)
| Like itermonthdates(), but will yield (day number, weekday number)
| tuples. For days outside the specified month the day number is 0.
|
| itermonthdays3(self, year, month)
| Like itermonthdates(), but will yield (year, month, day) tuples. Can be
| used for dates outside of datetime.date range.
|
| itermonthdays4(self, year, month)
| Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
| Can be used for dates outside of datetime.date range.
|
| iterweekdays(self)
| Return an iterator for one week of weekday numbers starting with the
| configured first one.
|
| monthdatescalendar(self, year, month)
| Return a matrix (list of lists) representing a month's calendar.
| Each row represents a week; week entries are datetime.date values.
|
| monthdays2calendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; week entries are
| (day number, weekday number) tuples. Day numbers outside this month
| are zero.
|
| monthdayscalendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; days outside this month are zero.
|
| setfirstweekday(self, firstweekday)
|
| yeardatescalendar(self, year, width=3)
| Return the data for the specified year ready for formatting. The return
| value is a list of month rows. Each month row contains up to width months.
| Each month contains between 4 and 6 weeks and each week contains 1-7
| days. Days are datetime.date objects.
|
| yeardays2calendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are
| (day number, weekday number) tuples. Day numbers outside this month are
| zero.
|
| yeardayscalendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are day numbers.
| Day numbers outside this month are zero.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Calendar:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| firstweekday
class IllegalMonthError(builtins.ValueError)
| IllegalMonthError(month)
|
| # Exceptions raised for bad input
|
| Method resolution order:
| IllegalMonthError
| builtins.ValueError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, month)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ValueError:
|
| __new__(*args, **kwargs) class method of builtins.ValueError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class IllegalWeekdayError(builtins.ValueError)
| IllegalWeekdayError(weekday)
|
| Method resolution order:
| IllegalWeekdayError
| builtins.ValueError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, weekday)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ValueError:
|
| __new__(*args, **kwargs) class method of builtins.ValueError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class LocaleHTMLCalendar(HTMLCalendar)
| LocaleHTMLCalendar(firstweekday=0, locale=None)
|
| This class can be passed a locale name in the constructor and will return
| month and weekday names in the specified locale.
|
| Method resolution order:
| LocaleHTMLCalendar
| HTMLCalendar
| Calendar
| builtins.object
|
| Methods defined here:
|
| __init__(self, firstweekday=0, locale=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| formatmonthname(self, theyear, themonth, withyear=True)
| Return a month name as a table row.
|
| formatweekday(self, day)
| Return a weekday name as a table header.
|
| ----------------------------------------------------------------------
| Methods inherited from HTMLCalendar:
|
| formatday(self, day, weekday)
| Return a day as a table cell.
|
| formatmonth(self, theyear, themonth, withyear=True)
| Return a formatted month as a table.
|
| formatweek(self, theweek)
| Return a complete week as a table row.
|
| formatweekheader(self)
| Return a header for a week as a table row.
|
| formatyear(self, theyear, width=3)
| Return a formatted year as a table of tables.
|
| formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None)
| Return a formatted year as a complete HTML page.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from HTMLCalendar:
|
| cssclass_month = 'month'
|
| cssclass_month_head = 'month'
|
| cssclass_noday = 'noday'
|
| cssclass_year = 'year'
|
| cssclass_year_head = 'year'
|
| cssclasses = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun']
|
| cssclasses_weekday_head = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', '...
|
| ----------------------------------------------------------------------
| Methods inherited from Calendar:
|
| getfirstweekday(self)
|
| itermonthdates(self, year, month)
| Return an iterator for one month. The iterator will yield datetime.date
| values and will always iterate through complete weeks, so it will yield
| dates outside the specified month.
|
| itermonthdays(self, year, month)
| Like itermonthdates(), but will yield day numbers. For days outside
| the specified month the day number is 0.
|
| itermonthdays2(self, year, month)
| Like itermonthdates(), but will yield (day number, weekday number)
| tuples. For days outside the specified month the day number is 0.
|
| itermonthdays3(self, year, month)
| Like itermonthdates(), but will yield (year, month, day) tuples. Can be
| used for dates outside of datetime.date range.
|
| itermonthdays4(self, year, month)
| Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
| Can be used for dates outside of datetime.date range.
|
| iterweekdays(self)
| Return an iterator for one week of weekday numbers starting with the
| configured first one.
|
| monthdatescalendar(self, year, month)
| Return a matrix (list of lists) representing a month's calendar.
| Each row represents a week; week entries are datetime.date values.
|
| monthdays2calendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; week entries are
| (day number, weekday number) tuples. Day numbers outside this month
| are zero.
|
| monthdayscalendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; days outside this month are zero.
|
| setfirstweekday(self, firstweekday)
|
| yeardatescalendar(self, year, width=3)
| Return the data for the specified year ready for formatting. The return
| value is a list of month rows. Each month row contains up to width months.
| Each month contains between 4 and 6 weeks and each week contains 1-7
| days. Days are datetime.date objects.
|
| yeardays2calendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are
| (day number, weekday number) tuples. Day numbers outside this month are
| zero.
|
| yeardayscalendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are day numbers.
| Day numbers outside this month are zero.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Calendar:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| firstweekday
class LocaleTextCalendar(TextCalendar)
| LocaleTextCalendar(firstweekday=0, locale=None)
|
| This class can be passed a locale name in the constructor and will return
| month and weekday names in the specified locale.
|
| Method resolution order:
| LocaleTextCalendar
| TextCalendar
| Calendar
| builtins.object
|
| Methods defined here:
|
| __init__(self, firstweekday=0, locale=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| formatmonthname(self, theyear, themonth, width, withyear=True)
| Return a formatted month name.
|
| formatweekday(self, day, width)
| Returns a formatted week day name.
|
| ----------------------------------------------------------------------
| Methods inherited from TextCalendar:
|
| formatday(self, day, weekday, width)
| Returns a formatted day.
|
| formatmonth(self, theyear, themonth, w=0, l=0)
| Return a month's calendar string (multi-line).
|
| formatweek(self, theweek, width)
| Returns a single week in a string (no newline).
|
| formatweekheader(self, width)
| Return a header for a week.
|
| formatyear(self, theyear, w=2, l=1, c=6, m=3)
| Returns a year's calendar as a multi-line string.
|
| prmonth(self, theyear, themonth, w=0, l=0)
| Print a month's calendar.
|
| prweek(self, theweek, width)
| Print a single week (no newline).
|
| pryear(self, theyear, w=0, l=0, c=6, m=3)
| Print a year's calendar.
|
| ----------------------------------------------------------------------
| Methods inherited from Calendar:
|
| getfirstweekday(self)
|
| itermonthdates(self, year, month)
| Return an iterator for one month. The iterator will yield datetime.date
| values and will always iterate through complete weeks, so it will yield
| dates outside the specified month.
|
| itermonthdays(self, year, month)
| Like itermonthdates(), but will yield day numbers. For days outside
| the specified month the day number is 0.
|
| itermonthdays2(self, year, month)
| Like itermonthdates(), but will yield (day number, weekday number)
| tuples. For days outside the specified month the day number is 0.
|
| itermonthdays3(self, year, month)
| Like itermonthdates(), but will yield (year, month, day) tuples. Can be
| used for dates outside of datetime.date range.
|
| itermonthdays4(self, year, month)
| Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
| Can be used for dates outside of datetime.date range.
|
| iterweekdays(self)
| Return an iterator for one week of weekday numbers starting with the
| configured first one.
|
| monthdatescalendar(self, year, month)
| Return a matrix (list of lists) representing a month's calendar.
| Each row represents a week; week entries are datetime.date values.
|
| monthdays2calendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; week entries are
| (day number, weekday number) tuples. Day numbers outside this month
| are zero.
|
| monthdayscalendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; days outside this month are zero.
|
| setfirstweekday(self, firstweekday)
|
| yeardatescalendar(self, year, width=3)
| Return the data for the specified year ready for formatting. The return
| value is a list of month rows. Each month row contains up to width months.
| Each month contains between 4 and 6 weeks and each week contains 1-7
| days. Days are datetime.date objects.
|
| yeardays2calendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are
| (day number, weekday number) tuples. Day numbers outside this month are
| zero.
|
| yeardayscalendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are day numbers.
| Day numbers outside this month are zero.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Calendar:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| firstweekday
class Month(enum.IntEnum)
| Month(*values)
|
| # Constants for months
|
| Method resolution order:
| Month
| enum.IntEnum
| builtins.int
| enum.ReprEnum
| enum.Enum
| builtins.object
|
| Methods defined here:
|
| __format__(self, format_spec, /) from builtins.int
| Convert to a string according to format_spec.
|
| __new__(cls, value) from enum.Enum
| Create and return a new object. See help(type) for accurate signature.
|
| __repr__ = global_enum_repr(self) from enum
| use module.enum_name instead of class.enum_name
|
| the module is the last module in case of a multi-module name
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| APRIL = calendar.APRIL
|
| AUGUST = calendar.AUGUST
|
| DECEMBER = calendar.DECEMBER
|
| FEBRUARY = calendar.FEBRUARY
|
| JANUARY = calendar.JANUARY
|
| JULY = calendar.JULY
|
| JUNE = calendar.JUNE
|
| MARCH = calendar.MARCH
|
| MAY = calendar.MAY
|
| NOVEMBER = calendar.NOVEMBER
|
| OCTOBER = calendar.OCTOBER
|
| SEPTEMBER = calendar.SEPTEMBER
|
| ----------------------------------------------------------------------
| Methods inherited from enum.IntEnum:
|
| __str__ = __repr__(self, /) from builtins.int
| Return repr(self).
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.int:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.int:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.int:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Enum:
|
| __dir__(self)
| Returns public methods and other interesting attributes.
|
| __init__(self, *args, **kwds)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce_ex__(self, proto)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
|
| name
| The name of the Enum member.
|
| value
| The value of the Enum member.
|
| ----------------------------------------------------------------------
| Static methods inherited from enum.EnumType:
|
| __contains__(value)
| Return True if `value` is in `cls`.
|
| `value` is in `cls` if:
| 1) `value` is a member of `cls`, or
| 2) `value` is the value of one of the `cls`'s members.
|
| __getitem__(name)
| Return the member matching `name`.
|
| __iter__()
| Return members in definition order.
|
| __len__()
| Return the number of members (no aliases)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|
| __members__
| Returns a mapping of member name->value.
|
| This mapping lists all enum members, including aliases. Note that this
| is a read-only view of the internal mapping.
class TextCalendar(Calendar)
| TextCalendar(firstweekday=0)
|
| Subclass of Calendar that outputs a calendar as a simple plain text
| similar to the UNIX program cal.
|
| Method resolution order:
| TextCalendar
| Calendar
| builtins.object
|
| Methods defined here:
|
| formatday(self, day, weekday, width)
| Returns a formatted day.
|
| formatmonth(self, theyear, themonth, w=0, l=0)
| Return a month's calendar string (multi-line).
|
| formatmonthname(self, theyear, themonth, width, withyear=True)
| Return a formatted month name.
|
| formatweek(self, theweek, width)
| Returns a single week in a string (no newline).
|
| formatweekday(self, day, width)
| Returns a formatted week day name.
|
| formatweekheader(self, width)
| Return a header for a week.
|
| formatyear(self, theyear, w=2, l=1, c=6, m=3)
| Returns a year's calendar as a multi-line string.
|
| prmonth(self, theyear, themonth, w=0, l=0)
| Print a month's calendar.
|
| prweek(self, theweek, width)
| Print a single week (no newline).
|
| pryear(self, theyear, w=0, l=0, c=6, m=3)
| Print a year's calendar.
|
| ----------------------------------------------------------------------
| Methods inherited from Calendar:
|
| __init__(self, firstweekday=0)
| Initialize self. See help(type(self)) for accurate signature.
|
| getfirstweekday(self)
|
| itermonthdates(self, year, month)
| Return an iterator for one month. The iterator will yield datetime.date
| values and will always iterate through complete weeks, so it will yield
| dates outside the specified month.
|
| itermonthdays(self, year, month)
| Like itermonthdates(), but will yield day numbers. For days outside
| the specified month the day number is 0.
|
| itermonthdays2(self, year, month)
| Like itermonthdates(), but will yield (day number, weekday number)
| tuples. For days outside the specified month the day number is 0.
|
| itermonthdays3(self, year, month)
| Like itermonthdates(), but will yield (year, month, day) tuples. Can be
| used for dates outside of datetime.date range.
|
| itermonthdays4(self, year, month)
| Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
| Can be used for dates outside of datetime.date range.
|
| iterweekdays(self)
| Return an iterator for one week of weekday numbers starting with the
| configured first one.
|
| monthdatescalendar(self, year, month)
| Return a matrix (list of lists) representing a month's calendar.
| Each row represents a week; week entries are datetime.date values.
|
| monthdays2calendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; week entries are
| (day number, weekday number) tuples. Day numbers outside this month
| are zero.
|
| monthdayscalendar(self, year, month)
| Return a matrix representing a month's calendar.
| Each row represents a week; days outside this month are zero.
|
| setfirstweekday(self, firstweekday)
|
| yeardatescalendar(self, year, width=3)
| Return the data for the specified year ready for formatting. The return
| value is a list of month rows. Each month row contains up to width months.
| Each month contains between 4 and 6 weeks and each week contains 1-7
| days. Days are datetime.date objects.
|
| yeardays2calendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are
| (day number, weekday number) tuples. Day numbers outside this month are
| zero.
|
| yeardayscalendar(self, year, width=3)
| Return the data for the specified year ready for formatting (similar to
| yeardatescalendar()). Entries in the week lists are day numbers.
| Day numbers outside this month are zero.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Calendar:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| firstweekday
FUNCTIONS
__getattr__(name)
calendar = formatyear(theyear, w=2, l=1, c=6, m=3) method of TextCalendar instance
Returns a year's calendar as a multi-line string.
firstweekday = getfirstweekday() method of TextCalendar instance
isleap(year)
Return True for leap years, False for non-leap years.
leapdays(y1, y2)
Return number of leap years in range [y1, y2).
Assume y1 <= y2.
month = formatmonth(theyear, themonth, w=0, l=0) method of TextCalendar instance
Return a month's calendar string (multi-line).
monthcalendar = monthdayscalendar(year, month) method of TextCalendar instance
Return a matrix representing a month's calendar.
Each row represents a week; days outside this month are zero.
monthrange(year, month)
Return weekday of first day of month (0-6 ~ Mon-Sun)
and number of days (28-31) for year, month.
prcal = pryear(theyear, w=0, l=0, c=6, m=3) method of TextCalendar instance
Print a year's calendar.
prmonth(theyear, themonth, w=0, l=0) method of TextCalendar instance
Print a month's calendar.
setfirstweekday(firstweekday)
timegm(tuple)
Unrelated but handy function to calculate Unix timestamp from GMT.
weekday(year, month, day)
Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31).
weekheader = formatweekheader(width) method of TextCalendar instance
Return a header for a week.
DATA
APRIL = calendar.APRIL
AUGUST = calendar.AUGUST
DECEMBER = calendar.DECEMBER
FEBRUARY = calendar.FEBRUARY
FRIDAY = calendar.FRIDAY
JANUARY = calendar.JANUARY
JULY = calendar.JULY
JUNE = calendar.JUNE
MARCH = calendar.MARCH
MAY = calendar.MAY
MONDAY = calendar.MONDAY
NOVEMBER = calendar.NOVEMBER
OCTOBER = calendar.OCTOBER
SATURDAY = calendar.SATURDAY
SEPTEMBER = calendar.SEPTEMBER
SUNDAY = calendar.SUNDAY
THURSDAY = calendar.THURSDAY
TUESDAY = calendar.TUESDAY
WEDNESDAY = calendar.WEDNESDAY
__all__ = ['IllegalMonthError', 'IllegalWeekdayError', 'setfirstweekda...
day_abbr = <calendar._localized_day object>
day_name = <calendar._localized_day object>
month_abbr = <calendar._localized_month object>
month_name = <calendar._localized_month object>
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\calendar.py
peewee.callable_
Python Library Documentation: function <lambda> in module peewee <lambda> lambda c
peewee.chunked
Python Library Documentation: function chunked in module peewee chunked(it, n)
peewee.collections
Python Library Documentation: package collections
NAME
collections
MODULE REFERENCE
https://docs.python.org/3.12/library/collections.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module implements specialized container datatypes providing
alternatives to Python's general purpose built-in containers, dict,
list, set, and tuple.
* namedtuple factory function for creating tuple subclasses with named fields
* deque list-like container with fast appends and pops on either end
* ChainMap dict-like class for creating a single view of multiple mappings
* Counter dict subclass for counting hashable objects
* OrderedDict dict subclass that remembers the order entries were added
* defaultdict dict subclass that calls a factory function to supply missing values
* UserDict wrapper around dictionary objects for easier dict subclassing
* UserList wrapper around list objects for easier list subclassing
* UserString wrapper around string objects for easier string subclassing
PACKAGE CONTENTS
abc
SUBMODULES
_collections_abc
CLASSES
builtins.dict(builtins.object)
Counter
OrderedDict
defaultdict
builtins.object
deque
collections.abc.MutableMapping(collections.abc.Mapping)
ChainMap
UserDict
collections.abc.MutableSequence(collections.abc.Sequence)
UserList
collections.abc.Sequence(collections.abc.Reversible, collections.abc.Collection)
UserString
class ChainMap(collections.abc.MutableMapping)
| ChainMap(*maps)
|
| A ChainMap groups multiple dicts (or other mappings) together
| to create a single, updateable view.
|
| The underlying mappings are stored in a list. That list is public and can
| be accessed or updated using the *maps* attribute. There is no other
| state.
|
| Lookups search the underlying mappings successively until a key is found.
| In contrast, writes, updates, and deletions only operate on the first
| mapping.
|
| Method resolution order:
| ChainMap
| collections.abc.MutableMapping
| collections.abc.Mapping
| collections.abc.Collection
| collections.abc.Sized
| collections.abc.Iterable
| collections.abc.Container
| builtins.object
|
| Methods defined here:
|
| __bool__(self)
|
| __contains__(self, key)
|
| __copy__ = copy(self)
|
| __delitem__(self, key)
|
| __getitem__(self, key)
|
| __init__(self, *maps)
| Initialize a ChainMap by setting *maps* to the given mappings.
| If no mappings are provided, a single empty dictionary is used.
|
| __ior__(self, other)
|
| __iter__(self)
|
| __len__(self)
|
| __missing__(self, key)
|
| __or__(self, other)
| Return self|value.
|
| __repr__(self)
| Return repr(self).
|
| __ror__(self, other)
| Return value|self.
|
| __setitem__(self, key, value)
|
| clear(self)
| Clear maps[0], leaving maps[1:] intact.
|
| copy(self)
| New ChainMap or subclass with a new copy of maps[0] and refs to maps[1:]
|
| get(self, key, default=None)
| D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
|
| new_child(self, m=None, **kwargs)
| New ChainMap with a new map followed by all previous maps.
| If no map is provided, an empty dict is used.
| Keyword arguments update the map or new empty dict.
|
| pop(self, key, *args)
| Remove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].
|
| popitem(self)
| Remove and return an item pair from maps[0]. Raise KeyError is maps[0] is empty.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromkeys(iterable, *args)
| Create a ChainMap with a single dict created from the iterable.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| parents
| New ChainMap from maps[1:].
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from collections.abc.MutableMapping:
|
| setdefault(self, key, default=None)
| D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
|
| update(self, other=(), /, **kwds)
| D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.
| If E present and has a .keys() method, does: for k in E: D[k] = E[k]
| If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v
| In either case, this is followed by: for k, v in F.items(): D[k] = v
|
| ----------------------------------------------------------------------
| Methods inherited from collections.abc.Mapping:
|
| __eq__(self, other)
| Return self==value.
|
| items(self)
| D.items() -> a set-like object providing a view on D's items
|
| keys(self)
| D.keys() -> a set-like object providing a view on D's keys
|
| values(self)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from collections.abc.Mapping:
|
| __hash__ = None
|
| __reversed__ = None
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Collection:
|
| __subclasshook__(C)
| Abstract classes can override this to customize issubclass().
|
| This is invoked early on by abc.ABCMeta.__subclasscheck__().
| It should return True, False or NotImplemented. If it returns
| NotImplemented, the normal algorithm is used. Otherwise, it
| overrides the normal algorithm (and the outcome is cached).
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Iterable:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
class Counter(builtins.dict)
| Counter(iterable=None, /, **kwds)
|
| Dict subclass for counting hashable items. Sometimes called a bag
| or multiset. Elements are stored as dictionary keys and their counts
| are stored as dictionary values.
|
| >>> c = Counter('abcdeabcdabcaba') # count elements from a string
|
| >>> c.most_common(3) # three most common elements
| [('a', 5), ('b', 4), ('c', 3)]
| >>> sorted(c) # list all unique elements
| ['a', 'b', 'c', 'd', 'e']
| >>> ''.join(sorted(c.elements())) # list elements with repetitions
| 'aaaaabbbbcccdde'
| >>> sum(c.values()) # total of all counts
| 15
|
| >>> c['a'] # count of letter 'a'
| 5
| >>> for elem in 'shazam': # update counts from an iterable
| ... c[elem] += 1 # by adding 1 to each element's count
| >>> c['a'] # now there are seven 'a'
| 7
| >>> del c['b'] # remove all 'b'
| >>> c['b'] # now there are zero 'b'
| 0
|
| >>> d = Counter('simsalabim') # make another counter
| >>> c.update(d) # add in the second counter
| >>> c['a'] # now there are nine 'a'
| 9
|
| >>> c.clear() # empty the counter
| >>> c
| Counter()
|
| Note: If a count is set to zero or reduced to zero, it will remain
| in the counter until the entry is deleted or the counter is cleared:
|
| >>> c = Counter('aaabbc')
| >>> c['b'] -= 2 # reduce the count of 'b' by two
| >>> c.most_common() # 'b' is still in, but its count is zero
| [('a', 3), ('c', 1), ('b', 0)]
|
| Method resolution order:
| Counter
| builtins.dict
| builtins.object
|
| Methods defined here:
|
| __add__(self, other)
| Add counts from two counters.
|
| >>> Counter('abbb') + Counter('bcc')
| Counter({'b': 4, 'c': 2, 'a': 1})
|
| __and__(self, other)
| Intersection is the minimum of corresponding counts.
|
| >>> Counter('abbb') & Counter('bcc')
| Counter({'b': 1})
|
| __delitem__(self, elem)
| Like dict.__delitem__() but does not raise KeyError for missing values.
|
| __eq__(self, other)
| True if all counts agree. Missing counts are treated as zero.
|
| __ge__(self, other)
| True if all counts in self are a superset of those in other.
|
| __gt__(self, other)
| True if all counts in self are a proper superset of those in other.
|
| __iadd__(self, other)
| Inplace add from another counter, keeping only positive counts.
|
| >>> c = Counter('abbb')
| >>> c += Counter('bcc')
| >>> c
| Counter({'b': 4, 'c': 2, 'a': 1})
|
| __iand__(self, other)
| Inplace intersection is the minimum of corresponding counts.
|
| >>> c = Counter('abbb')
| >>> c &= Counter('bcc')
| >>> c
| Counter({'b': 1})
|
| __init__(self, iterable=None, /, **kwds)
| Create a new, empty Counter object. And if given, count elements
| from an input iterable. Or, initialize the count from another mapping
| of elements to their counts.
|
| >>> c = Counter() # a new, empty counter
| >>> c = Counter('gallahad') # a new counter from an iterable
| >>> c = Counter({'a': 4, 'b': 2}) # a new counter from a mapping
| >>> c = Counter(a=4, b=2) # a new counter from keyword args
|
| __ior__(self, other)
| Inplace union is the maximum of value from either counter.
|
| >>> c = Counter('abbb')
| >>> c |= Counter('bcc')
| >>> c
| Counter({'b': 3, 'c': 2, 'a': 1})
|
| __isub__(self, other)
| Inplace subtract counter, but keep only results with positive counts.
|
| >>> c = Counter('abbbc')
| >>> c -= Counter('bccd')
| >>> c
| Counter({'b': 2, 'a': 1})
|
| __le__(self, other)
| True if all counts in self are a subset of those in other.
|
| __lt__(self, other)
| True if all counts in self are a proper subset of those in other.
|
| __missing__(self, key)
| The count of elements not in the Counter is zero.
|
| __ne__(self, other)
| True if any counts disagree. Missing counts are treated as zero.
|
| __neg__(self)
| Subtracts from an empty counter. Strips positive and zero counts,
| and flips the sign on negative counts.
|
| __or__(self, other)
| Union is the maximum of value in either of the input counters.
|
| >>> Counter('abbb') | Counter('bcc')
| Counter({'b': 3, 'c': 2, 'a': 1})
|
| __pos__(self)
| Adds an empty counter, effectively stripping negative and zero counts
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __sub__(self, other)
| Subtract count, but keep only results with positive counts.
|
| >>> Counter('abbbc') - Counter('bccd')
| Counter({'b': 2, 'a': 1})
|
| copy(self)
| Return a shallow copy.
|
| elements(self)
| Iterator over elements repeating each as many times as its count.
|
| >>> c = Counter('ABCABC')
| >>> sorted(c.elements())
| ['A', 'A', 'B', 'B', 'C', 'C']
|
| Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1
|
| >>> import math
| >>> prime_factors = Counter({2: 2, 3: 3, 17: 1})
| >>> math.prod(prime_factors.elements())
| 1836
|
| Note, if an element's count has been set to zero or is a negative
| number, elements() will ignore it.
|
| most_common(self, n=None)
| List the n most common elements and their counts from the most
| common to the least. If n is None, then list all element counts.
|
| >>> Counter('abracadabra').most_common(3)
| [('a', 5), ('b', 2), ('r', 2)]
|
| subtract(self, iterable=None, /, **kwds)
| Like dict.update() but subtracts counts instead of replacing them.
| Counts can be reduced below zero. Both the inputs and outputs are
| allowed to contain zero and negative counts.
|
| Source can be an iterable, a dictionary, or another Counter instance.
|
| >>> c = Counter('which')
| >>> c.subtract('witch') # subtract elements from another iterable
| >>> c.subtract(Counter('watch')) # subtract elements from another counter
| >>> c['h'] # 2 in which, minus 1 in witch, minus 1 in watch
| 0
| >>> c['w'] # 1 in which, minus 1 in witch, minus 1 in watch
| -1
|
| total(self)
| Sum of the counts
|
| update(self, iterable=None, /, **kwds)
| Like dict.update() but add counts instead of replacing them.
|
| Source can be an iterable, a dictionary, or another Counter instance.
|
| >>> c = Counter('which')
| >>> c.update('witch') # add elements from another iterable
| >>> d = Counter('watch')
| >>> c.update(d) # add elements from another counter
| >>> c['h'] # four 'h' in which, witch, and watch
| 4
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromkeys(iterable, v=None)
| Create a new dictionary with keys from iterable and values set to value.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.dict:
|
| __contains__(self, key, /)
| True if the dictionary has the specified key, else False.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __iter__(self, /)
| Implement iter(self).
|
| __len__(self, /)
| Return len(self).
|
| __reversed__(self, /)
| Return a reverse iterator over the dict keys.
|
| __ror__(self, value, /)
| Return value|self.
|
| __setitem__(self, key, value, /)
| Set self[key] to value.
|
| __sizeof__(...)
| D.__sizeof__() -> size of D in memory, in bytes
|
| clear(...)
| D.clear() -> None. Remove all items from D.
|
| get(self, key, default=None, /)
| Return the value for key if key is in the dictionary, else default.
|
| items(...)
| D.items() -> a set-like object providing a view on D's items
|
| keys(...)
| D.keys() -> a set-like object providing a view on D's keys
|
| pop(...)
| D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
|
| If the key is not found, return the default if given; otherwise,
| raise a KeyError.
|
| popitem(self, /)
| Remove and return a (key, value) pair as a 2-tuple.
|
| Pairs are returned in LIFO (last-in, first-out) order.
| Raises KeyError if the dict is empty.
|
| setdefault(self, key, default=None, /)
| Insert key with a value of default if key is not in the dictionary.
|
| Return the value for key if key is in the dictionary, else default.
|
| values(...)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.dict:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.dict:
|
| __new__(*args, **kwargs) class method of builtins.dict
| Create and return a new object. See help(type) for accurate signature.
class OrderedDict(builtins.dict)
| Dictionary that remembers insertion order
|
| Method resolution order:
| OrderedDict
| builtins.dict
| builtins.object
|
| Methods defined here:
|
| __delitem__(self, key, /)
| Delete self[key].
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __ior__(self, value, /)
| Return self|=value.
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __or__(self, value, /)
| Return self|value.
|
| __reduce__(...)
| Return state information for pickling
|
| __repr__(self, /)
| Return repr(self).
|
| __reversed__(...)
| od.__reversed__() <==> reversed(od)
|
| __ror__(self, value, /)
| Return value|self.
|
| __setitem__(self, key, value, /)
| Set self[key] to value.
|
| __sizeof__(...)
| D.__sizeof__() -> size of D in memory, in bytes
|
| clear(...)
| od.clear() -> None. Remove all items from od.
|
| copy(...)
| od.copy() -> a shallow copy of od
|
| items(...)
| D.items() -> a set-like object providing a view on D's items
|
| keys(...)
| D.keys() -> a set-like object providing a view on D's keys
|
| move_to_end(self, /, key, last=True)
| Move an existing element to the end (or beginning if last is false).
|
| Raise KeyError if the element does not exist.
|
| pop(...)
| od.pop(key[,default]) -> v, remove specified key and return the corresponding value.
|
| If the key is not found, return the default if given; otherwise,
| raise a KeyError.
|
| popitem(self, /, last=True)
| Remove and return a (key, value) pair from the dictionary.
|
| Pairs are returned in LIFO order if last is true or FIFO order if false.
|
| setdefault(self, /, key, default=None)
| Insert key with a value of default if key is not in the dictionary.
|
| Return the value for key if key is in the dictionary, else default.
|
| update(...)
| D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
| If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
| If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
| In either case, this is followed by: for k in F: D[k] = F[k]
|
| values(...)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromkeys(iterable, value=None)
| Create a new ordered dictionary with keys from iterable and values set to value.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.dict:
|
| __contains__(self, key, /)
| True if the dictionary has the specified key, else False.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __len__(self, /)
| Return len(self).
|
| get(self, key, default=None, /)
| Return the value for key if key is in the dictionary, else default.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.dict:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.dict:
|
| __new__(*args, **kwargs) class method of builtins.dict
| Create and return a new object. See help(type) for accurate signature.
class UserDict(collections.abc.MutableMapping)
| UserDict(dict=None, /, **kwargs)
|
| Method resolution order:
| UserDict
| collections.abc.MutableMapping
| collections.abc.Mapping
| collections.abc.Collection
| collections.abc.Sized
| collections.abc.Iterable
| collections.abc.Container
| builtins.object
|
| Methods defined here:
|
| __contains__(self, key)
| # Modify __contains__ and get() to work like dict
| # does when __missing__ is present.
|
| __copy__(self)
|
| __delitem__(self, key)
|
| __getitem__(self, key)
|
| __init__(self, dict=None, /, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __ior__(self, other)
|
| __iter__(self)
|
| __len__(self)
|
| __or__(self, other)
| Return self|value.
|
| __repr__(self)
| Return repr(self).
|
| __ror__(self, other)
| Return value|self.
|
| __setitem__(self, key, item)
|
| copy(self)
|
| get(self, key, default=None)
| D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromkeys(iterable, value=None)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from collections.abc.MutableMapping:
|
| clear(self)
| D.clear() -> None. Remove all items from D.
|
| pop(self, key, default=<object object at 0x000001DE241181F0>)
| D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
| If key is not found, d is returned if given, otherwise KeyError is raised.
|
| popitem(self)
| D.popitem() -> (k, v), remove and return some (key, value) pair
| as a 2-tuple; but raise KeyError if D is empty.
|
| setdefault(self, key, default=None)
| D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
|
| update(self, other=(), /, **kwds)
| D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.
| If E present and has a .keys() method, does: for k in E: D[k] = E[k]
| If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v
| In either case, this is followed by: for k, v in F.items(): D[k] = v
|
| ----------------------------------------------------------------------
| Methods inherited from collections.abc.Mapping:
|
| __eq__(self, other)
| Return self==value.
|
| items(self)
| D.items() -> a set-like object providing a view on D's items
|
| keys(self)
| D.keys() -> a set-like object providing a view on D's keys
|
| values(self)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from collections.abc.Mapping:
|
| __hash__ = None
|
| __reversed__ = None
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Collection:
|
| __subclasshook__(C)
| Abstract classes can override this to customize issubclass().
|
| This is invoked early on by abc.ABCMeta.__subclasscheck__().
| It should return True, False or NotImplemented. If it returns
| NotImplemented, the normal algorithm is used. Otherwise, it
| overrides the normal algorithm (and the outcome is cached).
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Iterable:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
class UserList(collections.abc.MutableSequence)
| UserList(initlist=None)
|
| A more or less complete user-defined wrapper around list objects.
|
| Method resolution order:
| UserList
| collections.abc.MutableSequence
| collections.abc.Sequence
| collections.abc.Reversible
| collections.abc.Collection
| collections.abc.Sized
| collections.abc.Iterable
| collections.abc.Container
| builtins.object
|
| Methods defined here:
|
| __add__(self, other)
|
| __contains__(self, item)
|
| __copy__(self)
|
| __delitem__(self, i)
|
| __eq__(self, other)
| Return self==value.
|
| __ge__(self, other)
| Return self>=value.
|
| __getitem__(self, i)
|
| __gt__(self, other)
| Return self>value.
|
| __iadd__(self, other)
|
| __imul__(self, n)
|
| __init__(self, initlist=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(self, other)
| Return self<=value.
|
| __len__(self)
|
| __lt__(self, other)
| Return self<value.
|
| __mul__(self, n)
|
| __radd__(self, other)
|
| __repr__(self)
| Return repr(self).
|
| __rmul__ = __mul__(self, n)
|
| __setitem__(self, i, item)
|
| append(self, item)
| S.append(value) -- append value to the end of the sequence
|
| clear(self)
| S.clear() -> None -- remove all items from S
|
| copy(self)
|
| count(self, item)
| S.count(value) -> integer -- return number of occurrences of value
|
| extend(self, other)
| S.extend(iterable) -- extend sequence by appending elements from the iterable
|
| index(self, item, *args)
| S.index(value, [start, [stop]]) -> integer -- return first index of value.
| Raises ValueError if the value is not present.
|
| Supporting start and stop arguments is optional, but
| recommended.
|
| insert(self, i, item)
| S.insert(index, value) -- insert value before index
|
| pop(self, i=-1)
| S.pop([index]) -> item -- remove and return item at index (default last).
| Raise IndexError if list is empty or index is out of range.
|
| remove(self, item)
| S.remove(value) -- remove first occurrence of value.
| Raise ValueError if the value is not present.
|
| reverse(self)
| S.reverse() -- reverse *IN PLACE*
|
| sort(self, /, *args, **kwds)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| __hash__ = None
|
| ----------------------------------------------------------------------
| Methods inherited from collections.abc.Sequence:
|
| __iter__(self)
|
| __reversed__(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Reversible:
|
| __subclasshook__(C)
| Abstract classes can override this to customize issubclass().
|
| This is invoked early on by abc.ABCMeta.__subclasscheck__().
| It should return True, False or NotImplemented. If it returns
| NotImplemented, the normal algorithm is used. Otherwise, it
| overrides the normal algorithm (and the outcome is cached).
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Iterable:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
class UserString(collections.abc.Sequence)
| UserString(seq)
|
| Method resolution order:
| UserString
| collections.abc.Sequence
| collections.abc.Reversible
| collections.abc.Collection
| collections.abc.Sized
| collections.abc.Iterable
| collections.abc.Container
| builtins.object
|
| Methods defined here:
|
| __add__(self, other)
|
| __complex__(self)
|
| __contains__(self, char)
|
| __eq__(self, string)
| Return self==value.
|
| __float__(self)
|
| __ge__(self, string)
| Return self>=value.
|
| __getitem__(self, index)
|
| __getnewargs__(self)
|
| __gt__(self, string)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __init__(self, seq)
| Initialize self. See help(type(self)) for accurate signature.
|
| __int__(self)
|
| __le__(self, string)
| Return self<=value.
|
| __len__(self)
|
| __lt__(self, string)
| Return self<value.
|
| __mod__(self, args)
|
| __mul__(self, n)
|
| __radd__(self, other)
|
| __repr__(self)
| Return repr(self).
|
| __rmod__(self, template)
|
| __rmul__ = __mul__(self, n)
|
| __str__(self)
| Return str(self).
|
| capitalize(self)
| # the following methods are defined in alphabetical order:
|
| casefold(self)
|
| center(self, width, *args)
|
| count(self, sub, start=0, end=9223372036854775807)
| S.count(value) -> integer -- return number of occurrences of value
|
| encode(self, encoding='utf-8', errors='strict')
|
| endswith(self, suffix, start=0, end=9223372036854775807)
|
| expandtabs(self, tabsize=8)
|
| find(self, sub, start=0, end=9223372036854775807)
|
| format(self, /, *args, **kwds)
|
| format_map(self, mapping)
|
| index(self, sub, start=0, end=9223372036854775807)
| S.index(value, [start, [stop]]) -> integer -- return first index of value.
| Raises ValueError if the value is not present.
|
| Supporting start and stop arguments is optional, but
| recommended.
|
| isalnum(self)
|
| isalpha(self)
|
| isascii(self)
|
| isdecimal(self)
|
| isdigit(self)
|
| isidentifier(self)
|
| islower(self)
|
| isnumeric(self)
|
| isprintable(self)
|
| isspace(self)
|
| istitle(self)
|
| isupper(self)
|
| join(self, seq)
|
| ljust(self, width, *args)
|
| lower(self)
|
| lstrip(self, chars=None)
|
| partition(self, sep)
|
| removeprefix(self, prefix, /)
|
| removesuffix(self, suffix, /)
|
| replace(self, old, new, maxsplit=-1)
|
| rfind(self, sub, start=0, end=9223372036854775807)
|
| rindex(self, sub, start=0, end=9223372036854775807)
|
| rjust(self, width, *args)
|
| rpartition(self, sep)
|
| rsplit(self, sep=None, maxsplit=-1)
|
| rstrip(self, chars=None)
|
| split(self, sep=None, maxsplit=-1)
|
| splitlines(self, keepends=False)
|
| startswith(self, prefix, start=0, end=9223372036854775807)
|
| strip(self, chars=None)
|
| swapcase(self)
|
| title(self)
|
| translate(self, *args)
|
| upper(self)
|
| zfill(self, width)
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| maketrans(...)
| Return a translation table usable for str.translate().
|
| If there is only one argument, it must be a dictionary mapping Unicode
| ordinals (integers) or characters to Unicode ordinals, strings or None.
| Character keys will be then converted to ordinals.
| If there are two arguments, they must be strings of equal length, and
| in the resulting dictionary, each character in x will be mapped to the
| character at the same position in y. If there is a third argument, it
| must be a string, whose characters will be mapped to None in the result.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from collections.abc.Sequence:
|
| __iter__(self)
|
| __reversed__(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Reversible:
|
| __subclasshook__(C)
| Abstract classes can override this to customize issubclass().
|
| This is invoked early on by abc.ABCMeta.__subclasscheck__().
| It should return True, False or NotImplemented. If it returns
| NotImplemented, the normal algorithm is used. Otherwise, it
| overrides the normal algorithm (and the outcome is cached).
|
| ----------------------------------------------------------------------
| Class methods inherited from collections.abc.Iterable:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
class defaultdict(builtins.dict)
| defaultdict(default_factory=None, /, [...]) --> dict with default factory
|
| The default factory is called without arguments to produce
| a new value when a key is not present, in __getitem__ only.
| A defaultdict compares equal to a dict with the same items.
| All remaining arguments are treated the same as if they were
| passed to the dict constructor, including keyword arguments.
|
| Method resolution order:
| defaultdict
| builtins.dict
| builtins.object
|
| Methods defined here:
|
| __copy__(...)
| D.copy() -> a shallow copy of D.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __missing__(...)
| __missing__(key) # Called by __getitem__ for missing key; pseudo-code:
| if self.default_factory is None: raise KeyError((key,))
| self[key] = value = self.default_factory()
| return value
|
| __or__(self, value, /)
| Return self|value.
|
| __reduce__(...)
| Return state information for pickling.
|
| __repr__(self, /)
| Return repr(self).
|
| __ror__(self, value, /)
| Return value|self.
|
| copy(...)
| D.copy() -> a shallow copy of D.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| default_factory
| Factory for default value called by __missing__().
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.dict:
|
| __contains__(self, key, /)
| True if the dictionary has the specified key, else False.
|
| __delitem__(self, key, /)
| Delete self[key].
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __ior__(self, value, /)
| Return self|=value.
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reversed__(self, /)
| Return a reverse iterator over the dict keys.
|
| __setitem__(self, key, value, /)
| Set self[key] to value.
|
| __sizeof__(...)
| D.__sizeof__() -> size of D in memory, in bytes
|
| clear(...)
| D.clear() -> None. Remove all items from D.
|
| get(self, key, default=None, /)
| Return the value for key if key is in the dictionary, else default.
|
| items(...)
| D.items() -> a set-like object providing a view on D's items
|
| keys(...)
| D.keys() -> a set-like object providing a view on D's keys
|
| pop(...)
| D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
|
| If the key is not found, return the default if given; otherwise,
| raise a KeyError.
|
| popitem(self, /)
| Remove and return a (key, value) pair as a 2-tuple.
|
| Pairs are returned in LIFO (last-in, first-out) order.
| Raises KeyError if the dict is empty.
|
| setdefault(self, key, default=None, /)
| Insert key with a value of default if key is not in the dictionary.
|
| Return the value for key if key is in the dictionary, else default.
|
| update(...)
| D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
| If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
| If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
| In either case, this is followed by: for k in F: D[k] = F[k]
|
| values(...)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.dict:
|
| fromkeys(iterable, value=None, /)
| Create a new dictionary with keys from iterable and values set to value.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.dict:
|
| __new__(*args, **kwargs) class method of builtins.dict
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from builtins.dict:
|
| __hash__ = None
class deque(builtins.object)
| deque([iterable[, maxlen]]) --> deque object
|
| A list-like sequence optimized for data accesses near its endpoints.
|
| Methods defined here:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __copy__(...)
| Return a shallow copy of a deque.
|
| __delitem__(self, key, /)
| Delete self[key].
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __iadd__(self, value, /)
| Implement self+=value.
|
| __imul__(self, value, /)
| Implement self*=value.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(...)
| Return state information for pickling.
|
| __repr__(self, /)
| Return repr(self).
|
| __reversed__(...)
| D.__reversed__() -- return a reverse iterator over the deque
|
| __rmul__(self, value, /)
| Return value*self.
|
| __setitem__(self, key, value, /)
| Set self[key] to value.
|
| __sizeof__(...)
| D.__sizeof__() -- size of D in memory, in bytes
|
| append(...)
| Add an element to the right side of the deque.
|
| appendleft(...)
| Add an element to the left side of the deque.
|
| clear(...)
| Remove all elements from the deque.
|
| copy(...)
| Return a shallow copy of a deque.
|
| count(...)
| D.count(value) -- return number of occurrences of value
|
| extend(...)
| Extend the right side of the deque with elements from the iterable
|
| extendleft(...)
| Extend the left side of the deque with elements from the iterable
|
| index(...)
| D.index(value, [start, [stop]]) -- return first index of value.
| Raises ValueError if the value is not present.
|
| insert(...)
| D.insert(index, object) -- insert object before index
|
| pop(...)
| Remove and return the rightmost element.
|
| popleft(...)
| Remove and return the leftmost element.
|
| remove(...)
| D.remove(value) -- remove first occurrence of value.
|
| reverse(...)
| D.reverse() -- reverse *IN PLACE*
|
| rotate(...)
| Rotate the deque n steps to the right (default n=1). If n is negative, rotates left.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| maxlen
| maximum size of a deque or None if unbounded
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
FUNCTIONS
namedtuple(typename, field_names, *, rename=False, defaults=None, module=None)
Returns a new subclass of tuple with named fields.
>>> Point = namedtuple('Point', ['x', 'y'])
>>> Point.__doc__ # docstring for the new class
'Point(x, y)'
>>> p = Point(11, y=22) # instantiate with positional args or keywords
>>> p[0] + p[1] # indexable like a plain tuple
33
>>> x, y = p # unpack like a regular tuple
>>> x, y
(11, 22)
>>> p.x + p.y # fields also accessible by name
33
>>> d = p._asdict() # convert to a dictionary
>>> d['x']
11
>>> Point(**d) # convert from a dictionary
Point(x=11, y=22)
>>> p._replace(x=100) # _replace() is like str.replace() but targets named fields
Point(x=100, y=22)
DATA
__all__ = ['ChainMap', 'Counter', 'OrderedDict', 'UserDict', 'UserList...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\collections\__init__.py
peewee.contextmanager
Python Library Documentation: function contextmanager in module contextlib
contextmanager(func)
@contextmanager decorator.
Typical usage:
@contextmanager
def some_generator(<arguments>):
<setup>
try:
yield <value>
finally:
<cleanup>
This makes this:
with some_generator(<arguments>) as <variable>:
<body>
equivalent to this:
<setup>
try:
<variable> = <value>
<body>
finally:
<cleanup>
peewee.convert_date
Python Library Documentation: function convert_date in module peewee convert_date(d)
peewee.convert_timestamp
Python Library Documentation: function convert_timestamp in module peewee convert_timestamp(t)
peewee.database_required
Python Library Documentation: function database_required in module peewee database_required(method)
peewee.datetime
Python Library Documentation: module datetime
NAME
datetime - Fast implementation of the datetime type.
MODULE REFERENCE
https://docs.python.org/3.12/library/datetime.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
CLASSES
builtins.object
date
datetime
time
timedelta
tzinfo
timezone
class date(builtins.object)
| date(year, month, day) --> date object
|
| Methods defined here:
|
| __add__(self, value, /)
| Return self+value.
|
| __eq__(self, value, /)
| Return self==value.
|
| __format__(...)
| Formats self with strftime.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __radd__(self, value, /)
| Return value+self.
|
| __reduce__(...)
| __reduce__() -> (cls, state)
|
| __repr__(self, /)
| Return repr(self).
|
| __rsub__(self, value, /)
| Return value-self.
|
| __str__(self, /)
| Return str(self).
|
| __sub__(self, value, /)
| Return self-value.
|
| ctime(...)
| Return ctime() style string.
|
| isocalendar(...)
| Return a named tuple containing ISO year, week number, and weekday.
|
| isoformat(...)
| Return string in ISO 8601 format, YYYY-MM-DD.
|
| isoweekday(...)
| Return the day of the week represented by the date.
| Monday == 1 ... Sunday == 7
|
| replace(...)
| Return date with new specified fields.
|
| strftime(...)
| format -> strftime() style string.
|
| timetuple(...)
| Return time tuple, compatible with time.localtime().
|
| toordinal(...)
| Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
|
| weekday(...)
| Return the day of the week represented by the date.
| Monday == 0 ... Sunday == 6
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromisocalendar(...)
| int, int, int -> Construct a date from the ISO year, week number and weekday.
|
| This is the inverse of the date.isocalendar() function
|
| fromisoformat(...)
| str -> Construct a date from a string in ISO 8601 format.
|
| fromordinal(...)
| int -> date corresponding to a proleptic Gregorian ordinal.
|
| fromtimestamp(timestamp, /)
| Create a date from a POSIX timestamp.
|
| The timestamp is a number, e.g. created via time.time(), that is interpreted
| as local time.
|
| today(...)
| Current date or datetime: same as self.__class__.fromtimestamp(time.time()).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| day
|
| month
|
| year
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.date(9999, 12, 31)
|
| min = datetime.date(1, 1, 1)
|
| resolution = datetime.timedelta(days=1)
class datetime(date)
| datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
|
| The year, month and day arguments are required. tzinfo may be None, or an
| instance of a tzinfo subclass. The remaining arguments may be ints.
|
| Method resolution order:
| datetime
| date
| builtins.object
|
| Methods defined here:
|
| __add__(self, value, /)
| Return self+value.
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __radd__(self, value, /)
| Return value+self.
|
| __reduce__(...)
| __reduce__() -> (cls, state)
|
| __reduce_ex__(...)
| __reduce_ex__(proto) -> (cls, state)
|
| __repr__(self, /)
| Return repr(self).
|
| __rsub__(self, value, /)
| Return value-self.
|
| __str__(self, /)
| Return str(self).
|
| __sub__(self, value, /)
| Return self-value.
|
| astimezone(...)
| tz -> convert to local time in new timezone tz
|
| ctime(...)
| Return ctime() style string.
|
| date(...)
| Return date object with same year, month and day.
|
| dst(...)
| Return self.tzinfo.dst(self).
|
| isoformat(...)
| [sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
| sep is used to separate the year from the time, and defaults to 'T'.
| The optional argument timespec specifies the number of additional terms
| of the time to include. Valid options are 'auto', 'hours', 'minutes',
| 'seconds', 'milliseconds' and 'microseconds'.
|
| replace(...)
| Return datetime with new specified fields.
|
| time(...)
| Return time object with same time but with tzinfo=None.
|
| timestamp(...)
| Return POSIX timestamp as float.
|
| timetuple(...)
| Return time tuple, compatible with time.localtime().
|
| timetz(...)
| Return time object with same time and tzinfo.
|
| tzname(...)
| Return self.tzinfo.tzname(self).
|
| utcoffset(...)
| Return self.tzinfo.utcoffset(self).
|
| utctimetuple(...)
| Return UTC time tuple, compatible with time.localtime().
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| combine(...)
| date, time -> datetime with same date and time fields
|
| fromisoformat(...)
| string -> datetime from a string in most ISO 8601 formats
|
| fromtimestamp(...)
| timestamp[, tz] -> tz's local time from POSIX timestamp.
|
| now(tz=None)
| Returns new datetime object representing current time local to tz.
|
| tz
| Timezone object.
|
| If no tz is specified, uses local timezone.
|
| strptime(...)
| string, format -> new datetime parsed from a string (like time.strptime()).
|
| utcfromtimestamp(...)
| Construct a naive UTC datetime from a POSIX timestamp.
|
| utcnow(...)
| Return a new datetime representing UTC day and time.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| fold
|
| hour
|
| microsecond
|
| minute
|
| second
|
| tzinfo
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)
|
| min = datetime.datetime(1, 1, 1, 0, 0)
|
| resolution = datetime.timedelta(microseconds=1)
|
| ----------------------------------------------------------------------
| Methods inherited from date:
|
| __format__(...)
| Formats self with strftime.
|
| isocalendar(...)
| Return a named tuple containing ISO year, week number, and weekday.
|
| isoweekday(...)
| Return the day of the week represented by the date.
| Monday == 1 ... Sunday == 7
|
| strftime(...)
| format -> strftime() style string.
|
| toordinal(...)
| Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
|
| weekday(...)
| Return the day of the week represented by the date.
| Monday == 0 ... Sunday == 6
|
| ----------------------------------------------------------------------
| Class methods inherited from date:
|
| fromisocalendar(...)
| int, int, int -> Construct a date from the ISO year, week number and weekday.
|
| This is the inverse of the date.isocalendar() function
|
| fromordinal(...)
| int -> date corresponding to a proleptic Gregorian ordinal.
|
| today(...)
| Current date or datetime: same as self.__class__.fromtimestamp(time.time()).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from date:
|
| day
|
| month
|
| year
class time(builtins.object)
| time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object
|
| All arguments are optional. tzinfo may be None, or an instance of
| a tzinfo subclass. The remaining arguments may be ints.
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __format__(...)
| Formats self with strftime.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(...)
| __reduce__() -> (cls, state)
|
| __reduce_ex__(...)
| __reduce_ex__(proto) -> (cls, state)
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| dst(...)
| Return self.tzinfo.dst(self).
|
| isoformat(...)
| Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
|
| The optional argument timespec specifies the number of additional terms
| of the time to include. Valid options are 'auto', 'hours', 'minutes',
| 'seconds', 'milliseconds' and 'microseconds'.
|
| replace(...)
| Return time with new specified fields.
|
| strftime(...)
| format -> strftime() style string.
|
| tzname(...)
| Return self.tzinfo.tzname(self).
|
| utcoffset(...)
| Return self.tzinfo.utcoffset(self).
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromisoformat(...)
| string -> time from a string in ISO 8601 format
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| fold
|
| hour
|
| microsecond
|
| minute
|
| second
|
| tzinfo
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.time(23, 59, 59, 999999)
|
| min = datetime.time(0, 0)
|
| resolution = datetime.timedelta(microseconds=1)
class timedelta(builtins.object)
| Difference between two datetime values.
|
| timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)
|
| All arguments are optional and default to 0.
| Arguments may be integers or floats, and may be positive or negative.
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __bool__(self, /)
| True if self else False
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __pos__(self, /)
| +self
|
| __radd__(self, value, /)
| Return value+self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __reduce__(...)
| __reduce__() -> (cls, state)
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __str__(self, /)
| Return str(self).
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| total_seconds(...)
| Total seconds in the duration.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| days
| Number of days.
|
| microseconds
| Number of microseconds (>= 0 and less than 1 second).
|
| seconds
| Number of seconds (>= 0 and less than 1 day).
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.timedelta(days=999999999, seconds=86399, microseconds=9...
|
| min = datetime.timedelta(days=-999999999)
|
| resolution = datetime.timedelta(microseconds=1)
class timezone(tzinfo)
| Fixed offset from UTC implementation of tzinfo.
|
| Method resolution order:
| timezone
| tzinfo
| builtins.object
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getinitargs__(...)
| pickle support
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| dst(...)
| Return None.
|
| fromutc(...)
| datetime in UTC -> datetime in local time.
|
| tzname(...)
| If name is specified when timezone is created, returns the name. Otherwise returns offset as 'UTC(+|-)HH:MM'.
|
| utcoffset(...)
| Return fixed offset.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.timezone(datetime.timedelta(seconds=86340))
|
| min = datetime.timezone(datetime.timedelta(days=-1, seconds=60))
|
| utc = datetime.timezone.utc
|
| ----------------------------------------------------------------------
| Methods inherited from tzinfo:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| -> (cls, state)
class tzinfo(builtins.object)
| Abstract base class for time zone info objects.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| -> (cls, state)
|
| dst(...)
| datetime -> DST offset as timedelta positive east of UTC.
|
| fromutc(...)
| datetime in UTC -> datetime in local time.
|
| tzname(...)
| datetime -> string name of time zone.
|
| utcoffset(...)
| datetime -> timedelta showing offset from UTC, negative values indicating West of UTC
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
DATA
MAXYEAR = 9999
MINYEAR = 1
UTC = datetime.timezone.utc
__all__ = ('date', 'datetime', 'time', 'timedelta', 'timezone', 'tzinf...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\datetime.py
peewee.datetime_adapter
Python Library Documentation: function datetime_adapter in module peewee
datetime_adapter(d)
# We need to register datetime adapters as these are deprecated.
peewee.decimal
Python Library Documentation: module decimal
NAME
decimal - Decimal fixed-point and floating-point arithmetic.
MODULE REFERENCE
https://docs.python.org/3.12/library/decimal.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This is an implementation of decimal floating-point arithmetic based on
the General Decimal Arithmetic Specification:
http://speleotrove.com/decimal/decarith.html
and IEEE standard 854-1987:
http://en.wikipedia.org/wiki/IEEE_854-1987
Decimal floating point has finite precision with arbitrarily large bounds.
The purpose of this module is to support arithmetic using familiar
"schoolhouse" rules and to avoid some of the tricky representation
issues associated with binary floating point. The package is especially
useful for financial applications or for contexts where users have
expectations that are at odds with binary floating point (for instance,
in binary floating point, 1.00 % 0.1 gives 0.09999999999999995 instead
of 0.0; Decimal('1.00') % Decimal('0.1') returns the expected
Decimal('0.00')).
Here are some examples of using the decimal module:
>>> from decimal import *
>>> setcontext(ExtendedContext)
>>> Decimal(0)
Decimal('0')
>>> Decimal('1')
Decimal('1')
>>> Decimal('-.0123')
Decimal('-0.0123')
>>> Decimal(123456)
Decimal('123456')
>>> Decimal('123.45e12345678')
Decimal('1.2345E+12345680')
>>> Decimal('1.33') + Decimal('1.27')
Decimal('2.60')
>>> Decimal('12.34') + Decimal('3.87') - Decimal('18.41')
Decimal('-2.20')
>>> dig = Decimal(1)
>>> print(dig / Decimal(3))
0.333333333
>>> getcontext().prec = 18
>>> print(dig / Decimal(3))
0.333333333333333333
>>> print(dig.sqrt())
1
>>> print(Decimal(3).sqrt())
1.73205080756887729
>>> print(Decimal(3) ** 123)
4.85192780976896427E+58
>>> inf = Decimal(1) / Decimal(0)
>>> print(inf)
Infinity
>>> neginf = Decimal(-1) / Decimal(0)
>>> print(neginf)
-Infinity
>>> print(neginf + inf)
NaN
>>> print(neginf * inf)
-Infinity
>>> print(dig / 0)
Infinity
>>> getcontext().traps[DivisionByZero] = 1
>>> print(dig / 0)
Traceback (most recent call last):
...
...
...
decimal.DivisionByZero: x / 0
>>> c = Context()
>>> c.traps[InvalidOperation] = 0
>>> print(c.flags[InvalidOperation])
0
>>> c.divide(Decimal(0), Decimal(0))
Decimal('NaN')
>>> c.traps[InvalidOperation] = 1
>>> print(c.flags[InvalidOperation])
1
>>> c.flags[InvalidOperation] = 0
>>> print(c.flags[InvalidOperation])
0
>>> print(c.divide(Decimal(0), Decimal(0)))
Traceback (most recent call last):
...
...
...
decimal.InvalidOperation: 0 / 0
>>> print(c.flags[InvalidOperation])
1
>>> c.flags[InvalidOperation] = 0
>>> c.traps[InvalidOperation] = 0
>>> print(c.divide(Decimal(0), Decimal(0)))
NaN
>>> print(c.flags[InvalidOperation])
1
>>>
CLASSES
builtins.ArithmeticError(builtins.Exception)
DecimalException
Clamped
DivisionByZero(DecimalException, builtins.ZeroDivisionError)
FloatOperation(DecimalException, builtins.TypeError)
Inexact
Overflow(Inexact, Rounded)
Underflow(Inexact, Rounded, Subnormal)
InvalidOperation
ConversionSyntax
DivisionImpossible
DivisionUndefined(InvalidOperation, builtins.ZeroDivisionError)
InvalidContext
Rounded
Subnormal
builtins.object
Context
Decimal
builtins.tuple(builtins.object)
DecimalTuple
class Clamped(DecimalException)
| Method resolution order:
| Clamped
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Context(builtins.object)
| Context(prec=None, rounding=None, Emin=None, Emax=None, capitals=None, clamp=None, flags=None, traps=None)
|
| The context affects almost all operations and controls rounding,
| Over/Underflow, raising of exceptions and much more. A new context
| can be constructed as follows:
|
| >>> c = Context(prec=28, Emin=-425000000, Emax=425000000,
| ... rounding=ROUND_HALF_EVEN, capitals=1, clamp=1,
| ... traps=[InvalidOperation, DivisionByZero, Overflow],
| ... flags=[])
| >>>
|
| Methods defined here:
|
| Etiny(self, /)
| Return a value equal to Emin - prec + 1, which is the minimum exponent value
| for subnormal results. When underflow occurs, the exponent is set to Etiny.
|
| Etop(self, /)
| Return a value equal to Emax - prec + 1. This is the maximum exponent
| if the _clamp field of the context is set to 1 (IEEE clamp mode). Etop()
| must not be negative.
|
| __copy__(...)
|
| __delattr__(self, name, /)
| Implement delattr(self, name).
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setattr__(self, name, value, /)
| Implement setattr(self, name, value).
|
| abs(self, x, /)
| Return the absolute value of x.
|
| add(self, x, y, /)
| Return the sum of x and y.
|
| canonical(self, x, /)
| Return a new instance of x.
|
| clear_flags(self, /)
| Reset all flags to False.
|
| clear_traps(self, /)
| Set all traps to False.
|
| compare(self, x, y, /)
| Compare x and y numerically.
|
| compare_signal(self, x, y, /)
| Compare x and y numerically. All NaNs signal.
|
| compare_total(self, x, y, /)
| Compare x and y using their abstract representation.
|
| compare_total_mag(self, x, y, /)
| Compare x and y using their abstract representation, ignoring sign.
|
| copy(self, /)
| Return a duplicate of the context with all flags cleared.
|
| copy_abs(self, x, /)
| Return a copy of x with the sign set to 0.
|
| copy_decimal(self, x, /)
| Return a copy of Decimal x.
|
| copy_negate(self, x, /)
| Return a copy of x with the sign inverted.
|
| copy_sign(self, x, y, /)
| Copy the sign from y to x.
|
| create_decimal(self, num='0', /)
| Create a new Decimal instance from num, using self as the context. Unlike the
| Decimal constructor, this function observes the context limits.
|
| create_decimal_from_float(self, f, /)
| Create a new Decimal instance from float f. Unlike the Decimal.from_float()
| class method, this function observes the context limits.
|
| divide(self, x, y, /)
| Return x divided by y.
|
| divide_int(self, x, y, /)
| Return x divided by y, truncated to an integer.
|
| divmod(self, x, y, /)
| Return quotient and remainder of the division x / y.
|
| exp(self, x, /)
| Return e ** x.
|
| fma(self, x, y, z, /)
| Return x multiplied by y, plus z.
|
| is_canonical(self, x, /)
| Return True if x is canonical, False otherwise.
|
| is_finite(self, x, /)
| Return True if x is finite, False otherwise.
|
| is_infinite(self, x, /)
| Return True if x is infinite, False otherwise.
|
| is_nan(self, x, /)
| Return True if x is a qNaN or sNaN, False otherwise.
|
| is_normal(self, x, /)
| Return True if x is a normal number, False otherwise.
|
| is_qnan(self, x, /)
| Return True if x is a quiet NaN, False otherwise.
|
| is_signed(self, x, /)
| Return True if x is negative, False otherwise.
|
| is_snan(self, x, /)
| Return True if x is a signaling NaN, False otherwise.
|
| is_subnormal(self, x, /)
| Return True if x is subnormal, False otherwise.
|
| is_zero(self, x, /)
| Return True if x is a zero, False otherwise.
|
| ln(self, x, /)
| Return the natural (base e) logarithm of x.
|
| log10(self, x, /)
| Return the base 10 logarithm of x.
|
| logb(self, x, /)
| Return the exponent of the magnitude of the operand's MSD.
|
| logical_and(self, x, y, /)
| Digit-wise and of x and y.
|
| logical_invert(self, x, /)
| Invert all digits of x.
|
| logical_or(self, x, y, /)
| Digit-wise or of x and y.
|
| logical_xor(self, x, y, /)
| Digit-wise xor of x and y.
|
| max(self, x, y, /)
| Compare the values numerically and return the maximum.
|
| max_mag(self, x, y, /)
| Compare the values numerically with their sign ignored.
|
| min(self, x, y, /)
| Compare the values numerically and return the minimum.
|
| min_mag(self, x, y, /)
| Compare the values numerically with their sign ignored.
|
| minus(self, x, /)
| Minus corresponds to the unary prefix minus operator in Python, but applies
| the context to the result.
|
| multiply(self, x, y, /)
| Return the product of x and y.
|
| next_minus(self, x, /)
| Return the largest representable number smaller than x.
|
| next_plus(self, x, /)
| Return the smallest representable number larger than x.
|
| next_toward(self, x, y, /)
| Return the number closest to x, in the direction towards y.
|
| normalize(self, x, /)
| Reduce x to its simplest form. Alias for reduce(x).
|
| number_class(self, x, /)
| Return an indication of the class of x.
|
| plus(self, x, /)
| Plus corresponds to the unary prefix plus operator in Python, but applies
| the context to the result.
|
| power(self, /, a, b, modulo=None)
| Compute a**b. If 'a' is negative, then 'b' must be integral. The result
| will be inexact unless 'a' is integral and the result is finite and can
| be expressed exactly in 'precision' digits. In the Python version the
| result is always correctly rounded, in the C version the result is almost
| always correctly rounded.
|
| If modulo is given, compute (a**b) % modulo. The following restrictions
| hold:
|
| * all three arguments must be integral
| * 'b' must be nonnegative
| * at least one of 'a' or 'b' must be nonzero
| * modulo must be nonzero and less than 10**prec in absolute value
|
| quantize(self, x, y, /)
| Return a value equal to x (rounded), having the exponent of y.
|
| radix(self, /)
| Return 10.
|
| remainder(self, x, y, /)
| Return the remainder from integer division. The sign of the result,
| if non-zero, is the same as that of the original dividend.
|
| remainder_near(self, x, y, /)
| Return x - y * n, where n is the integer nearest the exact value of x / y
| (if the result is 0 then its sign will be the sign of x).
|
| rotate(self, x, y, /)
| Return a copy of x, rotated by y places.
|
| same_quantum(self, x, y, /)
| Return True if the two operands have the same exponent.
|
| scaleb(self, x, y, /)
| Return the first operand after adding the second value to its exp.
|
| shift(self, x, y, /)
| Return a copy of x, shifted by y places.
|
| sqrt(self, x, /)
| Square root of a non-negative number to context precision.
|
| subtract(self, x, y, /)
| Return the difference between x and y.
|
| to_eng_string(self, x, /)
| Convert a number to a string, using engineering notation.
|
| to_integral(self, x, /)
| Identical to to_integral_value(x).
|
| to_integral_exact(self, x, /)
| Round to an integer. Signal if the result is rounded or inexact.
|
| to_integral_value(self, x, /)
| Round to an integer.
|
| to_sci_string(self, x, /)
| Convert a number to a string using scientific notation.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| Emax
|
| Emin
|
| capitals
|
| clamp
|
| prec
|
| rounding
class ConversionSyntax(InvalidOperation)
| Method resolution order:
| ConversionSyntax
| InvalidOperation
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Decimal(builtins.object)
| Decimal(value='0', context=None)
|
| Construct a new Decimal object. 'value' can be an integer, string, tuple,
| or another Decimal object. If no value is given, return Decimal('0'). The
| context does not affect the conversion and is only passed to determine if
| the InvalidOperation trap is active.
|
| Methods defined here:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
|
| __complex__(...)
|
| __copy__(...)
|
| __deepcopy__(...)
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __format__(...)
| Default object formatter.
|
| Return str(self) if format_spec is empty. Raise TypeError otherwise.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __int__(self, /)
| int(self)
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __round__(...)
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __sizeof__(...)
| Size of object in memory, in bytes.
|
| __str__(self, /)
| Return str(self).
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
|
| adjusted(self, /)
| Return the adjusted exponent of the number. Defined as exp + digits - 1.
|
| as_integer_ratio(self, /)
| Decimal.as_integer_ratio() -> (int, int)
|
| Return a pair of integers, whose ratio is exactly equal to the original
| Decimal and with a positive denominator. The ratio is in lowest terms.
| Raise OverflowError on infinities and a ValueError on NaNs.
|
| as_tuple(self, /)
| Return a tuple representation of the number.
|
| canonical(self, /)
| Return the canonical encoding of the argument. Currently, the encoding
| of a Decimal instance is always canonical, so this operation returns its
| argument unchanged.
|
| compare(self, /, other, context=None)
| Compare self to other. Return a decimal value:
|
| a or b is a NaN ==> Decimal('NaN')
| a < b ==> Decimal('-1')
| a == b ==> Decimal('0')
| a > b ==> Decimal('1')
|
| compare_signal(self, /, other, context=None)
| Identical to compare, except that all NaNs signal.
|
| compare_total(self, /, other, context=None)
| Compare two operands using their abstract representation rather than
| their numerical value. Similar to the compare() method, but the result
| gives a total ordering on Decimal instances. Two Decimal instances with
| the same numeric value but different representations compare unequal
| in this ordering:
|
| >>> Decimal('12.0').compare_total(Decimal('12'))
| Decimal('-1')
|
| Quiet and signaling NaNs are also included in the total ordering. The result
| of this function is Decimal('0') if both operands have the same representation,
| Decimal('-1') if the first operand is lower in the total order than the second,
| and Decimal('1') if the first operand is higher in the total order than the
| second operand. See the specification for details of the total order.
|
| This operation is unaffected by context and is quiet: no flags are changed
| and no rounding is performed. As an exception, the C version may raise
| InvalidOperation if the second operand cannot be converted exactly.
|
| compare_total_mag(self, /, other, context=None)
| Compare two operands using their abstract representation rather than their
| value as in compare_total(), but ignoring the sign of each operand.
|
| x.compare_total_mag(y) is equivalent to x.copy_abs().compare_total(y.copy_abs()).
|
| This operation is unaffected by context and is quiet: no flags are changed
| and no rounding is performed. As an exception, the C version may raise
| InvalidOperation if the second operand cannot be converted exactly.
|
| conjugate(self, /)
| Return self.
|
| copy_abs(self, /)
| Return the absolute value of the argument. This operation is unaffected by
| context and is quiet: no flags are changed and no rounding is performed.
|
| copy_negate(self, /)
| Return the negation of the argument. This operation is unaffected by context
| and is quiet: no flags are changed and no rounding is performed.
|
| copy_sign(self, /, other, context=None)
| Return a copy of the first operand with the sign set to be the same as the
| sign of the second operand. For example:
|
| >>> Decimal('2.3').copy_sign(Decimal('-1.5'))
| Decimal('-2.3')
|
| This operation is unaffected by context and is quiet: no flags are changed
| and no rounding is performed. As an exception, the C version may raise
| InvalidOperation if the second operand cannot be converted exactly.
|
| exp(self, /, context=None)
| Return the value of the (natural) exponential function e**x at the given
| number. The function always uses the ROUND_HALF_EVEN mode and the result
| is correctly rounded.
|
| fma(self, /, other, third, context=None)
| Fused multiply-add. Return self*other+third with no rounding of the
| intermediate product self*other.
|
| >>> Decimal(2).fma(3, 5)
| Decimal('11')
|
| is_canonical(self, /)
| Return True if the argument is canonical and False otherwise. Currently,
| a Decimal instance is always canonical, so this operation always returns
| True.
|
| is_finite(self, /)
| Return True if the argument is a finite number, and False if the argument
| is infinite or a NaN.
|
| is_infinite(self, /)
| Return True if the argument is either positive or negative infinity and
| False otherwise.
|
| is_nan(self, /)
| Return True if the argument is a (quiet or signaling) NaN and False
| otherwise.
|
| is_normal(self, /, context=None)
| Return True if the argument is a normal finite non-zero number with an
| adjusted exponent greater than or equal to Emin. Return False if the
| argument is zero, subnormal, infinite or a NaN.
|
| is_qnan(self, /)
| Return True if the argument is a quiet NaN, and False otherwise.
|
| is_signed(self, /)
| Return True if the argument has a negative sign and False otherwise.
| Note that both zeros and NaNs can carry signs.
|
| is_snan(self, /)
| Return True if the argument is a signaling NaN and False otherwise.
|
| is_subnormal(self, /, context=None)
| Return True if the argument is subnormal, and False otherwise. A number is
| subnormal if it is non-zero, finite, and has an adjusted exponent less
| than Emin.
|
| is_zero(self, /)
| Return True if the argument is a (positive or negative) zero and False
| otherwise.
|
| ln(self, /, context=None)
| Return the natural (base e) logarithm of the operand. The function always
| uses the ROUND_HALF_EVEN mode and the result is correctly rounded.
|
| log10(self, /, context=None)
| Return the base ten logarithm of the operand. The function always uses the
| ROUND_HALF_EVEN mode and the result is correctly rounded.
|
| logb(self, /, context=None)
| For a non-zero number, return the adjusted exponent of the operand as a
| Decimal instance. If the operand is a zero, then Decimal('-Infinity') is
| returned and the DivisionByZero condition is raised. If the operand is
| an infinity then Decimal('Infinity') is returned.
|
| logical_and(self, /, other, context=None)
| Return the digit-wise 'and' of the two (logical) operands.
|
| logical_invert(self, /, context=None)
| Return the digit-wise inversion of the (logical) operand.
|
| logical_or(self, /, other, context=None)
| Return the digit-wise 'or' of the two (logical) operands.
|
| logical_xor(self, /, other, context=None)
| Return the digit-wise 'exclusive or' of the two (logical) operands.
|
| max(self, /, other, context=None)
| Maximum of self and other. If one operand is a quiet NaN and the other is
| numeric, the numeric operand is returned.
|
| max_mag(self, /, other, context=None)
| Similar to the max() method, but the comparison is done using the absolute
| values of the operands.
|
| min(self, /, other, context=None)
| Minimum of self and other. If one operand is a quiet NaN and the other is
| numeric, the numeric operand is returned.
|
| min_mag(self, /, other, context=None)
| Similar to the min() method, but the comparison is done using the absolute
| values of the operands.
|
| next_minus(self, /, context=None)
| Return the largest number representable in the given context (or in the
| current default context if no context is given) that is smaller than the
| given operand.
|
| next_plus(self, /, context=None)
| Return the smallest number representable in the given context (or in the
| current default context if no context is given) that is larger than the
| given operand.
|
| next_toward(self, /, other, context=None)
| If the two operands are unequal, return the number closest to the first
| operand in the direction of the second operand. If both operands are
| numerically equal, return a copy of the first operand with the sign set
| to be the same as the sign of the second operand.
|
| normalize(self, /, context=None)
| Normalize the number by stripping the rightmost trailing zeros and
| converting any result equal to Decimal('0') to Decimal('0e0'). Used
| for producing canonical values for members of an equivalence class.
| For example, Decimal('32.100') and Decimal('0.321000e+2') both normalize
| to the equivalent value Decimal('32.1').
|
| number_class(self, /, context=None)
| Return a string describing the class of the operand. The returned value
| is one of the following ten strings:
|
| * '-Infinity', indicating that the operand is negative infinity.
| * '-Normal', indicating that the operand is a negative normal number.
| * '-Subnormal', indicating that the operand is negative and subnormal.
| * '-Zero', indicating that the operand is a negative zero.
| * '+Zero', indicating that the operand is a positive zero.
| * '+Subnormal', indicating that the operand is positive and subnormal.
| * '+Normal', indicating that the operand is a positive normal number.
| * '+Infinity', indicating that the operand is positive infinity.
| * 'NaN', indicating that the operand is a quiet NaN (Not a Number).
| * 'sNaN', indicating that the operand is a signaling NaN.
|
| quantize(self, /, exp, rounding=None, context=None)
| Return a value equal to the first operand after rounding and having the
| exponent of the second operand.
|
| >>> Decimal('1.41421356').quantize(Decimal('1.000'))
| Decimal('1.414')
|
| Unlike other operations, if the length of the coefficient after the quantize
| operation would be greater than precision, then an InvalidOperation is signaled.
| This guarantees that, unless there is an error condition, the quantized exponent
| is always equal to that of the right-hand operand.
|
| Also unlike other operations, quantize never signals Underflow, even if the
| result is subnormal and inexact.
|
| If the exponent of the second operand is larger than that of the first, then
| rounding may be necessary. In this case, the rounding mode is determined by the
| rounding argument if given, else by the given context argument; if neither
| argument is given, the rounding mode of the current thread's context is used.
|
| radix(self, /)
| Return Decimal(10), the radix (base) in which the Decimal class does
| all its arithmetic. Included for compatibility with the specification.
|
| remainder_near(self, /, other, context=None)
| Return the remainder from dividing self by other. This differs from
| self % other in that the sign of the remainder is chosen so as to minimize
| its absolute value. More precisely, the return value is self - n * other
| where n is the integer nearest to the exact value of self / other, and
| if two integers are equally near then the even one is chosen.
|
| If the result is zero then its sign will be the sign of self.
|
| rotate(self, /, other, context=None)
| Return the result of rotating the digits of the first operand by an amount
| specified by the second operand. The second operand must be an integer in
| the range -precision through precision. The absolute value of the second
| operand gives the number of places to rotate. If the second operand is
| positive then rotation is to the left; otherwise rotation is to the right.
| The coefficient of the first operand is padded on the left with zeros to
| length precision if necessary. The sign and exponent of the first operand are
| unchanged.
|
| same_quantum(self, /, other, context=None)
| Test whether self and other have the same exponent or whether both are NaN.
|
| This operation is unaffected by context and is quiet: no flags are changed
| and no rounding is performed. As an exception, the C version may raise
| InvalidOperation if the second operand cannot be converted exactly.
|
| scaleb(self, /, other, context=None)
| Return the first operand with the exponent adjusted the second. Equivalently,
| return the first operand multiplied by 10**other. The second operand must be
| an integer.
|
| shift(self, /, other, context=None)
| Return the result of shifting the digits of the first operand by an amount
| specified by the second operand. The second operand must be an integer in
| the range -precision through precision. The absolute value of the second
| operand gives the number of places to shift. If the second operand is
| positive, then the shift is to the left; otherwise the shift is to the
| right. Digits shifted into the coefficient are zeros. The sign and exponent
| of the first operand are unchanged.
|
| sqrt(self, /, context=None)
| Return the square root of the argument to full precision. The result is
| correctly rounded using the ROUND_HALF_EVEN rounding mode.
|
| to_eng_string(self, /, context=None)
| Convert to an engineering-type string. Engineering notation has an exponent
| which is a multiple of 3, so there are up to 3 digits left of the decimal
| place. For example, Decimal('123E+1') is converted to Decimal('1.23E+3').
|
| The value of context.capitals determines whether the exponent sign is lower
| or upper case. Otherwise, the context does not affect the operation.
|
| to_integral(self, /, rounding=None, context=None)
| Identical to the to_integral_value() method. The to_integral() name has been
| kept for compatibility with older versions.
|
| to_integral_exact(self, /, rounding=None, context=None)
| Round to the nearest integer, signaling Inexact or Rounded as appropriate if
| rounding occurs. The rounding mode is determined by the rounding parameter
| if given, else by the given context. If neither parameter is given, then the
| rounding mode of the current default context is used.
|
| to_integral_value(self, /, rounding=None, context=None)
| Round to the nearest integer without signaling Inexact or Rounded. The
| rounding mode is determined by the rounding parameter if given, else by
| the given context. If neither parameter is given, then the rounding mode
| of the current default context is used.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| from_float(f, /)
| Class method that converts a float to a decimal number, exactly.
| Since 0.1 is not exactly representable in binary floating point,
| Decimal.from_float(0.1) is not the same as Decimal('0.1').
|
| >>> Decimal.from_float(0.1)
| Decimal('0.1000000000000000055511151231257827021181583404541015625')
| >>> Decimal.from_float(float('nan'))
| Decimal('NaN')
| >>> Decimal.from_float(float('inf'))
| Decimal('Infinity')
| >>> Decimal.from_float(float('-inf'))
| Decimal('-Infinity')
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| imag
|
| real
class DecimalException(builtins.ArithmeticError)
| Method resolution order:
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DecimalTuple(builtins.tuple)
| DecimalTuple(sign, digits, exponent)
|
| DecimalTuple(sign, digits, exponent)
|
| Method resolution order:
| DecimalTuple
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __getnewargs__(self) from collections.DecimalTuple
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections.DecimalTuple
| Return a nicely formatted representation string
|
| _asdict(self) from collections.DecimalTuple
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections.DecimalTuple
| Return a new DecimalTuple object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| _make(iterable) from collections.DecimalTuple
| Make a new DecimalTuple object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(_cls, sign, digits, exponent) from namedtuple_DecimalTuple.DecimalTuple
| Create new instance of DecimalTuple(sign, digits, exponent)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| sign
| Alias for field number 0
|
| digits
| Alias for field number 1
|
| exponent
| Alias for field number 2
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('sign', 'digits', 'exponent')
|
| _field_defaults = {}
|
| _fields = ('sign', 'digits', 'exponent')
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
class DivisionByZero(DecimalException, builtins.ZeroDivisionError)
| Method resolution order:
| DivisionByZero
| DecimalException
| builtins.ZeroDivisionError
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ZeroDivisionError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ZeroDivisionError:
|
| __new__(*args, **kwargs) class method of builtins.ZeroDivisionError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DivisionImpossible(InvalidOperation)
| Method resolution order:
| DivisionImpossible
| InvalidOperation
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DivisionUndefined(InvalidOperation, builtins.ZeroDivisionError)
| Method resolution order:
| DivisionUndefined
| InvalidOperation
| DecimalException
| builtins.ZeroDivisionError
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ZeroDivisionError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ZeroDivisionError:
|
| __new__(*args, **kwargs) class method of builtins.ZeroDivisionError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class FloatOperation(DecimalException, builtins.TypeError)
| Method resolution order:
| FloatOperation
| DecimalException
| builtins.ArithmeticError
| builtins.TypeError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Inexact(DecimalException)
| Method resolution order:
| Inexact
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InvalidContext(InvalidOperation)
| Method resolution order:
| InvalidContext
| InvalidOperation
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InvalidOperation(DecimalException)
| Method resolution order:
| InvalidOperation
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Overflow(Inexact, Rounded)
| Method resolution order:
| Overflow
| Inexact
| Rounded
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Rounded(DecimalException)
| Method resolution order:
| Rounded
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Subnormal(DecimalException)
| Method resolution order:
| Subnormal
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Underflow(Inexact, Rounded, Subnormal)
| Method resolution order:
| Underflow
| Inexact
| Rounded
| Subnormal
| DecimalException
| builtins.ArithmeticError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DecimalException:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.ArithmeticError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ArithmeticError:
|
| __new__(*args, **kwargs) class method of builtins.ArithmeticError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
getcontext()
Get the current default context.
localcontext(ctx=None, **kwargs)
Return a context manager that will set the default context to a copy of ctx
on entry to the with-statement and restore the previous default context when
exiting the with-statement. If no context is specified, a copy of the current
default context is used.
setcontext(context, /)
Set a new default context.
DATA
BasicContext = Context(prec=9, rounding=ROUND_HALF_UP, Emin=-99...dOpe...
DefaultContext = Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=...ap...
ExtendedContext = Context(prec=9, rounding=ROUND_HALF_EVEN, Emin=-...=...
HAVE_CONTEXTVAR = True
HAVE_THREADS = True
MAX_EMAX = 999999999999999999
MAX_PREC = 999999999999999999
MIN_EMIN = -999999999999999999
MIN_ETINY = -1999999999999999997
ROUND_05UP = 'ROUND_05UP'
ROUND_CEILING = 'ROUND_CEILING'
ROUND_DOWN = 'ROUND_DOWN'
ROUND_FLOOR = 'ROUND_FLOOR'
ROUND_HALF_DOWN = 'ROUND_HALF_DOWN'
ROUND_HALF_EVEN = 'ROUND_HALF_EVEN'
ROUND_HALF_UP = 'ROUND_HALF_UP'
ROUND_UP = 'ROUND_UP'
__libmpdec_version__ = '2.5.1'
VERSION
1.70
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\decimal.py
peewee.deepcopy
Python Library Documentation: function deepcopy in module copy
deepcopy(x, memo=None, _nil=[])
Deep copy operation on arbitrary Python objects.
See the module's __doc__ string for more info.
peewee.ensure_entity
Python Library Documentation: function ensure_entity in module peewee ensure_entity(value)
peewee.ensure_tuple
Python Library Documentation: function ensure_tuple in module peewee ensure_tuple(value)
peewee.fn
Python Library Documentation: Function in module peewee decorator(*args, **kwargs)
peewee.format_date_time
Python Library Documentation: function format_date_time in module peewee format_date_time(value, formats, post_process=None)
peewee.hashlib
Python Library Documentation: module hashlib
NAME
hashlib - hashlib module - A common interface to many hash functions.
MODULE REFERENCE
https://docs.python.org/3.12/library/hashlib.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
new(name, data=b'', **kwargs) - returns a new hash object implementing the
given hash function; initializing the hash
using the given binary data.
Named constructor functions are also available, these are faster
than using new(name):
md5(), sha1(), sha224(), sha256(), sha384(), sha512(), blake2b(), blake2s(),
sha3_224, sha3_256, sha3_384, sha3_512, shake_128, and shake_256.
More algorithms may be available on your platform but the above are guaranteed
to exist. See the algorithms_guaranteed and algorithms_available attributes
to find out what algorithm names can be passed to new().
NOTE: If you want the adler32 or crc32 hash functions they are available in
the zlib module.
Choose your hash function wisely. Some have known collision weaknesses.
sha384 and sha512 will be slow on 32 bit platforms.
Hash objects have these methods:
- update(data): Update the hash object with the bytes in data. Repeated calls
are equivalent to a single call with the concatenation of all
the arguments.
- digest(): Return the digest of the bytes passed to the update() method
so far as a bytes object.
- hexdigest(): Like digest() except the digest is returned as a string
of double length, containing only hexadecimal digits.
- copy(): Return a copy (clone) of the hash object. This can be used to
efficiently compute the digests of datas that share a common
initial substring.
For example, to obtain the digest of the byte string 'Nobody inspects the
spammish repetition':
>>> import hashlib
>>> m = hashlib.md5()
>>> m.update(b"Nobody inspects")
>>> m.update(b" the spammish repetition")
>>> m.digest()
b'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
More condensed:
>>> hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()
'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'
CLASSES
builtins.object
_blake2.blake2b
_blake2.blake2s
class blake2b(builtins.object)
| blake2b(data=b'', /, *, digest_size=64, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False, usedforsecurity=True)
|
| Return a new BLAKE2b hash object.
|
| Methods defined here:
|
| copy(self, /)
| Return a copy of the hash object.
|
| digest(self, /)
| Return the digest value as a bytes object.
|
| hexdigest(self, /)
| Return the digest value as a string of hexadecimal digits.
|
| update(self, data, /)
| Update this hash object's state with the provided bytes-like object.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| block_size
|
| digest_size
|
| name
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| MAX_DIGEST_SIZE = 64
|
| MAX_KEY_SIZE = 64
|
| PERSON_SIZE = 16
|
| SALT_SIZE = 16
class blake2s(builtins.object)
| blake2s(data=b'', /, *, digest_size=32, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False, usedforsecurity=True)
|
| Return a new BLAKE2s hash object.
|
| Methods defined here:
|
| copy(self, /)
| Return a copy of the hash object.
|
| digest(self, /)
| Return the digest value as a bytes object.
|
| hexdigest(self, /)
| Return the digest value as a string of hexadecimal digits.
|
| update(self, data, /)
| Update this hash object's state with the provided bytes-like object.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| block_size
|
| digest_size
|
| name
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| MAX_DIGEST_SIZE = 32
|
| MAX_KEY_SIZE = 32
|
| PERSON_SIZE = 8
|
| SALT_SIZE = 8
FUNCTIONS
file_digest(fileobj, digest, /, *, _bufsize=262144)
Hash the contents of a file-like object. Returns a digest object.
*fileobj* must be a file-like object opened for reading in binary mode.
It accepts file objects from open(), io.BytesIO(), and SocketIO objects.
The function may bypass Python's I/O and use the file descriptor *fileno*
directly.
*digest* must either be a hash algorithm name as a *str*, a hash
constructor, or a callable that returns a hash object.
md5 = openssl_md5(string=b'', *, usedforsecurity=True)
Returns a md5 hash object; optionally initialized with a string
new = __hash_new(name, data=b'', **kwargs)
new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None)
Password based key derivation function 2 (PKCS #5 v2.0) with HMAC as pseudorandom function.
sha1 = openssl_sha1(string=b'', *, usedforsecurity=True)
Returns a sha1 hash object; optionally initialized with a string
sha224 = openssl_sha224(string=b'', *, usedforsecurity=True)
Returns a sha224 hash object; optionally initialized with a string
sha256 = openssl_sha256(string=b'', *, usedforsecurity=True)
Returns a sha256 hash object; optionally initialized with a string
sha384 = openssl_sha384(string=b'', *, usedforsecurity=True)
Returns a sha384 hash object; optionally initialized with a string
sha3_224 = openssl_sha3_224(string=b'', *, usedforsecurity=True)
Returns a sha3-224 hash object; optionally initialized with a string
sha3_256 = openssl_sha3_256(string=b'', *, usedforsecurity=True)
Returns a sha3-256 hash object; optionally initialized with a string
sha3_384 = openssl_sha3_384(string=b'', *, usedforsecurity=True)
Returns a sha3-384 hash object; optionally initialized with a string
sha3_512 = openssl_sha3_512(string=b'', *, usedforsecurity=True)
Returns a sha3-512 hash object; optionally initialized with a string
sha512 = openssl_sha512(string=b'', *, usedforsecurity=True)
Returns a sha512 hash object; optionally initialized with a string
shake_128 = openssl_shake_128(string=b'', *, usedforsecurity=True)
Returns a shake-128 variable hash object; optionally initialized with a string
shake_256 = openssl_shake_256(string=b'', *, usedforsecurity=True)
Returns a shake-256 variable hash object; optionally initialized with a string
DATA
__all__ = ('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'bla...
algorithms_available = {'blake2b', 'blake2s', 'md5', 'md5-sha1', 'ripe...
algorithms_guaranteed = {'blake2b', 'blake2s', 'md5', 'sha1', 'sha224'...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\hashlib.py
peewee.is_model
Python Library Documentation: function <lambda> in module peewee <lambda> lambda o
peewee.isclass
Python Library Documentation: function isclass in module inspect
isclass(object)
Return true if the object is a class.
peewee.itertools
Python Library Documentation: built-in module itertools
NAME
itertools - Functional tools for creating and using iterators.
DESCRIPTION
Infinite iterators:
count(start=0, step=1) --> start, start+step, start+2*step, ...
cycle(p) --> p0, p1, ... plast, p0, p1, ...
repeat(elem [,n]) --> elem, elem, elem, ... endlessly or up to n times
Iterators terminating on the shortest input sequence:
accumulate(p[, func]) --> p0, p0+p1, p0+p1+p2
batched(p, n) --> [p0, p1, ..., p_n-1], [p_n, p_n+1, ..., p_2n-1], ...
chain(p, q, ...) --> p0, p1, ... plast, q0, q1, ...
chain.from_iterable([p, q, ...]) --> p0, p1, ... plast, q0, q1, ...
compress(data, selectors) --> (d[0] if s[0]), (d[1] if s[1]), ...
dropwhile(predicate, seq) --> seq[n], seq[n+1], starting when predicate fails
groupby(iterable[, keyfunc]) --> sub-iterators grouped by value of keyfunc(v)
filterfalse(predicate, seq) --> elements of seq where predicate(elem) is False
islice(seq, [start,] stop [, step]) --> elements from
seq[start:stop:step]
pairwise(s) --> (s[0],s[1]), (s[1],s[2]), (s[2], s[3]), ...
starmap(fun, seq) --> fun(*seq[0]), fun(*seq[1]), ...
tee(it, n=2) --> (it1, it2 , ... itn) splits one iterator into n
takewhile(predicate, seq) --> seq[0], seq[1], until predicate fails
zip_longest(p, q, ...) --> (p[0], q[0]), (p[1], q[1]), ...
Combinatoric generators:
product(p, q, ... [repeat=1]) --> cartesian product
permutations(p[, r])
combinations(p, r)
combinations_with_replacement(p, r)
CLASSES
builtins.object
accumulate
batched
chain
combinations
combinations_with_replacement
compress
count
cycle
dropwhile
filterfalse
groupby
islice
pairwise
permutations
product
repeat
starmap
takewhile
zip_longest
class accumulate(builtins.object)
| accumulate(iterable, func=None, *, initial=None)
|
| Return series of accumulated sums (or other binary function results).
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class batched(builtins.object)
| batched(iterable, n)
|
| Batch data into tuples of length n. The last batch may be shorter than n.
|
| Loops over the input iterable and accumulates data into tuples
| up to size n. The input is consumed lazily, just enough to
| fill a batch. The result is yielded as soon as a batch is full
| or when the input iterable is exhausted.
|
| >>> for batch in batched('ABCDEFG', 3):
| ... print(batch)
| ...
| ('A', 'B', 'C')
| ('D', 'E', 'F')
| ('G',)
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class chain(builtins.object)
| chain(*iterables) --> chain object
|
| Return a chain object whose .__next__() method returns elements from the
| first iterable until it is exhausted, then elements from the next
| iterable, until all of the iterables are exhausted.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| from_iterable(iterable, /)
| Alternative chain() constructor taking a single iterable argument that evaluates lazily.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class combinations(builtins.object)
| combinations(iterable, r)
|
| Return successive r-length combinations of elements in the iterable.
|
| combinations(range(4), 3) --> (0,1,2), (0,1,3), (0,2,3), (1,2,3)
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| __sizeof__(...)
| Returns size in memory, in bytes.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class combinations_with_replacement(builtins.object)
| combinations_with_replacement(iterable, r)
|
| Return successive r-length combinations of elements in the iterable allowing individual elements to have successive repeats.
|
| combinations_with_replacement('ABC', 2) --> ('A','A'), ('A','B'), ('A','C'), ('B','B'), ('B','C'), ('C','C')
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| __sizeof__(...)
| Returns size in memory, in bytes.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class compress(builtins.object)
| compress(data, selectors)
|
| Return data elements corresponding to true selector elements.
|
| Forms a shorter iterator from selected data elements using the selectors to
| choose the data elements.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class count(builtins.object)
| count(start=0, step=1)
|
| Return a count object whose .__next__() method returns consecutive values.
|
| Equivalent to:
| def count(firstval=0, step=1):
| x = firstval
| while 1:
| yield x
| x += step
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class cycle(builtins.object)
| cycle(iterable, /)
|
| Return elements from the iterable until it is exhausted. Then repeat the sequence indefinitely.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class dropwhile(builtins.object)
| dropwhile(predicate, iterable, /)
|
| Drop items from the iterable while predicate(item) is true.
|
| Afterwards, return every element until the iterable is exhausted.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class filterfalse(builtins.object)
| filterfalse(function, iterable, /)
|
| Return those items of iterable for which function(item) is false.
|
| If function is None, return the items that are false.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class groupby(builtins.object)
| groupby(iterable, key=None)
|
| make an iterator that returns consecutive keys and groups from the iterable
|
| iterable
| Elements to divide into groups according to the key function.
| key
| A function for computing the group category for each element.
| If the key function is not specified or is None, the element itself
| is used for grouping.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class islice(builtins.object)
| islice(iterable, stop) --> islice object
| islice(iterable, start, stop[, step]) --> islice object
|
| Return an iterator whose next() method returns selected values from an
| iterable. If start is specified, will skip all preceding elements;
| otherwise, start defaults to zero. Step defaults to one. If
| specified as another value, step determines how many values are
| skipped between successive calls. Works like a slice() on a list
| but returns an iterator.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class pairwise(builtins.object)
| pairwise(iterable, /)
|
| Return an iterator of overlapping pairs taken from the input iterator.
|
| s -> (s0,s1), (s1,s2), (s2, s3), ...
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class permutations(builtins.object)
| permutations(iterable, r=None)
|
| Return successive r-length permutations of elements in the iterable.
|
| permutations(range(3), 2) --> (0,1), (0,2), (1,0), (1,2), (2,0), (2,1)
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| __sizeof__(...)
| Returns size in memory, in bytes.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class product(builtins.object)
| product(*iterables, repeat=1) --> product object
|
| Cartesian product of input iterables. Equivalent to nested for-loops.
|
| For example, product(A, B) returns the same as: ((x,y) for x in A for y in B).
| The leftmost iterators are in the outermost for-loop, so the output tuples
| cycle in a manner similar to an odometer (with the rightmost element changing
| on every iteration).
|
| To compute the product of an iterable with itself, specify the number
| of repetitions with the optional repeat keyword argument. For example,
| product(A, repeat=4) means the same as product(A, A, A, A).
|
| product('ab', range(3)) --> ('a',0) ('a',1) ('a',2) ('b',0) ('b',1) ('b',2)
| product((0,1), (0,1), (0,1)) --> (0,0,0) (0,0,1) (0,1,0) (0,1,1) (1,0,0) ...
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| __sizeof__(...)
| Returns size in memory, in bytes.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class repeat(builtins.object)
| repeat(object [,times]) -> create an iterator which returns the object
| for the specified number of times. If not specified, returns the object
| endlessly.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __length_hint__(...)
| Private method returning an estimate of len(list(it)).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class starmap(builtins.object)
| starmap(function, iterable, /)
|
| Return an iterator whose values are returned from the function evaluated with an argument tuple taken from the given sequence.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class takewhile(builtins.object)
| takewhile(predicate, iterable, /)
|
| Return successive entries from an iterable as long as the predicate evaluates to true for each entry.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class zip_longest(builtins.object)
| zip_longest(iter1 [,iter2 [...]], [fillvalue=None]) --> zip_longest object
|
| Return a zip_longest object whose .__next__() method returns a tuple where
| the i-th element comes from the i-th iterable argument. The .__next__()
| method continues until the longest iterable in the argument sequence
| is exhausted and then it raises StopIteration. When the shorter iterables
| are exhausted, the fillvalue is substituted in their place. The fillvalue
| defaults to None or can be specified by a keyword argument.
|
| Methods defined here:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Return state information for pickling.
|
| __setstate__(...)
| Set state information for unpickling.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
FUNCTIONS
tee(iterable, n=2, /)
Returns a tuple of n independent iterators.
FILE
(built-in)
peewee.json
Python Library Documentation: package json
NAME
json
MODULE REFERENCE
https://docs.python.org/3.12/library/json.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
JSON (JavaScript Object Notation) <https://json.org> is a subset of
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
interchange format.
:mod:`json` exposes an API familiar to users of the standard library
:mod:`marshal` and :mod:`pickle` modules. It is derived from a
version of the externally maintained simplejson library.
Encoding basic Python object hierarchies::
>>> import json
>>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])
'["foo", {"bar": ["baz", null, 1.0, 2]}]'
>>> print(json.dumps("\"foo\bar"))
"\"foo\bar"
>>> print(json.dumps('\u1234'))
"\u1234"
>>> print(json.dumps('\\'))
"\\"
>>> print(json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True))
{"a": 0, "b": 0, "c": 0}
>>> from io import StringIO
>>> io = StringIO()
>>> json.dump(['streaming API'], io)
>>> io.getvalue()
'["streaming API"]'
Compact encoding::
>>> import json
>>> mydict = {'4': 5, '6': 7}
>>> json.dumps([1,2,3,mydict], separators=(',', ':'))
'[1,2,3,{"4":5,"6":7}]'
Pretty printing::
>>> import json
>>> print(json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4))
{
"4": 5,
"6": 7
}
Decoding JSON::
>>> import json
>>> obj = ['foo', {'bar': ['baz', None, 1.0, 2]}]
>>> json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]') == obj
True
>>> json.loads('"\\"foo\\bar"') == '"foo\x08ar'
True
>>> from io import StringIO
>>> io = StringIO('["streaming API"]')
>>> json.load(io)[0] == 'streaming API'
True
Specializing JSON object decoding::
>>> import json
>>> def as_complex(dct):
... if '__complex__' in dct:
... return complex(dct['real'], dct['imag'])
... return dct
...
>>> json.loads('{"__complex__": true, "real": 1, "imag": 2}',
... object_hook=as_complex)
(1+2j)
>>> from decimal import Decimal
>>> json.loads('1.1', parse_float=Decimal) == Decimal('1.1')
True
Specializing JSON object encoding::
>>> import json
>>> def encode_complex(obj):
... if isinstance(obj, complex):
... return [obj.real, obj.imag]
... raise TypeError(f'Object of type {obj.__class__.__name__} '
... f'is not JSON serializable')
...
>>> json.dumps(2 + 1j, default=encode_complex)
'[2.0, 1.0]'
>>> json.JSONEncoder(default=encode_complex).encode(2 + 1j)
'[2.0, 1.0]'
>>> ''.join(json.JSONEncoder(default=encode_complex).iterencode(2 + 1j))
'[2.0, 1.0]'
Using json.tool from the shell to validate and pretty-print::
$ echo '{"json":"obj"}' | python -m json.tool
{
"json": "obj"
}
$ echo '{ 1.2:3.4}' | python -m json.tool
Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
PACKAGE CONTENTS
decoder
encoder
scanner
tool
CLASSES
builtins.ValueError(builtins.Exception)
json.decoder.JSONDecodeError
builtins.object
json.decoder.JSONDecoder
json.encoder.JSONEncoder
class JSONDecodeError(builtins.ValueError)
| JSONDecodeError(msg, doc, pos)
|
| Subclass of ValueError with the following additional properties:
|
| msg: The unformatted error message
| doc: The JSON document being parsed
| pos: The start index of doc where parsing failed
| lineno: The line corresponding to pos
| colno: The column corresponding to pos
|
| Method resolution order:
| JSONDecodeError
| builtins.ValueError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, doc, pos)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(self)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.ValueError:
|
| __new__(*args, **kwargs) class method of builtins.ValueError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class JSONDecoder(builtins.object)
| JSONDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None)
|
| Simple JSON <https://json.org> decoder
|
| Performs the following translations in decoding by default:
|
| +---------------+-------------------+
| | JSON | Python |
| +===============+===================+
| | object | dict |
| +---------------+-------------------+
| | array | list |
| +---------------+-------------------+
| | string | str |
| +---------------+-------------------+
| | number (int) | int |
| +---------------+-------------------+
| | number (real) | float |
| +---------------+-------------------+
| | true | True |
| +---------------+-------------------+
| | false | False |
| +---------------+-------------------+
| | null | None |
| +---------------+-------------------+
|
| It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as
| their corresponding ``float`` values, which is outside the JSON spec.
|
| Methods defined here:
|
| __init__(self, *, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None)
| ``object_hook``, if specified, will be called with the result
| of every JSON object decoded and its return value will be used in
| place of the given ``dict``. This can be used to provide custom
| deserializations (e.g. to support JSON-RPC class hinting).
|
| ``object_pairs_hook``, if specified will be called with the result of
| every JSON object decoded with an ordered list of pairs. The return
| value of ``object_pairs_hook`` will be used instead of the ``dict``.
| This feature can be used to implement custom decoders.
| If ``object_hook`` is also defined, the ``object_pairs_hook`` takes
| priority.
|
| ``parse_float``, if specified, will be called with the string
| of every JSON float to be decoded. By default this is equivalent to
| float(num_str). This can be used to use another datatype or parser
| for JSON floats (e.g. decimal.Decimal).
|
| ``parse_int``, if specified, will be called with the string
| of every JSON int to be decoded. By default this is equivalent to
| int(num_str). This can be used to use another datatype or parser
| for JSON integers (e.g. float).
|
| ``parse_constant``, if specified, will be called with one of the
| following strings: -Infinity, Infinity, NaN.
| This can be used to raise an exception if invalid JSON numbers
| are encountered.
|
| If ``strict`` is false (true is the default), then control
| characters will be allowed inside strings. Control characters in
| this context are those with character codes in the 0-31 range,
| including ``'\t'`` (tab), ``'\n'``, ``'\r'`` and ``'\0'``.
|
| decode(self, s, _w=<built-in method match of re.Pattern object at 0x000001DE24F97AC0>)
| Return the Python representation of ``s`` (a ``str`` instance
| containing a JSON document).
|
| raw_decode(self, s, idx=0)
| Decode a JSON document from ``s`` (a ``str`` beginning with
| a JSON document) and return a 2-tuple of the Python
| representation and the index in ``s`` where the document ended.
|
| This can be used to decode a JSON document from a string that may
| have extraneous data at the end.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class JSONEncoder(builtins.object)
| JSONEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
|
| Extensible JSON <https://json.org> encoder for Python data structures.
|
| Supports the following objects and types by default:
|
| +-------------------+---------------+
| | Python | JSON |
| +===================+===============+
| | dict | object |
| +-------------------+---------------+
| | list, tuple | array |
| +-------------------+---------------+
| | str | string |
| +-------------------+---------------+
| | int, float | number |
| +-------------------+---------------+
| | True | true |
| +-------------------+---------------+
| | False | false |
| +-------------------+---------------+
| | None | null |
| +-------------------+---------------+
|
| To extend this to recognize other objects, subclass and implement a
| ``.default()`` method with another method that returns a serializable
| object for ``o`` if possible, otherwise it should call the superclass
| implementation (to raise ``TypeError``).
|
| Methods defined here:
|
| __init__(self, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
| Constructor for JSONEncoder, with sensible defaults.
|
| If skipkeys is false, then it is a TypeError to attempt
| encoding of keys that are not str, int, float or None. If
| skipkeys is True, such items are simply skipped.
|
| If ensure_ascii is true, the output is guaranteed to be str
| objects with all incoming non-ASCII characters escaped. If
| ensure_ascii is false, the output can contain non-ASCII characters.
|
| If check_circular is true, then lists, dicts, and custom encoded
| objects will be checked for circular references during encoding to
| prevent an infinite recursion (which would cause an RecursionError).
| Otherwise, no such check takes place.
|
| If allow_nan is true, then NaN, Infinity, and -Infinity will be
| encoded as such. This behavior is not JSON specification compliant,
| but is consistent with most JavaScript based encoders and decoders.
| Otherwise, it will be a ValueError to encode such floats.
|
| If sort_keys is true, then the output of dictionaries will be
| sorted by key; this is useful for regression tests to ensure
| that JSON serializations can be compared on a day-to-day basis.
|
| If indent is a non-negative integer, then JSON array
| elements and object members will be pretty-printed with that
| indent level. An indent level of 0 will only insert newlines.
| None is the most compact representation.
|
| If specified, separators should be an (item_separator, key_separator)
| tuple. The default is (', ', ': ') if *indent* is ``None`` and
| (',', ': ') otherwise. To get the most compact JSON representation,
| you should specify (',', ':') to eliminate whitespace.
|
| If specified, default is a function that gets called for objects
| that can't otherwise be serialized. It should return a JSON encodable
| version of the object or raise a ``TypeError``.
|
| default(self, o)
| Implement this method in a subclass such that it returns
| a serializable object for ``o``, or calls the base implementation
| (to raise a ``TypeError``).
|
| For example, to support arbitrary iterators, you could
| implement default like this::
|
| def default(self, o):
| try:
| iterable = iter(o)
| except TypeError:
| pass
| else:
| return list(iterable)
| # Let the base class default method raise the TypeError
| return super().default(o)
|
| encode(self, o)
| Return a JSON string representation of a Python data structure.
|
| >>> from json.encoder import JSONEncoder
| >>> JSONEncoder().encode({"foo": ["bar", "baz"]})
| '{"foo": ["bar", "baz"]}'
|
| iterencode(self, o, _one_shot=False)
| Encode the given object and yield each string
| representation as available.
|
| For example::
|
| for chunk in JSONEncoder().iterencode(bigobject):
| mysocket.write(chunk)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| item_separator = ', '
|
| key_separator = ': '
FUNCTIONS
dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)
Serialize ``obj`` as a JSON formatted stream to ``fp`` (a
``.write()``-supporting file-like object).
If ``skipkeys`` is true then ``dict`` keys that are not basic types
(``str``, ``int``, ``float``, ``bool``, ``None``) will be skipped
instead of raising a ``TypeError``.
If ``ensure_ascii`` is false, then the strings written to ``fp`` can
contain non-ASCII characters if they appear in strings contained in
``obj``. Otherwise, all such characters are escaped in JSON strings.
If ``check_circular`` is false, then the circular reference check
for container types will be skipped and a circular reference will
result in an ``RecursionError`` (or worse).
If ``allow_nan`` is false, then it will be a ``ValueError`` to
serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``)
in strict compliance of the JSON specification, instead of using the
JavaScript equivalents (``NaN``, ``Infinity``, ``-Infinity``).
If ``indent`` is a non-negative integer, then JSON array elements and
object members will be pretty-printed with that indent level. An indent
level of 0 will only insert newlines. ``None`` is the most compact
representation.
If specified, ``separators`` should be an ``(item_separator, key_separator)``
tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and
``(',', ': ')`` otherwise. To get the most compact JSON representation,
you should specify ``(',', ':')`` to eliminate whitespace.
``default(obj)`` is a function that should return a serializable version
of obj or raise TypeError. The default simply raises TypeError.
If *sort_keys* is true (default: ``False``), then the output of
dictionaries will be sorted by key.
To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the
``.default()`` method to serialize additional types), specify it with
the ``cls`` kwarg; otherwise ``JSONEncoder`` is used.
dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)
Serialize ``obj`` to a JSON formatted ``str``.
If ``skipkeys`` is true then ``dict`` keys that are not basic types
(``str``, ``int``, ``float``, ``bool``, ``None``) will be skipped
instead of raising a ``TypeError``.
If ``ensure_ascii`` is false, then the return value can contain non-ASCII
characters if they appear in strings contained in ``obj``. Otherwise, all
such characters are escaped in JSON strings.
If ``check_circular`` is false, then the circular reference check
for container types will be skipped and a circular reference will
result in an ``RecursionError`` (or worse).
If ``allow_nan`` is false, then it will be a ``ValueError`` to
serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``) in
strict compliance of the JSON specification, instead of using the
JavaScript equivalents (``NaN``, ``Infinity``, ``-Infinity``).
If ``indent`` is a non-negative integer, then JSON array elements and
object members will be pretty-printed with that indent level. An indent
level of 0 will only insert newlines. ``None`` is the most compact
representation.
If specified, ``separators`` should be an ``(item_separator, key_separator)``
tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and
``(',', ': ')`` otherwise. To get the most compact JSON representation,
you should specify ``(',', ':')`` to eliminate whitespace.
``default(obj)`` is a function that should return a serializable version
of obj or raise TypeError. The default simply raises TypeError.
If *sort_keys* is true (default: ``False``), then the output of
dictionaries will be sorted by key.
To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the
``.default()`` method to serialize additional types), specify it with
the ``cls`` kwarg; otherwise ``JSONEncoder`` is used.
load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
Deserialize ``fp`` (a ``.read()``-supporting file-like object containing
a JSON document) to a Python object.
``object_hook`` is an optional function that will be called with the
result of any object literal decode (a ``dict``). The return value of
``object_hook`` will be used instead of the ``dict``. This feature
can be used to implement custom decoders (e.g. JSON-RPC class hinting).
``object_pairs_hook`` is an optional function that will be called with the
result of any object literal decoded with an ordered list of pairs. The
return value of ``object_pairs_hook`` will be used instead of the ``dict``.
This feature can be used to implement custom decoders. If ``object_hook``
is also defined, the ``object_pairs_hook`` takes priority.
To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
kwarg; otherwise ``JSONDecoder`` is used.
loads(s, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
Deserialize ``s`` (a ``str``, ``bytes`` or ``bytearray`` instance
containing a JSON document) to a Python object.
``object_hook`` is an optional function that will be called with the
result of any object literal decode (a ``dict``). The return value of
``object_hook`` will be used instead of the ``dict``. This feature
can be used to implement custom decoders (e.g. JSON-RPC class hinting).
``object_pairs_hook`` is an optional function that will be called with the
result of any object literal decoded with an ordered list of pairs. The
return value of ``object_pairs_hook`` will be used instead of the ``dict``.
This feature can be used to implement custom decoders. If ``object_hook``
is also defined, the ``object_pairs_hook`` takes priority.
``parse_float``, if specified, will be called with the string
of every JSON float to be decoded. By default this is equivalent to
float(num_str). This can be used to use another datatype or parser
for JSON floats (e.g. decimal.Decimal).
``parse_int``, if specified, will be called with the string
of every JSON int to be decoded. By default this is equivalent to
int(num_str). This can be used to use another datatype or parser
for JSON integers (e.g. float).
``parse_constant``, if specified, will be called with one of the
following strings: -Infinity, Infinity, NaN.
This can be used to raise an exception if invalid JSON numbers
are encountered.
To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
kwarg; otherwise ``JSONDecoder`` is used.
DATA
__all__ = ['dump', 'dumps', 'load', 'loads', 'JSONDecoder', 'JSONDecod...
VERSION
2.0.9
AUTHOR
Bob Ippolito <bob@redivi.com>
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\json\__init__.py
peewee.logger
Python Library Documentation: Logger in module logging object
class Logger(Filterer)
| Logger(name, level=0)
|
| Instances of the Logger class represent a single logging channel. A
| "logging channel" indicates an area of an application. Exactly how an
| "area" is defined is up to the application developer. Since an
| application can have any number of areas, logging channels are identified
| by a unique string. Application areas can be nested (e.g. an area
| of "input processing" might include sub-areas "read CSV files", "read
| XLS files" and "read Gnumeric files"). To cater for this natural nesting,
| channel names are organized into a namespace hierarchy where levels are
| separated by periods, much like the Java or Python package namespace. So
| in the instance given above, channel names might be "input" for the upper
| level, and "input.csv", "input.xls" and "input.gnu" for the sub-levels.
| There is no arbitrary limit to the depth of nesting.
|
| Method resolution order:
| Logger
| Filterer
| builtins.object
|
| Methods defined here:
|
| __init__(self, name, level=0)
| Initialize the logger with a name and an optional level.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| addHandler(self, hdlr)
| Add the specified handler to this logger.
|
| callHandlers(self, record)
| Pass a record to all relevant handlers.
|
| Loop through all handlers for this logger and its parents in the
| logger hierarchy. If no handler was found, output a one-off error
| message to sys.stderr. Stop searching up the hierarchy whenever a
| logger with the "propagate" attribute set to zero is found - that
| will be the last logger whose handlers are called.
|
| critical(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'CRITICAL'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.critical("Houston, we have a %s", "major disaster", exc_info=True)
|
| debug(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'DEBUG'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.debug("Houston, we have a %s", "thorny problem", exc_info=True)
|
| error(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'ERROR'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.error("Houston, we have a %s", "major problem", exc_info=True)
|
| exception(self, msg, *args, exc_info=True, **kwargs)
| Convenience method for logging an ERROR with exception information.
|
| fatal(self, msg, *args, **kwargs)
| Don't use this method, use critical() instead.
|
| findCaller(self, stack_info=False, stacklevel=1)
| Find the stack frame of the caller so that we can note the source
| file name, line number and function name.
|
| getChild(self, suffix)
| Get a logger which is a descendant to this one.
|
| This is a convenience method, such that
|
| logging.getLogger('abc').getChild('def.ghi')
|
| is the same as
|
| logging.getLogger('abc.def.ghi')
|
| It's useful, for example, when the parent logger is named using
| __name__ rather than a literal string.
|
| getChildren(self)
|
| getEffectiveLevel(self)
| Get the effective level for this logger.
|
| Loop through this logger and its parents in the logger hierarchy,
| looking for a non-zero logging level. Return the first one found.
|
| handle(self, record)
| Call the handlers for the specified record.
|
| This method is used for unpickled records received from a socket, as
| well as those created locally. Logger-level filtering is applied.
|
| hasHandlers(self)
| See if this logger has any handlers configured.
|
| Loop through all handlers for this logger and its parents in the
| logger hierarchy. Return True if a handler was found, else False.
| Stop searching up the hierarchy whenever a logger with the "propagate"
| attribute set to zero is found - that will be the last logger which
| is checked for the existence of handlers.
|
| info(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'INFO'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.info("Houston, we have a %s", "notable problem", exc_info=True)
|
| isEnabledFor(self, level)
| Is this logger enabled for level 'level'?
|
| log(self, level, msg, *args, **kwargs)
| Log 'msg % args' with the integer severity 'level'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.log(level, "We have a %s", "mysterious problem", exc_info=True)
|
| makeRecord(self, name, level, fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None)
| A factory method which can be overridden in subclasses to create
| specialized LogRecords.
|
| removeHandler(self, hdlr)
| Remove the specified handler from this logger.
|
| setLevel(self, level)
| Set the logging level of this logger. level must be an int or a str.
|
| warn(self, msg, *args, **kwargs)
|
| warning(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'WARNING'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| manager = <logging.Manager object>
|
| root = <RootLogger root (WARNING)>
|
| ----------------------------------------------------------------------
| Methods inherited from Filterer:
|
| addFilter(self, filter)
| Add the specified filter to this handler.
|
| filter(self, record)
| Determine if a record is loggable by consulting all the filters.
|
| The default is to allow the record to be logged; any filter can veto
| this by returning a false value.
| If a filter attached to a handler returns a log record instance,
| then that instance is used in place of the original log record in
| any further processing of the event by that handler.
| If a filter returns any other true value, the original log record
| is used in any further processing of the event by that handler.
|
| If none of the filters return false values, this method returns
| a log record.
| If any of the filters return a false value, this method returns
| a false value.
|
| .. versionchanged:: 3.2
|
| Allow filters to be just callables.
|
| .. versionchanged:: 3.12
| Allow filters to return a LogRecord instead of
| modifying it in place.
|
| removeFilter(self, filter)
| Remove the specified filter from this handler.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Filterer:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
peewee.logging
Python Library Documentation: package logging
NAME
logging
MODULE REFERENCE
https://docs.python.org/3.12/library/logging.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
Logging package for Python. Based on PEP 282 and comments thereto in
comp.lang.python.
Copyright (C) 2001-2022 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
PACKAGE CONTENTS
config
handlers
CLASSES
builtins.object
BufferingFormatter
Filter
Formatter
LogRecord
LoggerAdapter
Filterer(builtins.object)
Handler
NullHandler
StreamHandler
FileHandler
Logger
class BufferingFormatter(builtins.object)
| BufferingFormatter(linefmt=None)
|
| A formatter suitable for formatting a number of records.
|
| Methods defined here:
|
| __init__(self, linefmt=None)
| Optionally specify a formatter which will be used to format each
| individual record.
|
| format(self, records)
| Format the specified records and return the result as a string.
|
| formatFooter(self, records)
| Return the footer string for the specified records.
|
| formatHeader(self, records)
| Return the header string for the specified records.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class FileHandler(StreamHandler)
| FileHandler(filename, mode='a', encoding=None, delay=False, errors=None)
|
| A handler class which writes formatted logging records to disk files.
|
| Method resolution order:
| FileHandler
| StreamHandler
| Handler
| Filterer
| builtins.object
|
| Methods defined here:
|
| __init__(self, filename, mode='a', encoding=None, delay=False, errors=None)
| Open the specified file and use it as the stream for logging.
|
| __repr__(self)
| Return repr(self).
|
| close(self)
| Closes the stream.
|
| emit(self, record)
| Emit a record.
|
| If the stream was not opened because 'delay' was specified in the
| constructor, open it before calling the superclass's emit.
|
| If stream is not open, current mode is 'w' and `_closed=True`, record
| will not be emitted (see Issue #42378).
|
| ----------------------------------------------------------------------
| Methods inherited from StreamHandler:
|
| flush(self)
| Flushes the stream.
|
| setStream(self, stream)
| Sets the StreamHandler's stream to the specified value,
| if it is different.
|
| Returns the old stream, if the stream was changed, or None
| if it wasn't.
|
| ----------------------------------------------------------------------
| Class methods inherited from StreamHandler:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from StreamHandler:
|
| terminator = '\n'
|
| ----------------------------------------------------------------------
| Methods inherited from Handler:
|
| acquire(self)
| Acquire the I/O thread lock.
|
| createLock(self)
| Acquire a thread lock for serializing access to the underlying I/O.
|
| format(self, record)
| Format the specified record.
|
| If a formatter is set, use it. Otherwise, use the default formatter
| for the module.
|
| get_name(self)
|
| handle(self, record)
| Conditionally emit the specified logging record.
|
| Emission depends on filters which may have been added to the handler.
| Wrap the actual emission of the record with acquisition/release of
| the I/O thread lock.
|
| Returns an instance of the log record that was emitted
| if it passed all filters, otherwise a false value is returned.
|
| handleError(self, record)
| Handle errors which occur during an emit() call.
|
| This method should be called from handlers when an exception is
| encountered during an emit() call. If raiseExceptions is false,
| exceptions get silently ignored. This is what is mostly wanted
| for a logging system - most users will not care about errors in
| the logging system, they are more interested in application errors.
| You could, however, replace this with a custom handler if you wish.
| The record which was being processed is passed in to this method.
|
| release(self)
| Release the I/O thread lock.
|
| setFormatter(self, fmt)
| Set the formatter for this handler.
|
| setLevel(self, level)
| Set the logging level of this handler. level must be an int or a str.
|
| set_name(self, name)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Handler:
|
| name
|
| ----------------------------------------------------------------------
| Methods inherited from Filterer:
|
| addFilter(self, filter)
| Add the specified filter to this handler.
|
| filter(self, record)
| Determine if a record is loggable by consulting all the filters.
|
| The default is to allow the record to be logged; any filter can veto
| this by returning a false value.
| If a filter attached to a handler returns a log record instance,
| then that instance is used in place of the original log record in
| any further processing of the event by that handler.
| If a filter returns any other true value, the original log record
| is used in any further processing of the event by that handler.
|
| If none of the filters return false values, this method returns
| a log record.
| If any of the filters return a false value, this method returns
| a false value.
|
| .. versionchanged:: 3.2
|
| Allow filters to be just callables.
|
| .. versionchanged:: 3.12
| Allow filters to return a LogRecord instead of
| modifying it in place.
|
| removeFilter(self, filter)
| Remove the specified filter from this handler.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Filterer:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Filter(builtins.object)
| Filter(name='')
|
| Filter instances are used to perform arbitrary filtering of LogRecords.
|
| Loggers and Handlers can optionally use Filter instances to filter
| records as desired. The base filter class only allows events which are
| below a certain point in the logger hierarchy. For example, a filter
| initialized with "A.B" will allow events logged by loggers "A.B",
| "A.B.C", "A.B.C.D", "A.B.D" etc. but not "A.BB", "B.A.B" etc. If
| initialized with the empty string, all events are passed.
|
| Methods defined here:
|
| __init__(self, name='')
| Initialize a filter.
|
| Initialize with the name of the logger which, together with its
| children, will have its events allowed through the filter. If no
| name is specified, allow every event.
|
| filter(self, record)
| Determine if the specified record is to be logged.
|
| Returns True if the record should be logged, or False otherwise.
| If deemed appropriate, the record may be modified in-place.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Formatter(builtins.object)
| Formatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)
|
| Formatter instances are used to convert a LogRecord to text.
|
| Formatters need to know how a LogRecord is constructed. They are
| responsible for converting a LogRecord to (usually) a string which can
| be interpreted by either a human or an external system. The base Formatter
| allows a formatting string to be specified. If none is supplied, the
| style-dependent default value, "%(message)s", "{message}", or
| "${message}", is used.
|
| The Formatter can be initialized with a format string which makes use of
| knowledge of the LogRecord attributes - e.g. the default value mentioned
| above makes use of the fact that the user's message and arguments are pre-
| formatted into a LogRecord's message attribute. Currently, the useful
| attributes in a LogRecord are described by:
|
| %(name)s Name of the logger (logging channel)
| %(levelno)s Numeric logging level for the message (DEBUG, INFO,
| WARNING, ERROR, CRITICAL)
| %(levelname)s Text logging level for the message ("DEBUG", "INFO",
| "WARNING", "ERROR", "CRITICAL")
| %(pathname)s Full pathname of the source file where the logging
| call was issued (if available)
| %(filename)s Filename portion of pathname
| %(module)s Module (name portion of filename)
| %(lineno)d Source line number where the logging call was issued
| (if available)
| %(funcName)s Function name
| %(created)f Time when the LogRecord was created (time.time()
| return value)
| %(asctime)s Textual time when the LogRecord was created
| %(msecs)d Millisecond portion of the creation time
| %(relativeCreated)d Time in milliseconds when the LogRecord was created,
| relative to the time the logging module was loaded
| (typically at application startup time)
| %(thread)d Thread ID (if available)
| %(threadName)s Thread name (if available)
| %(taskName)s Task name (if available)
| %(process)d Process ID (if available)
| %(message)s The result of record.getMessage(), computed just as
| the record is emitted
|
| Methods defined here:
|
| __init__(self, fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)
| Initialize the formatter with specified format strings.
|
| Initialize the formatter either with the specified format string, or a
| default as described above. Allow for specialized date formatting with
| the optional datefmt argument. If datefmt is omitted, you get an
| ISO8601-like (or RFC 3339-like) format.
|
| Use a style parameter of '%', '{' or '$' to specify that you want to
| use one of %-formatting, :meth:`str.format` (``{}``) formatting or
| :class:`string.Template` formatting in your format string.
|
| .. versionchanged:: 3.2
| Added the ``style`` parameter.
|
| format(self, record)
| Format the specified record as text.
|
| The record's attribute dictionary is used as the operand to a
| string formatting operation which yields the returned string.
| Before formatting the dictionary, a couple of preparatory steps
| are carried out. The message attribute of the record is computed
| using LogRecord.getMessage(). If the formatting string uses the
| time (as determined by a call to usesTime(), formatTime() is
| called to format the event time. If there is exception information,
| it is formatted using formatException() and appended to the message.
|
| formatException(self, ei)
| Format and return the specified exception information as a string.
|
| This default implementation just uses
| traceback.print_exception()
|
| formatMessage(self, record)
|
| formatStack(self, stack_info)
| This method is provided as an extension point for specialized
| formatting of stack information.
|
| The input data is a string as returned from a call to
| :func:`traceback.print_stack`, but with the last trailing newline
| removed.
|
| The base implementation just returns the value passed in.
|
| formatTime(self, record, datefmt=None)
| Return the creation time of the specified LogRecord as formatted text.
|
| This method should be called from format() by a formatter which
| wants to make use of a formatted time. This method can be overridden
| in formatters to provide for any specific requirement, but the
| basic behaviour is as follows: if datefmt (a string) is specified,
| it is used with time.strftime() to format the creation time of the
| record. Otherwise, an ISO8601-like (or RFC 3339-like) format is used.
| The resulting string is returned. This function uses a user-configurable
| function to convert the creation time to a tuple. By default,
| time.localtime() is used; to change this for a particular formatter
| instance, set the 'converter' attribute to a function with the same
| signature as time.localtime() or time.gmtime(). To change it for all
| formatters, for example if you want all logging times to be shown in GMT,
| set the 'converter' attribute in the Formatter class.
|
| usesTime(self)
| Check if the format uses the creation time of the record.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| converter = localtime(...)
| localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,
| tm_sec,tm_wday,tm_yday,tm_isdst)
|
| Convert seconds since the Epoch to a time tuple expressing local time.
| When 'seconds' is not passed in, convert the current time instead.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| default_msec_format = '%s,%03d'
|
| default_time_format = '%Y-%m-%d %H:%M:%S'
class Handler(Filterer)
| Handler(level=0)
|
| Handler instances dispatch logging events to specific destinations.
|
| The base handler class. Acts as a placeholder which defines the Handler
| interface. Handlers can optionally use Formatter instances to format
| records as desired. By default, no formatter is specified; in this case,
| the 'raw' message as determined by record.message is logged.
|
| Method resolution order:
| Handler
| Filterer
| builtins.object
|
| Methods defined here:
|
| __init__(self, level=0)
| Initializes the instance - basically setting the formatter to None
| and the filter list to empty.
|
| __repr__(self)
| Return repr(self).
|
| acquire(self)
| Acquire the I/O thread lock.
|
| close(self)
| Tidy up any resources used by the handler.
|
| This version removes the handler from an internal map of handlers,
| _handlers, which is used for handler lookup by name. Subclasses
| should ensure that this gets called from overridden close()
| methods.
|
| createLock(self)
| Acquire a thread lock for serializing access to the underlying I/O.
|
| emit(self, record)
| Do whatever it takes to actually log the specified logging record.
|
| This version is intended to be implemented by subclasses and so
| raises a NotImplementedError.
|
| flush(self)
| Ensure all logging output has been flushed.
|
| This version does nothing and is intended to be implemented by
| subclasses.
|
| format(self, record)
| Format the specified record.
|
| If a formatter is set, use it. Otherwise, use the default formatter
| for the module.
|
| get_name(self)
|
| handle(self, record)
| Conditionally emit the specified logging record.
|
| Emission depends on filters which may have been added to the handler.
| Wrap the actual emission of the record with acquisition/release of
| the I/O thread lock.
|
| Returns an instance of the log record that was emitted
| if it passed all filters, otherwise a false value is returned.
|
| handleError(self, record)
| Handle errors which occur during an emit() call.
|
| This method should be called from handlers when an exception is
| encountered during an emit() call. If raiseExceptions is false,
| exceptions get silently ignored. This is what is mostly wanted
| for a logging system - most users will not care about errors in
| the logging system, they are more interested in application errors.
| You could, however, replace this with a custom handler if you wish.
| The record which was being processed is passed in to this method.
|
| release(self)
| Release the I/O thread lock.
|
| setFormatter(self, fmt)
| Set the formatter for this handler.
|
| setLevel(self, level)
| Set the logging level of this handler. level must be an int or a str.
|
| set_name(self, name)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| name
|
| ----------------------------------------------------------------------
| Methods inherited from Filterer:
|
| addFilter(self, filter)
| Add the specified filter to this handler.
|
| filter(self, record)
| Determine if a record is loggable by consulting all the filters.
|
| The default is to allow the record to be logged; any filter can veto
| this by returning a false value.
| If a filter attached to a handler returns a log record instance,
| then that instance is used in place of the original log record in
| any further processing of the event by that handler.
| If a filter returns any other true value, the original log record
| is used in any further processing of the event by that handler.
|
| If none of the filters return false values, this method returns
| a log record.
| If any of the filters return a false value, this method returns
| a false value.
|
| .. versionchanged:: 3.2
|
| Allow filters to be just callables.
|
| .. versionchanged:: 3.12
| Allow filters to return a LogRecord instead of
| modifying it in place.
|
| removeFilter(self, filter)
| Remove the specified filter from this handler.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Filterer:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class LogRecord(builtins.object)
| LogRecord(name, level, pathname, lineno, msg, args, exc_info, func=None, sinfo=None, **kwargs)
|
| A LogRecord instance represents an event being logged.
|
| LogRecord instances are created every time something is logged. They
| contain all the information pertinent to the event being logged. The
| main information passed in is in msg and args, which are combined
| using str(msg) % args to create the message field of the record. The
| record also includes information such as when the record was created,
| the source line where the logging call was made, and any exception
| information to be logged.
|
| Methods defined here:
|
| __init__(self, name, level, pathname, lineno, msg, args, exc_info, func=None, sinfo=None, **kwargs)
| Initialize a logging record with interesting information.
|
| __repr__(self)
| Return repr(self).
|
| getMessage(self)
| Return the message for this LogRecord.
|
| Return the message for this LogRecord after merging any user-supplied
| arguments with the message.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Logger(Filterer)
| Logger(name, level=0)
|
| Instances of the Logger class represent a single logging channel. A
| "logging channel" indicates an area of an application. Exactly how an
| "area" is defined is up to the application developer. Since an
| application can have any number of areas, logging channels are identified
| by a unique string. Application areas can be nested (e.g. an area
| of "input processing" might include sub-areas "read CSV files", "read
| XLS files" and "read Gnumeric files"). To cater for this natural nesting,
| channel names are organized into a namespace hierarchy where levels are
| separated by periods, much like the Java or Python package namespace. So
| in the instance given above, channel names might be "input" for the upper
| level, and "input.csv", "input.xls" and "input.gnu" for the sub-levels.
| There is no arbitrary limit to the depth of nesting.
|
| Method resolution order:
| Logger
| Filterer
| builtins.object
|
| Methods defined here:
|
| __init__(self, name, level=0)
| Initialize the logger with a name and an optional level.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| addHandler(self, hdlr)
| Add the specified handler to this logger.
|
| callHandlers(self, record)
| Pass a record to all relevant handlers.
|
| Loop through all handlers for this logger and its parents in the
| logger hierarchy. If no handler was found, output a one-off error
| message to sys.stderr. Stop searching up the hierarchy whenever a
| logger with the "propagate" attribute set to zero is found - that
| will be the last logger whose handlers are called.
|
| critical(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'CRITICAL'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.critical("Houston, we have a %s", "major disaster", exc_info=True)
|
| debug(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'DEBUG'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.debug("Houston, we have a %s", "thorny problem", exc_info=True)
|
| error(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'ERROR'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.error("Houston, we have a %s", "major problem", exc_info=True)
|
| exception(self, msg, *args, exc_info=True, **kwargs)
| Convenience method for logging an ERROR with exception information.
|
| fatal(self, msg, *args, **kwargs)
| Don't use this method, use critical() instead.
|
| findCaller(self, stack_info=False, stacklevel=1)
| Find the stack frame of the caller so that we can note the source
| file name, line number and function name.
|
| getChild(self, suffix)
| Get a logger which is a descendant to this one.
|
| This is a convenience method, such that
|
| logging.getLogger('abc').getChild('def.ghi')
|
| is the same as
|
| logging.getLogger('abc.def.ghi')
|
| It's useful, for example, when the parent logger is named using
| __name__ rather than a literal string.
|
| getChildren(self)
|
| getEffectiveLevel(self)
| Get the effective level for this logger.
|
| Loop through this logger and its parents in the logger hierarchy,
| looking for a non-zero logging level. Return the first one found.
|
| handle(self, record)
| Call the handlers for the specified record.
|
| This method is used for unpickled records received from a socket, as
| well as those created locally. Logger-level filtering is applied.
|
| hasHandlers(self)
| See if this logger has any handlers configured.
|
| Loop through all handlers for this logger and its parents in the
| logger hierarchy. Return True if a handler was found, else False.
| Stop searching up the hierarchy whenever a logger with the "propagate"
| attribute set to zero is found - that will be the last logger which
| is checked for the existence of handlers.
|
| info(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'INFO'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.info("Houston, we have a %s", "notable problem", exc_info=True)
|
| isEnabledFor(self, level)
| Is this logger enabled for level 'level'?
|
| log(self, level, msg, *args, **kwargs)
| Log 'msg % args' with the integer severity 'level'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.log(level, "We have a %s", "mysterious problem", exc_info=True)
|
| makeRecord(self, name, level, fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None)
| A factory method which can be overridden in subclasses to create
| specialized LogRecords.
|
| removeHandler(self, hdlr)
| Remove the specified handler from this logger.
|
| setLevel(self, level)
| Set the logging level of this logger. level must be an int or a str.
|
| warn(self, msg, *args, **kwargs)
|
| warning(self, msg, *args, **kwargs)
| Log 'msg % args' with severity 'WARNING'.
|
| To pass exception information, use the keyword argument exc_info with
| a true value, e.g.
|
| logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| manager = <logging.Manager object>
|
| root = <RootLogger root (WARNING)>
|
| ----------------------------------------------------------------------
| Methods inherited from Filterer:
|
| addFilter(self, filter)
| Add the specified filter to this handler.
|
| filter(self, record)
| Determine if a record is loggable by consulting all the filters.
|
| The default is to allow the record to be logged; any filter can veto
| this by returning a false value.
| If a filter attached to a handler returns a log record instance,
| then that instance is used in place of the original log record in
| any further processing of the event by that handler.
| If a filter returns any other true value, the original log record
| is used in any further processing of the event by that handler.
|
| If none of the filters return false values, this method returns
| a log record.
| If any of the filters return a false value, this method returns
| a false value.
|
| .. versionchanged:: 3.2
|
| Allow filters to be just callables.
|
| .. versionchanged:: 3.12
| Allow filters to return a LogRecord instead of
| modifying it in place.
|
| removeFilter(self, filter)
| Remove the specified filter from this handler.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Filterer:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class LoggerAdapter(builtins.object)
| LoggerAdapter(logger, extra=None)
|
| An adapter for loggers which makes it easier to specify contextual
| information in logging output.
|
| Methods defined here:
|
| __init__(self, logger, extra=None)
| Initialize the adapter with a logger and a dict-like object which
| provides contextual information. This constructor signature allows
| easy stacking of LoggerAdapters, if so desired.
|
| You can effectively pass keyword arguments as shown in the
| following example:
|
| adapter = LoggerAdapter(someLogger, dict(p1=v1, p2="v2"))
|
| __repr__(self)
| Return repr(self).
|
| critical(self, msg, *args, **kwargs)
| Delegate a critical call to the underlying logger.
|
| debug(self, msg, *args, **kwargs)
| Delegate a debug call to the underlying logger.
|
| error(self, msg, *args, **kwargs)
| Delegate an error call to the underlying logger.
|
| exception(self, msg, *args, exc_info=True, **kwargs)
| Delegate an exception call to the underlying logger.
|
| getEffectiveLevel(self)
| Get the effective level for the underlying logger.
|
| hasHandlers(self)
| See if the underlying logger has any handlers.
|
| info(self, msg, *args, **kwargs)
| Delegate an info call to the underlying logger.
|
| isEnabledFor(self, level)
| Is this logger enabled for level 'level'?
|
| log(self, level, msg, *args, **kwargs)
| Delegate a log call to the underlying logger, after adding
| contextual information from this adapter instance.
|
| process(self, msg, kwargs)
| Process the logging message and keyword arguments passed in to
| a logging call to insert contextual information. You can either
| manipulate the message itself, the keyword args or both. Return
| the message and kwargs modified (or not) to suit your needs.
|
| Normally, you'll only need to override this one method in a
| LoggerAdapter subclass for your specific needs.
|
| setLevel(self, level)
| Set the specified level on the underlying logger.
|
| warn(self, msg, *args, **kwargs)
|
| warning(self, msg, *args, **kwargs)
| Delegate a warning call to the underlying logger.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| name
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| manager
class NullHandler(Handler)
| NullHandler(level=0)
|
| This handler does nothing. It's intended to be used to avoid the
| "No handlers could be found for logger XXX" one-off warning. This is
| important for library code, which may contain code to log events. If a user
| of the library does not configure logging, the one-off warning might be
| produced; to avoid this, the library developer simply needs to instantiate
| a NullHandler and add it to the top-level logger of the library module or
| package.
|
| Method resolution order:
| NullHandler
| Handler
| Filterer
| builtins.object
|
| Methods defined here:
|
| createLock(self)
| Acquire a thread lock for serializing access to the underlying I/O.
|
| emit(self, record)
| Stub.
|
| handle(self, record)
| Stub.
|
| ----------------------------------------------------------------------
| Methods inherited from Handler:
|
| __init__(self, level=0)
| Initializes the instance - basically setting the formatter to None
| and the filter list to empty.
|
| __repr__(self)
| Return repr(self).
|
| acquire(self)
| Acquire the I/O thread lock.
|
| close(self)
| Tidy up any resources used by the handler.
|
| This version removes the handler from an internal map of handlers,
| _handlers, which is used for handler lookup by name. Subclasses
| should ensure that this gets called from overridden close()
| methods.
|
| flush(self)
| Ensure all logging output has been flushed.
|
| This version does nothing and is intended to be implemented by
| subclasses.
|
| format(self, record)
| Format the specified record.
|
| If a formatter is set, use it. Otherwise, use the default formatter
| for the module.
|
| get_name(self)
|
| handleError(self, record)
| Handle errors which occur during an emit() call.
|
| This method should be called from handlers when an exception is
| encountered during an emit() call. If raiseExceptions is false,
| exceptions get silently ignored. This is what is mostly wanted
| for a logging system - most users will not care about errors in
| the logging system, they are more interested in application errors.
| You could, however, replace this with a custom handler if you wish.
| The record which was being processed is passed in to this method.
|
| release(self)
| Release the I/O thread lock.
|
| setFormatter(self, fmt)
| Set the formatter for this handler.
|
| setLevel(self, level)
| Set the logging level of this handler. level must be an int or a str.
|
| set_name(self, name)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Handler:
|
| name
|
| ----------------------------------------------------------------------
| Methods inherited from Filterer:
|
| addFilter(self, filter)
| Add the specified filter to this handler.
|
| filter(self, record)
| Determine if a record is loggable by consulting all the filters.
|
| The default is to allow the record to be logged; any filter can veto
| this by returning a false value.
| If a filter attached to a handler returns a log record instance,
| then that instance is used in place of the original log record in
| any further processing of the event by that handler.
| If a filter returns any other true value, the original log record
| is used in any further processing of the event by that handler.
|
| If none of the filters return false values, this method returns
| a log record.
| If any of the filters return a false value, this method returns
| a false value.
|
| .. versionchanged:: 3.2
|
| Allow filters to be just callables.
|
| .. versionchanged:: 3.12
| Allow filters to return a LogRecord instead of
| modifying it in place.
|
| removeFilter(self, filter)
| Remove the specified filter from this handler.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Filterer:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class StreamHandler(Handler)
| StreamHandler(stream=None)
|
| A handler class which writes logging records, appropriately formatted,
| to a stream. Note that this class does not close the stream, as
| sys.stdout or sys.stderr may be used.
|
| Method resolution order:
| StreamHandler
| Handler
| Filterer
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream=None)
| Initialize the handler.
|
| If stream is not specified, sys.stderr is used.
|
| __repr__(self)
| Return repr(self).
|
| emit(self, record)
| Emit a record.
|
| If a formatter is specified, it is used to format the record.
| The record is then written to the stream with a trailing newline. If
| exception information is present, it is formatted using
| traceback.print_exception and appended to the stream. If the stream
| has an 'encoding' attribute, it is used to determine how to do the
| output to the stream.
|
| flush(self)
| Flushes the stream.
|
| setStream(self, stream)
| Sets the StreamHandler's stream to the specified value,
| if it is different.
|
| Returns the old stream, if the stream was changed, or None
| if it wasn't.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__ = GenericAlias(...)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| terminator = '\n'
|
| ----------------------------------------------------------------------
| Methods inherited from Handler:
|
| acquire(self)
| Acquire the I/O thread lock.
|
| close(self)
| Tidy up any resources used by the handler.
|
| This version removes the handler from an internal map of handlers,
| _handlers, which is used for handler lookup by name. Subclasses
| should ensure that this gets called from overridden close()
| methods.
|
| createLock(self)
| Acquire a thread lock for serializing access to the underlying I/O.
|
| format(self, record)
| Format the specified record.
|
| If a formatter is set, use it. Otherwise, use the default formatter
| for the module.
|
| get_name(self)
|
| handle(self, record)
| Conditionally emit the specified logging record.
|
| Emission depends on filters which may have been added to the handler.
| Wrap the actual emission of the record with acquisition/release of
| the I/O thread lock.
|
| Returns an instance of the log record that was emitted
| if it passed all filters, otherwise a false value is returned.
|
| handleError(self, record)
| Handle errors which occur during an emit() call.
|
| This method should be called from handlers when an exception is
| encountered during an emit() call. If raiseExceptions is false,
| exceptions get silently ignored. This is what is mostly wanted
| for a logging system - most users will not care about errors in
| the logging system, they are more interested in application errors.
| You could, however, replace this with a custom handler if you wish.
| The record which was being processed is passed in to this method.
|
| release(self)
| Release the I/O thread lock.
|
| setFormatter(self, fmt)
| Set the formatter for this handler.
|
| setLevel(self, level)
| Set the logging level of this handler. level must be an int or a str.
|
| set_name(self, name)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Handler:
|
| name
|
| ----------------------------------------------------------------------
| Methods inherited from Filterer:
|
| addFilter(self, filter)
| Add the specified filter to this handler.
|
| filter(self, record)
| Determine if a record is loggable by consulting all the filters.
|
| The default is to allow the record to be logged; any filter can veto
| this by returning a false value.
| If a filter attached to a handler returns a log record instance,
| then that instance is used in place of the original log record in
| any further processing of the event by that handler.
| If a filter returns any other true value, the original log record
| is used in any further processing of the event by that handler.
|
| If none of the filters return false values, this method returns
| a log record.
| If any of the filters return a false value, this method returns
| a false value.
|
| .. versionchanged:: 3.2
|
| Allow filters to be just callables.
|
| .. versionchanged:: 3.12
| Allow filters to return a LogRecord instead of
| modifying it in place.
|
| removeFilter(self, filter)
| Remove the specified filter from this handler.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Filterer:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
FUNCTIONS
addLevelName(level, levelName)
Associate 'levelName' with 'level'.
This is used when converting levels to text during message formatting.
basicConfig(**kwargs)
Do basic configuration for the logging system.
This function does nothing if the root logger already has handlers
configured, unless the keyword argument *force* is set to ``True``.
It is a convenience method intended for use by simple scripts
to do one-shot configuration of the logging package.
The default behaviour is to create a StreamHandler which writes to
sys.stderr, set a formatter using the BASIC_FORMAT format string, and
add the handler to the root logger.
A number of optional keyword arguments may be specified, which can alter
the default behaviour.
filename Specifies that a FileHandler be created, using the specified
filename, rather than a StreamHandler.
filemode Specifies the mode to open the file, if filename is specified
(if filemode is unspecified, it defaults to 'a').
format Use the specified format string for the handler.
datefmt Use the specified date/time format.
style If a format string is specified, use this to specify the
type of format string (possible values '%', '{', '$', for
%-formatting, :meth:`str.format` and :class:`string.Template`
- defaults to '%').
level Set the root logger level to the specified level.
stream Use the specified stream to initialize the StreamHandler. Note
that this argument is incompatible with 'filename' - if both
are present, 'stream' is ignored.
handlers If specified, this should be an iterable of already created
handlers, which will be added to the root logger. Any handler
in the list which does not have a formatter assigned will be
assigned the formatter created in this function.
force If this keyword is specified as true, any existing handlers
attached to the root logger are removed and closed, before
carrying out the configuration as specified by the other
arguments.
encoding If specified together with a filename, this encoding is passed to
the created FileHandler, causing it to be used when the file is
opened.
errors If specified together with a filename, this value is passed to the
created FileHandler, causing it to be used when the file is
opened in text mode. If not specified, the default value is
`backslashreplace`.
Note that you could specify a stream created using open(filename, mode)
rather than passing the filename and mode in. However, it should be
remembered that StreamHandler does not close its stream (since it may be
using sys.stdout or sys.stderr), whereas FileHandler closes its stream
when the handler is closed.
.. versionchanged:: 3.2
Added the ``style`` parameter.
.. versionchanged:: 3.3
Added the ``handlers`` parameter. A ``ValueError`` is now thrown for
incompatible arguments (e.g. ``handlers`` specified together with
``filename``/``filemode``, or ``filename``/``filemode`` specified
together with ``stream``, or ``handlers`` specified together with
``stream``.
.. versionchanged:: 3.8
Added the ``force`` parameter.
.. versionchanged:: 3.9
Added the ``encoding`` and ``errors`` parameters.
captureWarnings(capture)
If capture is true, redirect all warnings to the logging package.
If capture is False, ensure that warnings are not redirected to logging
but to their original destinations.
critical(msg, *args, **kwargs)
Log a message with severity 'CRITICAL' on the root logger. If the logger
has no handlers, call basicConfig() to add a console handler with a
pre-defined format.
debug(msg, *args, **kwargs)
Log a message with severity 'DEBUG' on the root logger. If the logger has
no handlers, call basicConfig() to add a console handler with a pre-defined
format.
disable(level=50)
Disable all logging calls of severity 'level' and below.
error(msg, *args, **kwargs)
Log a message with severity 'ERROR' on the root logger. If the logger has
no handlers, call basicConfig() to add a console handler with a pre-defined
format.
exception(msg, *args, exc_info=True, **kwargs)
Log a message with severity 'ERROR' on the root logger, with exception
information. If the logger has no handlers, basicConfig() is called to add
a console handler with a pre-defined format.
fatal(msg, *args, **kwargs)
Don't use this function, use critical() instead.
getHandlerByName(name)
Get a handler with the specified *name*, or None if there isn't one with
that name.
getHandlerNames()
Return all known handler names as an immutable set.
getLevelName(level)
Return the textual or numeric representation of logging level 'level'.
If the level is one of the predefined levels (CRITICAL, ERROR, WARNING,
INFO, DEBUG) then you get the corresponding string. If you have
associated levels with names using addLevelName then the name you have
associated with 'level' is returned.
If a numeric value corresponding to one of the defined levels is passed
in, the corresponding string representation is returned.
If a string representation of the level is passed in, the corresponding
numeric value is returned.
If no matching numeric or string value is passed in, the string
'Level %s' % level is returned.
getLevelNamesMapping()
getLogRecordFactory()
Return the factory to be used when instantiating a log record.
getLogger(name=None)
Return a logger with the specified name, creating it if necessary.
If no name is specified, return the root logger.
getLoggerClass()
Return the class to be used when instantiating a logger.
info(msg, *args, **kwargs)
Log a message with severity 'INFO' on the root logger. If the logger has
no handlers, call basicConfig() to add a console handler with a pre-defined
format.
log(level, msg, *args, **kwargs)
Log 'msg % args' with the integer severity 'level' on the root logger. If
the logger has no handlers, call basicConfig() to add a console handler
with a pre-defined format.
makeLogRecord(dict)
Make a LogRecord whose attributes are defined by the specified dictionary,
This function is useful for converting a logging event received over
a socket connection (which is sent as a dictionary) into a LogRecord
instance.
setLogRecordFactory(factory)
Set the factory to be used when instantiating a log record.
:param factory: A callable which will be called to instantiate
a log record.
setLoggerClass(klass)
Set the class to be used when instantiating a logger. The class should
define __init__() such that only a name argument is required, and the
__init__() should call Logger.__init__()
shutdown(handlerList=[<weakref at 0x000001DE25012D40; to '_StderrHandler' at 0x000001DE250199D0>, <weakref at 0x000001DE269353A0; to 'NullHandler' at 0x000001DE26933650>])
Perform any cleanup actions in the logging system (e.g. flushing
buffers).
Should be called at application exit.
warn(msg, *args, **kwargs)
warning(msg, *args, **kwargs)
Log a message with severity 'WARNING' on the root logger. If the logger has
no handlers, call basicConfig() to add a console handler with a pre-defined
format.
DATA
BASIC_FORMAT = '%(levelname)s:%(name)s:%(message)s'
CRITICAL = 50
DEBUG = 10
ERROR = 40
FATAL = 50
INFO = 20
NOTSET = 0
WARN = 30
WARNING = 30
__all__ = ['BASIC_FORMAT', 'BufferingFormatter', 'CRITICAL', 'DEBUG', ...
__status__ = 'production'
lastResort = <_StderrHandler <stderr> (WARNING)>
raiseExceptions = True
VERSION
0.5.1.2
DATE
07 February 2010
AUTHOR
Vinay Sajip <vinay_sajip@red-dove.com>
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\logging\__init__.py
peewee.make_identifier
Python Library Documentation: function make_identifier in module peewee make_identifier(s)
peewee.make_snake_case
Python Library Documentation: function make_snake_case in module peewee make_snake_case(s)
peewee.merge_dict
Python Library Documentation: function merge_dict in module peewee
merge_dict(source, overrides)
# Helper functions that are used in various parts of the codebase.
peewee.multi_types
Python Library Documentation: tuple object class tuple(object) | tuple(iterable=(), /) | | Built-in immutable sequence. | | If no argument is given, the constructor returns an empty tuple. | If iterable is specified the tuple is initialized from iterable's items. | | If the argument is a tuple, the return value is the same object. | | Built-in subclasses: | asyncgen_hooks | UnraisableHookArgs | | Methods defined here: | | __add__(self, value, /) | Return self+value. | | __contains__(self, key, /) | Return bool(key in self). | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __getattribute__(self, name, /) | Return getattr(self, name). | | __getitem__(self, key, /) | Return self[key]. | | __getnewargs__(self, /) | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __iter__(self, /) | Implement iter(self). | | __le__(self, value, /) | Return self<=value. | | __len__(self, /) | Return len(self). | | __lt__(self, value, /) | Return self<value. | | __mul__(self, value, /) | Return self*value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | __rmul__(self, value, /) | Return value*self. | | count(self, value, /) | Return number of occurrences of value. | | index(self, value, start=0, stop=9223372036854775807, /) | Return first index of value. | | Raises ValueError if the value is not present. | | ---------------------------------------------------------------------- | Class methods defined here: | | __class_getitem__(...) | See PEP 585 | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) | Create and return a new object. See help(type) for accurate signature.
peewee.mysql
Python Library Documentation: package MySQLdb
NAME
MySQLdb - MySQLdb - A DB API v2.0 compatible interface to MySQL.
DESCRIPTION
This package is a wrapper around _mysql, which mostly implements the
MySQL C API.
connect() -- connects to server
See the C API specification and the MySQL documentation for more info
on other items.
For information on how MySQLdb handles type conversion, see the
MySQLdb.converters module.
PACKAGE CONTENTS
_exceptions
_mysql
connections
constants (package)
converters
cursors
release
times
SUBMODULES
FIELD_TYPE
CLASSES
builtins.Exception(builtins.BaseException)
MySQLError
Error
DatabaseError
DataError
IntegrityError
InternalError
NotSupportedError
OperationalError
ProgrammingError
InterfaceError
Warning(builtins.Warning, MySQLError)
builtins.Warning(builtins.Exception)
Warning(builtins.Warning, MySQLError)
builtins.frozenset(builtins.object)
DBAPISet
builtins.object
datetime.date
datetime.datetime
datetime.time
class DBAPISet(builtins.frozenset)
| A special type of set for which A == x is true if A is a
| DBAPISet and x is a member of that set.
|
| Method resolution order:
| DBAPISet
| builtins.frozenset
| builtins.object
|
| Methods defined here:
|
| __eq__(self, other)
| Return self==value.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.frozenset:
|
| __and__(self, value, /)
| Return self&value.
|
| __contains__(...)
| x.__contains__(y) <==> y in x.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __or__(self, value, /)
| Return self|value.
|
| __rand__(self, value, /)
| Return value&self.
|
| __reduce__(...)
| Return state information for pickling.
|
| __repr__(self, /)
| Return repr(self).
|
| __ror__(self, value, /)
| Return value|self.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(...)
| S.__sizeof__() -> size of S in memory, in bytes
|
| __sub__(self, value, /)
| Return self-value.
|
| __xor__(self, value, /)
| Return self^value.
|
| copy(...)
| Return a shallow copy of a set.
|
| difference(...)
| Return the difference of two or more sets as a new set.
|
| (i.e. all elements that are in this set but not the others.)
|
| intersection(...)
| Return the intersection of two sets as a new set.
|
| (i.e. all elements that are in both sets.)
|
| isdisjoint(...)
| Return True if two sets have a null intersection.
|
| issubset(self, other, /)
| Test whether every element in the set is in other.
|
| issuperset(self, other, /)
| Test whether every element in other is in the set.
|
| symmetric_difference(...)
| Return the symmetric difference of two sets as a new set.
|
| (i.e. all elements that are in exactly one of the sets.)
|
| union(...)
| Return the union of sets as a new set.
|
| (i.e. all elements that are in either set.)
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.frozenset:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.frozenset:
|
| __new__(*args, **kwargs) class method of builtins.frozenset
| Create and return a new object. See help(type) for accurate signature.
class DataError(DatabaseError)
| Exception raised for errors that are due to problems with the
| processed data like division by zero, numeric value out of range,
| etc.
|
| Method resolution order:
| DataError
| DatabaseError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DatabaseError(Error)
| Exception raised for errors that are related to the
| database.
|
| Method resolution order:
| DatabaseError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
Date = class date(builtins.object)
| date(year, month, day) --> date object
|
| Methods defined here:
|
| __add__(self, value, /)
| Return self+value.
|
| __eq__(self, value, /)
| Return self==value.
|
| __format__(...)
| Formats self with strftime.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __radd__(self, value, /)
| Return value+self.
|
| __reduce__(...)
| __reduce__() -> (cls, state)
|
| __repr__(self, /)
| Return repr(self).
|
| __rsub__(self, value, /)
| Return value-self.
|
| __str__(self, /)
| Return str(self).
|
| __sub__(self, value, /)
| Return self-value.
|
| ctime(...)
| Return ctime() style string.
|
| isocalendar(...)
| Return a named tuple containing ISO year, week number, and weekday.
|
| isoformat(...)
| Return string in ISO 8601 format, YYYY-MM-DD.
|
| isoweekday(...)
| Return the day of the week represented by the date.
| Monday == 1 ... Sunday == 7
|
| replace(...)
| Return date with new specified fields.
|
| strftime(...)
| format -> strftime() style string.
|
| timetuple(...)
| Return time tuple, compatible with time.localtime().
|
| toordinal(...)
| Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
|
| weekday(...)
| Return the day of the week represented by the date.
| Monday == 0 ... Sunday == 6
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromisocalendar(...)
| int, int, int -> Construct a date from the ISO year, week number and weekday.
|
| This is the inverse of the date.isocalendar() function
|
| fromisoformat(...)
| str -> Construct a date from a string in ISO 8601 format.
|
| fromordinal(...)
| int -> date corresponding to a proleptic Gregorian ordinal.
|
| fromtimestamp(timestamp, /)
| Create a date from a POSIX timestamp.
|
| The timestamp is a number, e.g. created via time.time(), that is interpreted
| as local time.
|
| today(...)
| Current date or datetime: same as self.__class__.fromtimestamp(time.time()).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| day
|
| month
|
| year
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.date(9999, 12, 31)
|
| min = datetime.date(1, 1, 1)
|
| resolution = datetime.timedelta(days=1)
class Error(MySQLError)
| Exception that is the base class of all other error exceptions
| (not Warning).
|
| Method resolution order:
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class IntegrityError(DatabaseError)
| Exception raised when the relational integrity of the database
| is affected, e.g. a foreign key check fails, duplicate key,
| etc.
|
| Method resolution order:
| IntegrityError
| DatabaseError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InterfaceError(Error)
| Exception raised for errors that are related to the database
| interface rather than the database itself.
|
| Method resolution order:
| InterfaceError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InternalError(DatabaseError)
| Exception raised when the database encounters an internal
| error, e.g. the cursor is not valid anymore, the transaction is
| out of sync, etc.
|
| Method resolution order:
| InternalError
| DatabaseError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class MySQLError(builtins.Exception)
| Exception related to operation with MySQL.
|
| Method resolution order:
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NotSupportedError(DatabaseError)
| Exception raised in case a method or database API was used
| which is not supported by the database, e.g. requesting a
| .rollback() on a connection that does not support transaction or
| has transactions turned off.
|
| Method resolution order:
| NotSupportedError
| DatabaseError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class OperationalError(DatabaseError)
| Exception raised for errors that are related to the database's
| operation and not necessarily under the control of the programmer,
| e.g. an unexpected disconnect occurs, the data source name is not
| found, a transaction could not be processed, a memory allocation
| error occurred during processing, etc.
|
| Method resolution order:
| OperationalError
| DatabaseError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ProgrammingError(DatabaseError)
| Exception raised for programming errors, e.g. table not found
| or already exists, syntax error in the SQL statement, wrong number
| of parameters specified, etc.
|
| Method resolution order:
| ProgrammingError
| DatabaseError
| Error
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from MySQLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
Time = class time(builtins.object)
| time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object
|
| All arguments are optional. tzinfo may be None, or an instance of
| a tzinfo subclass. The remaining arguments may be ints.
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __format__(...)
| Formats self with strftime.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(...)
| __reduce__() -> (cls, state)
|
| __reduce_ex__(...)
| __reduce_ex__(proto) -> (cls, state)
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| dst(...)
| Return self.tzinfo.dst(self).
|
| isoformat(...)
| Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
|
| The optional argument timespec specifies the number of additional terms
| of the time to include. Valid options are 'auto', 'hours', 'minutes',
| 'seconds', 'milliseconds' and 'microseconds'.
|
| replace(...)
| Return time with new specified fields.
|
| strftime(...)
| format -> strftime() style string.
|
| tzname(...)
| Return self.tzinfo.tzname(self).
|
| utcoffset(...)
| Return self.tzinfo.utcoffset(self).
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| fromisoformat(...)
| string -> time from a string in ISO 8601 format
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| fold
|
| hour
|
| microsecond
|
| minute
|
| second
|
| tzinfo
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.time(23, 59, 59, 999999)
|
| min = datetime.time(0, 0)
|
| resolution = datetime.timedelta(microseconds=1)
Timestamp = class datetime(date)
| datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
|
| The year, month and day arguments are required. tzinfo may be None, or an
| instance of a tzinfo subclass. The remaining arguments may be ints.
|
| Method resolution order:
| datetime
| date
| builtins.object
|
| Methods defined here:
|
| __add__(self, value, /)
| Return self+value.
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __radd__(self, value, /)
| Return value+self.
|
| __reduce__(...)
| __reduce__() -> (cls, state)
|
| __reduce_ex__(...)
| __reduce_ex__(proto) -> (cls, state)
|
| __repr__(self, /)
| Return repr(self).
|
| __rsub__(self, value, /)
| Return value-self.
|
| __str__(self, /)
| Return str(self).
|
| __sub__(self, value, /)
| Return self-value.
|
| astimezone(...)
| tz -> convert to local time in new timezone tz
|
| ctime(...)
| Return ctime() style string.
|
| date(...)
| Return date object with same year, month and day.
|
| dst(...)
| Return self.tzinfo.dst(self).
|
| isoformat(...)
| [sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
| sep is used to separate the year from the time, and defaults to 'T'.
| The optional argument timespec specifies the number of additional terms
| of the time to include. Valid options are 'auto', 'hours', 'minutes',
| 'seconds', 'milliseconds' and 'microseconds'.
|
| replace(...)
| Return datetime with new specified fields.
|
| time(...)
| Return time object with same time but with tzinfo=None.
|
| timestamp(...)
| Return POSIX timestamp as float.
|
| timetuple(...)
| Return time tuple, compatible with time.localtime().
|
| timetz(...)
| Return time object with same time and tzinfo.
|
| tzname(...)
| Return self.tzinfo.tzname(self).
|
| utcoffset(...)
| Return self.tzinfo.utcoffset(self).
|
| utctimetuple(...)
| Return UTC time tuple, compatible with time.localtime().
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| combine(...)
| date, time -> datetime with same date and time fields
|
| fromisoformat(...)
| string -> datetime from a string in most ISO 8601 formats
|
| fromtimestamp(...)
| timestamp[, tz] -> tz's local time from POSIX timestamp.
|
| now(tz=None)
| Returns new datetime object representing current time local to tz.
|
| tz
| Timezone object.
|
| If no tz is specified, uses local timezone.
|
| strptime(...)
| string, format -> new datetime parsed from a string (like time.strptime()).
|
| utcfromtimestamp(...)
| Construct a naive UTC datetime from a POSIX timestamp.
|
| utcnow(...)
| Return a new datetime representing UTC day and time.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| fold
|
| hour
|
| microsecond
|
| minute
|
| second
|
| tzinfo
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)
|
| min = datetime.datetime(1, 1, 1, 0, 0)
|
| resolution = datetime.timedelta(microseconds=1)
|
| ----------------------------------------------------------------------
| Methods inherited from date:
|
| __format__(...)
| Formats self with strftime.
|
| isocalendar(...)
| Return a named tuple containing ISO year, week number, and weekday.
|
| isoweekday(...)
| Return the day of the week represented by the date.
| Monday == 1 ... Sunday == 7
|
| strftime(...)
| format -> strftime() style string.
|
| toordinal(...)
| Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
|
| weekday(...)
| Return the day of the week represented by the date.
| Monday == 0 ... Sunday == 6
|
| ----------------------------------------------------------------------
| Class methods inherited from date:
|
| fromisocalendar(...)
| int, int, int -> Construct a date from the ISO year, week number and weekday.
|
| This is the inverse of the date.isocalendar() function
|
| fromordinal(...)
| int -> date corresponding to a proleptic Gregorian ordinal.
|
| today(...)
| Current date or datetime: same as self.__class__.fromtimestamp(time.time()).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from date:
|
| day
|
| month
|
| year
class Warning(builtins.Warning, MySQLError)
| Exception raised for important warnings like data truncations
| while inserting, etc.
|
| Method resolution order:
| Warning
| builtins.Warning
| MySQLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Warning:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
Binary(x)
Connect(*args, **kwargs)
Factory function for connections.Connection.
Connection = Connect(*args, **kwargs)
Factory function for connections.Connection.
DateFromTicks(ticks)
Convert UNIX ticks into a date instance.
TimeFromTicks(ticks)
Convert UNIX ticks into a time instance.
TimestampFromTicks(ticks)
Convert UNIX ticks into a datetime instance.
connect = Connect(*args, **kwargs)
Factory function for connections.Connection.
debug(...)
Does a DBUG_PUSH with the given string.
mysql_debug() uses the Fred Fish debug library.
To use this function, you must compile the client library to
support debugging.
get_client_info(...)
get_client_info() -- Returns a string that represents
the client library version.
string_literal(...)
string_literal(obj) -- converts object obj into a SQL string literal.
This means, any special SQL characters are escaped, and it is enclosed
within single quotes. In other words, it performs:
"'%s'" % escape_string(str(obj))
Use connection.string_literal(obj), if you use it at all.
_mysql.string_literal(obj) cannot handle character sets.
DATA
BINARY = DBAPISet({249, 250, 251, 252})
DATE = DBAPISet({10})
NUMBER = DBAPISet({0, 1, 3, 4, 5, 8, 9, 13, 246})
ROWID = DBAPISet()
STRING = DBAPISet({253, 254, 247})
TIME = DBAPISet({11})
TIMESTAMP = DBAPISet({12, 7})
__all__ = ['BINARY', 'Binary', 'Connect', 'Connection', 'DATE', 'Date'...
apilevel = '2.0'
paramstyle = 'format'
threadsafety = 1
version_info = (2, 2, 4, 'final', 0)
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\mysqldb\__init__.py
peewee.operator
Python Library Documentation: module operator
NAME
operator - Operator interface.
MODULE REFERENCE
https://docs.python.org/3.12/library/operator.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module exports a set of functions implemented in C corresponding
to the intrinsic operators of Python. For example, operator.add(x, y)
is equivalent to the expression x+y. The function names are those
used for special methods; variants without leading and trailing
'__' are also provided for convenience.
CLASSES
builtins.object
attrgetter
itemgetter
methodcaller
class attrgetter(builtins.object)
| attrgetter(attr, /, *attrs)
|
| Return a callable object that fetches the given attribute(s) from its operand.
| After f = attrgetter('name'), the call f(r) returns r.name.
| After g = attrgetter('name', 'date'), the call g(r) returns (r.name, r.date).
| After h = attrgetter('name.first', 'name.last'), the call h(r) returns
| (r.name.first, r.name.last).
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Return state information for pickling
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __vectorcalloffset__
class itemgetter(builtins.object)
| itemgetter(item, /, *items)
|
| Return a callable object that fetches the given item(s) from its operand.
| After f = itemgetter(2), the call f(r) returns r[2].
| After g = itemgetter(2, 5, 3), the call g(r) returns (r[2], r[5], r[3])
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Return state information for pickling
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __vectorcalloffset__
class methodcaller(builtins.object)
| methodcaller(name, /, *args, **kwargs)
|
| Return a callable object that calls the given method on its operand.
| After f = methodcaller('name'), the call f(r) returns r.name().
| After g = methodcaller('name', 'date', foo=1), the call g(r) returns
| r.name('date', foo=1).
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Return state information for pickling
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
FUNCTIONS
__abs__ = abs(a, /)
Same as abs(a).
__add__ = add(a, b, /)
Same as a + b.
__and__ = and_(a, b, /)
Same as a & b.
__call__ = call(obj, /, *args, **kwargs)
Same as obj(*args, **kwargs).
__concat__ = concat(a, b, /)
Same as a + b, for a and b sequences.
__contains__ = contains(a, b, /)
Same as b in a (note reversed operands).
__delitem__ = delitem(a, b, /)
Same as del a[b].
__eq__ = eq(a, b, /)
Same as a == b.
__floordiv__ = floordiv(a, b, /)
Same as a // b.
__ge__ = ge(a, b, /)
Same as a >= b.
__getitem__ = getitem(a, b, /)
Same as a[b].
__gt__ = gt(a, b, /)
Same as a > b.
__iadd__ = iadd(a, b, /)
Same as a += b.
__iand__ = iand(a, b, /)
Same as a &= b.
__iconcat__ = iconcat(a, b, /)
Same as a += b, for a and b sequences.
__ifloordiv__ = ifloordiv(a, b, /)
Same as a //= b.
__ilshift__ = ilshift(a, b, /)
Same as a <<= b.
__imatmul__ = imatmul(a, b, /)
Same as a @= b.
__imod__ = imod(a, b, /)
Same as a %= b.
__imul__ = imul(a, b, /)
Same as a *= b.
__index__ = index(a, /)
Same as a.__index__()
__inv__ = inv(a, /)
Same as ~a.
__invert__ = invert(a, /)
Same as ~a.
__ior__ = ior(a, b, /)
Same as a |= b.
__ipow__ = ipow(a, b, /)
Same as a **= b.
__irshift__ = irshift(a, b, /)
Same as a >>= b.
__isub__ = isub(a, b, /)
Same as a -= b.
__itruediv__ = itruediv(a, b, /)
Same as a /= b.
__ixor__ = ixor(a, b, /)
Same as a ^= b.
__le__ = le(a, b, /)
Same as a <= b.
__lshift__ = lshift(a, b, /)
Same as a << b.
__lt__ = lt(a, b, /)
Same as a < b.
__matmul__ = matmul(a, b, /)
Same as a @ b.
__mod__ = mod(a, b, /)
Same as a % b.
__mul__ = mul(a, b, /)
Same as a * b.
__ne__ = ne(a, b, /)
Same as a != b.
__neg__ = neg(a, /)
Same as -a.
__not__ = not_(a, /)
Same as not a.
__or__ = or_(a, b, /)
Same as a | b.
__pos__ = pos(a, /)
Same as +a.
__pow__ = pow(a, b, /)
Same as a ** b.
__rshift__ = rshift(a, b, /)
Same as a >> b.
__setitem__ = setitem(a, b, c, /)
Same as a[b] = c.
__sub__ = sub(a, b, /)
Same as a - b.
__truediv__ = truediv(a, b, /)
Same as a / b.
__xor__ = xor(a, b, /)
Same as a ^ b.
abs(a, /)
Same as abs(a).
add(a, b, /)
Same as a + b.
and_(a, b, /)
Same as a & b.
call(obj, /, *args, **kwargs)
Same as obj(*args, **kwargs).
concat(a, b, /)
Same as a + b, for a and b sequences.
contains(a, b, /)
Same as b in a (note reversed operands).
countOf(a, b, /)
Return the number of items in a which are, or which equal, b.
delitem(a, b, /)
Same as del a[b].
eq(a, b, /)
Same as a == b.
floordiv(a, b, /)
Same as a // b.
ge(a, b, /)
Same as a >= b.
getitem(a, b, /)
Same as a[b].
gt(a, b, /)
Same as a > b.
iadd(a, b, /)
Same as a += b.
iand(a, b, /)
Same as a &= b.
iconcat(a, b, /)
Same as a += b, for a and b sequences.
ifloordiv(a, b, /)
Same as a //= b.
ilshift(a, b, /)
Same as a <<= b.
imatmul(a, b, /)
Same as a @= b.
imod(a, b, /)
Same as a %= b.
imul(a, b, /)
Same as a *= b.
index(a, /)
Same as a.__index__()
indexOf(a, b, /)
Return the first index of b in a.
inv(a, /)
Same as ~a.
invert(a, /)
Same as ~a.
ior(a, b, /)
Same as a |= b.
ipow(a, b, /)
Same as a **= b.
irshift(a, b, /)
Same as a >>= b.
is_(a, b, /)
Same as a is b.
is_not(a, b, /)
Same as a is not b.
isub(a, b, /)
Same as a -= b.
itruediv(a, b, /)
Same as a /= b.
ixor(a, b, /)
Same as a ^= b.
le(a, b, /)
Same as a <= b.
length_hint(obj, default=0, /)
Return an estimate of the number of items in obj.
This is useful for presizing containers when building from an iterable.
If the object supports len(), the result will be exact.
Otherwise, it may over- or under-estimate by an arbitrary amount.
The result will be an integer >= 0.
lshift(a, b, /)
Same as a << b.
lt(a, b, /)
Same as a < b.
matmul(a, b, /)
Same as a @ b.
mod(a, b, /)
Same as a % b.
mul(a, b, /)
Same as a * b.
ne(a, b, /)
Same as a != b.
neg(a, /)
Same as -a.
not_(a, /)
Same as not a.
or_(a, b, /)
Same as a | b.
pos(a, /)
Same as +a.
pow(a, b, /)
Same as a ** b.
rshift(a, b, /)
Same as a >> b.
setitem(a, b, c, /)
Same as a[b] = c.
sub(a, b, /)
Same as a - b.
truediv(a, b, /)
Same as a / b.
truth(a, /)
Return True if a is true, False otherwise.
xor(a, b, /)
Same as a ^ b.
DATA
__all__ = ['abs', 'add', 'and_', 'attrgetter', 'call', 'concat', 'cont...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\operator.py
peewee.pg_extensions
Python Library Documentation: module psycopg2.extensions in psycopg2
NAME
psycopg2.extensions - psycopg extensions to the DBAPI-2.0
DESCRIPTION
This module holds all the extensions to the DBAPI-2.0 provided by psycopg.
- `connection` -- the new-type inheritable connection class
- `cursor` -- the new-type inheritable cursor class
- `lobject` -- the new-type inheritable large object class
- `adapt()` -- exposes the PEP-246_ compatible adapting mechanism used
by psycopg to adapt Python types to PostgreSQL ones
.. _PEP-246: https://www.python.org/dev/peps/pep-0246/
CLASSES
builtins.object
AsIs
Binary
Boolean
Column
ConnectionInfo
Diagnostics
Float
ISQLQuote
Int
NoneAdapter
Notify
QuotedString
SQL_IN
Xid
connection
cursor
lobject
psycopg2.OperationalError(psycopg2.DatabaseError)
QueryCanceledError
TransactionRollbackError
class AsIs(builtins.object)
| AsIs(str) -> new AsIs adapter object
|
| Methods defined here:
|
| __conform__(...)
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self, /)
| Return str(self).
|
| getquoted(...)
| getquoted() -> wrapped object value as SQL-quoted string
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| adapted
class Binary(builtins.object)
| Binary(buffer) -> new binary object
|
| Methods defined here:
|
| __conform__(...)
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self, /)
| Return str(self).
|
| getquoted(...)
| getquoted() -> wrapped object value as SQL-quoted binary string
|
| prepare(...)
| prepare(conn) -> prepare for binary encoding using conn
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| adapted
|
| buffer
class Boolean(builtins.object)
| Boolean(str) -> new Boolean adapter object
|
| Methods defined here:
|
| __conform__(...)
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self, /)
| Return str(self).
|
| getquoted(...)
| getquoted() -> wrapped object value as SQL-quoted string
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| adapted
class Column(builtins.object)
| Description of a column returned by a query.
|
| The DBAPI demands this object to be a 7-items sequence. This object
| respects this interface, but adds names for the exposed attributes
| and adds attribute not requested by the DBAPI.
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getstate__(...)
| Helper for pickle.
|
| __gt__(self, value, /)
| Return self>value.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| display_size
| The actual length of the column in bytes.
|
| Obtaining this value is computationally intensive, so it is always None
|
| internal_size
| The size in bytes of the column associated to this column on the server.
|
| Set to a negative value for variable-size types.
|
| name
| The name of the column returned.
|
| null_ok
| Always none.
|
| precision
| Total number of significant digits in columns of type NUMERIC.
|
| None for other types.
|
| scale
| Count of decimal digits in the fractional part in columns of type NUMERIC.
|
| None for other types.
|
| table_column
| The number (within its table) of the column making up the result
|
| None if not available. Note that PostgreSQL column numbers start at 1
|
| table_oid
| The OID of the table from which the column was fetched.
|
| None if not available
|
| type_code
| The PostgreSQL OID of the column.
|
| You can use the pg_type system table to get more informations about the
| type. This is the value used by Psycopg to decide what Python type use
| to represent the value
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
class ConnectionInfo(builtins.object)
| Details about the native PostgreSQL database connection.
|
| This class exposes several `informative functions`__ about the status
| of the libpq connection.
|
| Objects of this class are exposed as the `connection.info` attribute.
|
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| parameter_status(...)
| Looks up a current parameter setting of the server.
|
| :param name: The name of the parameter to return.
| :type name: `!str`
| :return: The parameter value, `!None` if the parameter is unknown.
| :rtype: `!str`
|
| .. seealso:: libpq docs for `PQparameterStatus()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPARAMETERSTATUS
|
| ssl_attribute(...)
| Returns SSL-related information about the connection.
|
| :param name: The name of the attribute to return.
| :type name: `!str`
| :return: The attribute value, `!None` if unknown.
| :rtype: `!str`
|
| Only available if psycopg was built with libpq >= 9.5; raise
| `~psycopg2.NotSupportedError` otherwise.
|
| Valid names are available in `ssl_attribute_names`.
|
| .. seealso:: libpq docs for `PQsslAttribute()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSSLATTRIBUTE
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| backend_pid
| The process ID (PID) of the backend process you connected to.
|
| :type: `!int`
|
| .. seealso:: libpq docs for `PQbackendPID()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQBACKENDPID
|
| dbname
| The database name of the connection.
|
| .. seealso:: libpq docs for `PQdb()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQDB
|
| dsn_parameters
| The effective connection parameters.
|
| :type: `!dict`
|
| The results include values which weren't explicitly set by the connection
| string, such as defaults, environment variables, etc.
| The *password* parameter is removed from the results.
|
| .. seealso:: libpq docs for `PQconninfo()`__ for details.
| .. __: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PQCONNINFO
|
| error_message
| The error message most recently generated by an operation on the connection.
|
| `!None` if there is no current message.
|
| .. seealso:: libpq docs for `PQerrorMessage()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQERRORMESSAGE
|
| host
| The server host name of the connection.
|
| This can be a host name, an IP address, or a directory path if the
| connection is via Unix socket. (The path case can be distinguished
| because it will always be an absolute path, beginning with ``/``.)
|
| .. seealso:: libpq docs for `PQhost()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQHOST
|
| needs_password
| The connection authentication method required a password, but none was available.
|
| :type: `!bool`
|
| .. seealso:: libpq docs for `PQconnectionNeedsPassword()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQCONNECTIONNEEDSPASSWORD
|
| options
| The command-line options passed in the connection request.
|
| .. seealso:: libpq docs for `PQoptions()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQOPTIONS
|
| password
| The password of the connection.
|
| .. seealso:: libpq docs for `PQpass()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPASS
|
| port
| The port of the connection.
|
| :type: `!int`
|
| .. seealso:: libpq docs for `PQport()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPORT
|
| protocol_version
| The frontend/backend protocol being used.
|
| :type: `!int`
|
| .. seealso:: libpq docs for `PQprotocolVersion()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPROTOCOLVERSION
|
| server_version
| Returns an integer representing the server version.
|
| :type: `!int`
|
| .. seealso:: libpq docs for `PQserverVersion()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSERVERVERSION
|
| socket
| The file descriptor number of the connection socket to the server.
|
| :type: `!int`
|
| .. seealso:: libpq docs for `PQsocket()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSOCKET
|
| ssl_attribute_names
| The list of the SSL attribute names available.
|
| :type: `!list` of `!str`
|
| Only available if psycopg was built with libpq >= 9.5; raise
| `~psycopg2.NotSupportedError` otherwise.
|
| .. seealso:: libpq docs for `PQsslAttributeNames()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSSLATTRIBUTENAMES
|
| ssl_in_use
| `!True` if the connection uses SSL, `!False` if not.
|
| Only available if psycopg was built with libpq >= 9.5; raise
| `~psycopg2.NotSupportedError` otherwise.
|
| :type: `!bool`
|
| .. seealso:: libpq docs for `PQsslInUse()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSSLINUSE
|
| status
| The status of the connection.
|
| :type: `!int`
|
| .. seealso:: libpq docs for `PQstatus()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSTATUS
|
| transaction_status
| The current in-transaction status of the connection.
|
| Symbolic constants for the values are defined in the module
| `psycopg2.extensions`: see :ref:`transaction-status-constants` for the
| available values.
|
| :type: `!int`
|
| .. seealso:: libpq docs for `PQtransactionStatus()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQTRANSACTIONSTATUS
|
| used_password
| The connection authentication method used a password.
|
| :type: `!bool`
|
| .. seealso:: libpq docs for `PQconnectionUsedPassword()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQCONNECTIONUSEDPASSWORD
|
| user
| The user name of the connection.
|
| .. seealso:: libpq docs for `PQuser()`__ for details.
| .. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQUSER
class Diagnostics(builtins.object)
| Details from a database error report.
|
| The object is returned by the `~psycopg2.Error.diag` attribute of the
| `!Error` object.
| All the information available from the |PQresultErrorField|_ function
| are exposed as attributes by the object, e.g. the `!severity` attribute
| returns the `!PG_DIAG_SEVERITY` code. Please refer to the `PostgreSQL documentation`__ for the meaning of all the attributes.
|
| .. |PQresultErrorField| replace:: `!PQresultErrorField()`
| .. _PQresultErrorField: https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQRESULTERRORFIELD
| .. __: PQresultErrorField_
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| column_name
|
| constraint_name
|
| context
|
| datatype_name
|
| internal_position
|
| internal_query
|
| message_detail
|
| message_hint
|
| message_primary
|
| schema_name
|
| severity
|
| severity_nonlocalized
|
| source_file
|
| source_function
|
| source_line
|
| sqlstate
|
| statement_position
|
| table_name
class Float(builtins.object)
| Float(str) -> new Float adapter object
|
| Methods defined here:
|
| __conform__(...)
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self, /)
| Return str(self).
|
| getquoted(...)
| getquoted() -> wrapped object value as SQL-quoted string
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| adapted
class ISQLQuote(builtins.object)
| Abstract ISQLQuote protocol
|
| An object conform to this protocol should expose a ``getquoted()`` method
| returning the SQL representation of the object.
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| getbinary(...)
| getbinary() -- return SQL-quoted binary representation of this object
|
| getbuffer(...)
| getbuffer() -- return this object
|
| getquoted(...)
| getquoted() -- return SQL-quoted representation of this object
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class Int(builtins.object)
| Int(str) -> new Int adapter object
|
| Methods defined here:
|
| __conform__(...)
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self, /)
| Return str(self).
|
| getquoted(...)
| getquoted() -> wrapped object value as SQL-quoted string
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| adapted
class NoneAdapter(builtins.object)
| NoneAdapter(obj)
|
| Adapt None to NULL.
|
| This adapter is not used normally as a fast path in mogrify uses NULL,
| but it makes easier to adapt composite types.
|
| Methods defined here:
|
| __init__(self, obj)
| Initialize self. See help(type(self)) for accurate signature.
|
| getquoted(self, _null=b'NULL')
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Notify(builtins.object)
| A notification received from the backend.
|
| `!Notify` instances are made available upon reception on the
| `~connection.notifies` member of the listening connection. The object
| can be also accessed as a 2 items tuple returning the members
| :samp:`({pid},{channel})` for backward compatibility.
|
| See :ref:`async-notify` for details.
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| channel
| The name of the channel to which the notification was sent.
|
| payload
| The payload message of the notification.
|
| Attaching a payload to a notification is only available since
| PostgreSQL 9.0: for notifications received from previous versions
| of the server this member is always the empty string.
|
| pid
| The ID of the backend process that sent the notification.
|
| Note: if the sending session was handled by Psycopg, you can use
| `~connection.info.backend_pid` to know its PID.
class QueryCanceledError(psycopg2.OperationalError)
| Error related to SQL query cancellation.
|
| Method resolution order:
| QueryCanceledError
| psycopg2.OperationalError
| psycopg2.DatabaseError
| psycopg2.Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from psycopg2.DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from psycopg2.Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from psycopg2.Error:
|
| __new__(*args, **kwargs) class method of psycopg2.Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from psycopg2.Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class QuotedString(builtins.object)
| QuotedString(str) -> new quoted object
|
| Methods defined here:
|
| __conform__(...)
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self, /)
| Return str(self).
|
| getquoted(...)
| getquoted() -> wrapped object value as SQL-quoted string
|
| prepare(...)
| prepare(conn) -> set encoding to conn->encoding and store conn
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| adapted
|
| buffer
|
| encoding
| current encoding of the adapter
class SQL_IN(builtins.object)
| SQL_IN(seq)
|
| Adapt any iterable to an SQL quotable object.
|
| Methods defined here:
|
| __init__(self, seq)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| getquoted(self)
|
| prepare(self, conn)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class TransactionRollbackError(psycopg2.OperationalError)
| Error causing transaction rollback (deadlocks, serialization failures, etc).
|
| Method resolution order:
| TransactionRollbackError
| psycopg2.OperationalError
| psycopg2.DatabaseError
| psycopg2.Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from psycopg2.DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from psycopg2.Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from psycopg2.Error:
|
| __new__(*args, **kwargs) class method of psycopg2.Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from psycopg2.Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Xid(builtins.object)
| A transaction identifier used for two-phase commit.
|
| Usually returned by the connection methods `~connection.xid()` and
| `~connection.tpc_recover()`.
| `!Xid` instances can be unpacked as a 3-item tuples containing the items
| :samp:`({format_id},{gtrid},{bqual})`.
| The `!str()` of the object returns the *transaction ID* used
| in the commands sent to the server.
|
| See :ref:`tpc` for an introduction.
|
| Methods defined here:
|
| __getitem__(self, key, /)
| Return self[key].
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __len__(self, /)
| Return len(self).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| from_string(...)
| Create a `!Xid` object from a string representation. Static method.
|
| If *s* is a PostgreSQL transaction ID produced by a XA transaction,
| the returned object will have `format_id`, `gtrid`, `bqual` set to
| the values of the preparing XA id.
| Otherwise only the `!gtrid` is populated with the unparsed string.
| The operation is the inverse of the one performed by `!str(xid)`.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| bqual
| Branch qualifier of the transaction.
|
| In a XA transaction every resource participating to a transaction
| receives a distinct branch qualifier.
| `!None` if the transaction doesn't follow the XA standard.
|
| database
| Database the recovered transaction belongs to.
|
| format_id
| Format ID in a XA transaction.
|
| A non-negative 32 bit integer.
| `!None` if the transaction doesn't follow the XA standard.
|
| gtrid
| Global transaction ID in a XA transaction.
|
| If the transaction doesn't follow the XA standard, it is the plain
| *transaction ID* used in the server commands.
|
| owner
| Name of the user who prepared a recovered transaction.
|
| prepared
| Timestamp (with timezone) in which a recovered transaction was prepared.
class connection(builtins.object)
| connection(dsn, ...) -> new connection object
|
| :Groups:
| * `DBAPI-2.0 errors`: Error, Warning, InterfaceError,
| DatabaseError, InternalError, OperationalError,
| ProgrammingError, IntegrityError, DataError, NotSupportedError
|
| Methods defined here:
|
| __enter__(...)
| __enter__ -> self
|
| __exit__(...)
| __exit__ -- commit if no exception, else roll back
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| cancel(...)
| cancel() -- cancel the current operation
|
| close(...)
| close() -- Close the connection.
|
| commit(...)
| commit() -- Commit all changes to database.
|
| cursor(...)
| cursor(name=None, cursor_factory=extensions.cursor, withhold=False) -- new cursor
|
| Return a new cursor.
|
| The ``cursor_factory`` argument can be used to
| create non-standard cursors by passing a class different from the
| default. Note that the new class *should* be a sub-class of
| `extensions.cursor`.
|
| :rtype: `extensions.cursor`
|
| fileno(...)
| fileno() -> int -- Return file descriptor associated to database connection.
|
| get_backend_pid(...)
| get_backend_pid() -- Get backend process id.
|
| get_dsn_parameters(...)
| get_dsn_parameters() -- Get effective connection parameters.
|
| get_native_connection(...)
| get_native_connection() -- Return the internal PGconn* as a Python Capsule.
|
| get_parameter_status(...)
| get_parameter_status(parameter) -- Get backend parameter status.
|
| Potential values for ``parameter``:
| server_version, server_encoding, client_encoding, is_superuser,
| session_authorization, DateStyle, TimeZone, integer_datetimes,
| and standard_conforming_strings
| If server did not report requested parameter, None is returned.
|
| See libpq docs for PQparameterStatus() for further details.
|
| get_transaction_status(...)
| get_transaction_status() -- Get backend transaction status.
|
| isexecuting(...)
| isexecuting() -> bool -- Return True if the connection is executing an asynchronous operation.
|
| lobject(...)
| lobject(oid=0, mode=0, new_oid=0, new_file=None,
| lobject_factory=extensions.lobject) -- new lobject
|
| Return a new lobject.
|
| The ``lobject_factory`` argument can be used
| to create non-standard lobjects by passing a class different from the
| default. Note that the new class *should* be a sub-class of
| `extensions.lobject`.
|
| :rtype: `extensions.lobject`
|
| poll(...)
| poll() -> int -- Advance the connection or query process without blocking.
|
| reset(...)
| reset() -- Reset current connection to defaults.
|
| rollback(...)
| rollback() -- Roll back all changes done to database.
|
| set_client_encoding(...)
| set_client_encoding(encoding) -- Set client encoding to ``encoding``.
|
| set_isolation_level(...)
| set_isolation_level(level) -- Switch isolation level to ``level``.
|
| set_session(...)
| set_session(...) -- Set one or more parameters for the next transactions.
|
| Accepted arguments are 'isolation_level', 'readonly', 'deferrable', 'autocommit'.
|
| tpc_begin(...)
| tpc_begin(xid) -- begin a TPC transaction with given transaction ID xid.
|
| tpc_commit(...)
| tpc_commit([xid]) -- commit a transaction previously prepared.
|
| tpc_prepare(...)
| tpc_prepare() -- perform the first phase of a two-phase transaction.
|
| tpc_recover(...)
| tpc_recover() -- returns a list of pending transaction IDs.
|
| tpc_rollback(...)
| tpc_rollback([xid]) -- abort a transaction previously prepared.
|
| xid(...)
| xid(format_id, gtrid, bqual) -- create a transaction identifier.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| DataError
| Error related to problems with the processed data.
|
| DatabaseError
| Error related to the database engine.
|
| Error
| Base class for error exceptions.
|
| IntegrityError
| Error related to database integrity.
|
| InterfaceError
| Error related to the database interface.
|
| InternalError
| The database encountered an internal error.
|
| NotSupportedError
| A method or database API was used which is not supported by the database.
|
| OperationalError
| Error related to database operation (disconnect, memory allocation etc).
|
| ProgrammingError
| Error related to database programming (SQL error, table not found etc).
|
| Warning
| A database warning.
|
| async
| True if the connection is asynchronous.
|
| async_
| True if the connection is asynchronous.
|
| autocommit
| Set or return the autocommit status.
|
| binary_types
| A set of typecasters to convert binary values.
|
| closed
| True if the connection is closed.
|
| cursor_factory
| Default cursor_factory for cursor().
|
| deferrable
| Set or return the connection deferrable status.
|
| dsn
| The current connection string.
|
| encoding
| The current client encoding.
|
| info
| info -- Get connection info.
|
| isolation_level
| Set or return the connection transaction isolation level.
|
| notices
|
| notifies
|
| pgconn_ptr
| pgconn_ptr -- Get the PGconn structure pointer.
|
| protocol_version
| Protocol version used for this connection. Currently always 3.
|
| readonly
| Set or return the connection read-only status.
|
| server_version
| Server version.
|
| status
| The current transaction status.
|
| string_types
| A set of typecasters to convert textual values.
class cursor(builtins.object)
| A database cursor.
|
| Methods defined here:
|
| __enter__(...)
| __enter__ -> self
|
| __exit__(...)
| __exit__ -- close the cursor
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| callproc(...)
| callproc(procname, parameters=None) -- Execute stored procedure.
|
| cast(...)
| cast(oid, s) -> value
|
| Convert the string s to a Python object according to its oid.
|
| Look for a typecaster first in the cursor, then in its connection,then in the global register. If no suitable typecaster is found,leave the value as a string.
|
| close(...)
| close() -- Close the cursor.
|
| copy_expert(...)
| copy_expert(sql, file, size=8192) -- Submit a user-composed COPY statement.
| `file` must be an open, readable file for COPY FROM or an open, writable
| file for COPY TO. The optional `size` argument, when specified for a COPY
| FROM statement, will be passed to file's read method to control the read
| buffer size.
|
| copy_from(...)
| copy_from(file, table, sep='\t', null='\\N', size=8192, columns=None) -- Copy table from file.
|
| copy_to(...)
| copy_to(file, table, sep='\t', null='\\N', columns=None) -- Copy table to file.
|
| execute(...)
| execute(query, vars=None) -- Execute query with bound vars.
|
| executemany(...)
| executemany(query, vars_list) -- Execute many queries with bound vars.
|
| fetchall(...)
| fetchall() -> list of tuple
|
| Return all the remaining rows of a query result set.
|
| Rows are returned in the form of a list of tuples (by default) or using
| the sequence factory previously set in the `row_factory` attribute.
| Return `!None` when no more data is available.
|
| fetchmany(...)
| fetchmany(size=self.arraysize) -> list of tuple
|
| Return the next `size` rows of a query result set in the form of a list
| of tuples (by default) or using the sequence factory previously set in
| the `row_factory` attribute.
|
| Return an empty list when no more data is available.
|
| fetchone(...)
| fetchone() -> tuple or None
|
| Return the next row of a query result set in the form of a tuple (by
| default) or using the sequence factory previously set in the
| `row_factory` attribute. Return `!None` when no more data is available.
|
| mogrify(...)
| mogrify(query, vars=None) -> str -- Return query after vars binding.
|
| nextset(...)
| nextset() -- Skip to next set of data.
|
| This method is not supported (PostgreSQL does not have multiple data
| sets) and will raise a NotSupportedError exception.
|
| scroll(...)
| scroll(value, mode='relative') -- Scroll to new position according to mode.
|
| setinputsizes(...)
| setinputsizes(sizes) -- Set memory areas before execute.
|
| This method currently does nothing but it is safe to call it.
|
| setoutputsize(...)
| setoutputsize(size, column=None) -- Set column buffer size.
|
| This method currently does nothing but it is safe to call it.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| arraysize
| Number of records `fetchmany()` must fetch if not explicitly specified.
|
| binary_types
|
| closed
| True if cursor is closed, False if cursor is open
|
| connection
| The connection where the cursor comes from.
|
| description
| Cursor description as defined in DBAPI-2.0.
|
| itersize
| Number of records ``iter(cur)`` must fetch per network roundtrip.
|
| lastrowid
| The ``oid`` of the last row inserted by the cursor.
|
| name
|
| pgresult_ptr
| pgresult_ptr -- Get the PGresult structure pointer.
|
| query
| The last query text sent to the backend.
|
| row_factory
|
| rowcount
| Number of rows read from the backend in the last command.
|
| rownumber
| The current row position.
|
| scrollable
| Set or return cursor use of SCROLL
|
| statusmessage
| The return message of the last command.
|
| string_types
|
| typecaster
|
| tzinfo_factory
|
| withhold
| Set or return cursor use of WITH HOLD
class lobject(builtins.object)
| A database large object.
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| close(...)
| close() -- Close the lobject.
|
| export(...)
| export(filename) -- Export large object to given file.
|
| read(...)
| read(size=-1) -- Read at most size bytes or to the end of the large object.
|
| seek(...)
| seek(offset, whence=0) -- Set the lobject's current position.
|
| tell(...)
| tell() -- Return the lobject's current position.
|
| truncate(...)
| truncate(len=0) -- Truncate large object to given size.
|
| unlink(...)
| unlink() -- Close and then remove the lobject.
|
| write(...)
| write(str | bytes) -- Write a string or bytes to the large object.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
| The if the large object is closed (no file-like methods).
|
| mode
| Open mode.
|
| oid
| The backend OID associated to this lobject.
FUNCTIONS
DateFromPy(...)
DateFromPy(datetime.date) -> new wrapper
IntervalFromPy(...)
IntervalFromPy(datetime.timedelta) -> new wrapper
TimeFromPy(...)
TimeFromPy(datetime.time) -> new wrapper
TimestampFromPy(...)
TimestampFromPy(datetime.datetime) -> new wrapper
adapt(...)
adapt(obj, protocol, alternate) -> object -- adapt obj to given protocol
encrypt_password(...)
encrypt_password(password, user, [scope], [algorithm]) -- Prepares the encrypted form of a PostgreSQL password.
get_wait_callback(...)
Return the currently registered wait callback.
Return `!None` if no callback is currently registered.
libpq_version(...)
Query actual libpq version loaded.
make_dsn(dsn=None, **kwargs)
Convert a set of keywords into a connection strings.
new_array_type(...)
new_array_type(oids, name, baseobj) -> new type object
Create a new binding object to parse an array.
The object can be used with `register_type()`.
:Parameters:
* `oids`: Tuple of ``oid`` of the PostgreSQL types to convert.
* `name`: Name for the new type
* `baseobj`: Adapter to perform type conversion of a single array item.
new_type(...)
new_type(oids, name, castobj) -> new type object
Create a new binding object. The object can be used with the
`register_type()` function to bind PostgreSQL objects to python objects.
:Parameters:
* `oids`: Tuple of ``oid`` of the PostgreSQL types to convert.
* `name`: Name for the new type
* `adapter`: Callable to perform type conversion.
It must have the signature ``fun(value, cur)`` where ``value`` is
the string representation returned by PostgreSQL (`!None` if ``NULL``)
and ``cur`` is the cursor from which data are read.
parse_dsn(...)
parse_dsn(dsn) -> dict -- parse a connection string into parameters
quote_ident(...)
quote_ident(str, conn_or_curs) -> str -- wrapper around PQescapeIdentifier
:Parameters:
* `str`: A bytes or unicode object
* `conn_or_curs`: A connection or cursor, required
register_adapter(typ, callable)
Register 'callable' as an ISQLQuote adapter for type 'typ'.
register_type(...)
register_type(obj, conn_or_curs) -> None -- register obj with psycopg type system
:Parameters:
* `obj`: A type adapter created by `new_type()`
* `conn_or_curs`: A connection, cursor or None
set_wait_callback(...)
Register a callback function to block waiting for data.
The callback should have signature :samp:`fun({conn})` and
is called to wait for data available whenever a blocking function from the
libpq is called. Use `!set_wait_callback(None)` to revert to the
original behaviour (i.e. using blocking libpq functions).
The function is an hook to allow coroutine-based libraries (such as
Eventlet_ or gevent_) to switch when Psycopg is blocked, allowing
other coroutines to run concurrently.
See `~psycopg2.extras.wait_select()` for an example of a wait callback
implementation.
.. _Eventlet: https://eventlet.net/
.. _gevent: http://www.gevent.org/
DATA
BINARYARRAY = <psycopg2._psycopg.type 'BINARYARRAY'>
BOOLEAN = <psycopg2._psycopg.type 'BOOLEAN'>
BOOLEANARRAY = <psycopg2._psycopg.type 'BOOLEANARRAY'>
BYTES = <psycopg2._psycopg.type 'BYTES'>
BYTESARRAY = <psycopg2._psycopg.type 'BYTESARRAY'>
DATE = <psycopg2._psycopg.type 'DATE'>
DATEARRAY = <psycopg2._psycopg.type 'DATEARRAY'>
DATETIMEARRAY = <psycopg2._psycopg.type 'DATETIMEARRAY'>
DECIMAL = <psycopg2._psycopg.type 'DECIMAL'>
DECIMALARRAY = <psycopg2._psycopg.type 'DECIMALARRAY'>
FLOAT = <psycopg2._psycopg.type 'FLOAT'>
FLOATARRAY = <psycopg2._psycopg.type 'FLOATARRAY'>
INTEGER = <psycopg2._psycopg.type 'INTEGER'>
INTEGERARRAY = <psycopg2._psycopg.type 'INTEGERARRAY'>
INTERVAL = <psycopg2._psycopg.type 'INTERVAL'>
INTERVALARRAY = <psycopg2._psycopg.type 'INTERVALARRAY'>
ISOLATION_LEVEL_AUTOCOMMIT = 0
ISOLATION_LEVEL_DEFAULT = None
ISOLATION_LEVEL_READ_COMMITTED = 1
ISOLATION_LEVEL_READ_UNCOMMITTED = 4
ISOLATION_LEVEL_REPEATABLE_READ = 2
ISOLATION_LEVEL_SERIALIZABLE = 3
JSON = <psycopg2._psycopg.type 'JSON'>
JSONARRAY = <psycopg2._psycopg.type 'JSONARRAY'>
JSONB = <psycopg2._psycopg.type 'JSONB'>
JSONBARRAY = <psycopg2._psycopg.type 'JSONBARRAY'>
LONGINTEGER = <psycopg2._psycopg.type 'LONGINTEGER'>
LONGINTEGERARRAY = <psycopg2._psycopg.type 'LONGINTEGERARRAY'>
POLL_ERROR = 3
POLL_OK = 0
POLL_READ = 1
POLL_WRITE = 2
PYDATE = <psycopg2._psycopg.type 'PYDATE'>
PYDATEARRAY = <psycopg2._psycopg.type 'PYDATEARRAY'>
PYDATETIME = <psycopg2._psycopg.type 'PYDATETIME'>
PYDATETIMEARRAY = <psycopg2._psycopg.type 'PYDATETIMEARRAY'>
PYDATETIMETZ = <psycopg2._psycopg.type 'PYDATETIMETZ'>
PYDATETIMETZARRAY = <psycopg2._psycopg.type 'PYDATETIMETZARRAY'>
PYINTERVAL = <psycopg2._psycopg.type 'PYINTERVAL'>
PYINTERVALARRAY = <psycopg2._psycopg.type 'PYINTERVALARRAY'>
PYTIME = <psycopg2._psycopg.type 'PYTIME'>
PYTIMEARRAY = <psycopg2._psycopg.type 'PYTIMEARRAY'>
ROWIDARRAY = <psycopg2._psycopg.type 'ROWIDARRAY'>
STATUS_ASYNC = 4
STATUS_BEGIN = 2
STATUS_IN_TRANSACTION = 2
STATUS_PREPARED = 5
STATUS_READY = 1
STATUS_SETUP = 0
STATUS_SYNC = 3
STRINGARRAY = <psycopg2._psycopg.type 'STRINGARRAY'>
TIME = <psycopg2._psycopg.type 'TIME'>
TIMEARRAY = <psycopg2._psycopg.type 'TIMEARRAY'>
TRANSACTION_STATUS_ACTIVE = 1
TRANSACTION_STATUS_IDLE = 0
TRANSACTION_STATUS_INERROR = 3
TRANSACTION_STATUS_INTRANS = 2
TRANSACTION_STATUS_UNKNOWN = 4
UNICODE = <psycopg2._psycopg.type 'UNICODE'>
UNICODEARRAY = <psycopg2._psycopg.type 'UNICODEARRAY'>
UUID = <psycopg2._psycopg.type 'UUID'>
UUIDARRAY = <psycopg2._psycopg.type 'UUID[]'>
adapters = {(<class 'float'>, <class 'psycopg2.extensions.ISQLQuote'>)...
binary_types = {}
encodings = {'ABC': 'cp1258', 'ALT': 'cp866', 'BIG5': 'big5', 'EUCCN':...
string_types = {16: <psycopg2._psycopg.type 'BOOLEAN'>, 17: <psycopg2....
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\psycopg2\extensions.py
peewee.pg_register_uuid
Python Library Documentation: function register_uuid in module psycopg2.extras
register_uuid(oids=None, conn_or_curs=None)
Create the UUID type and an uuid.UUID adapter.
:param oids: oid for the PostgreSQL :sql:`uuid` type, or 2-items sequence
with oids of the type and the array. If not specified, use PostgreSQL
standard oids.
:param conn_or_curs: where to register the typecaster. If not specified,
register it globally.
peewee.prefetch
Python Library Documentation: function prefetch in module peewee prefetch(sq, *subqueries, **kwargs)
peewee.prefetch_add_subquery
Python Library Documentation: function prefetch_add_subquery in module peewee prefetch_add_subquery(sq, subqueries, prefetch_type)
peewee.psycopg
Python Library Documentation: NoneType object class NoneType(object) | Methods defined here: | | __bool__(self, /) | True if self else False | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) | Create and return a new object. See help(type) for accurate signature.
peewee.psycopg2
Python Library Documentation: package psycopg2
NAME
psycopg2 - A Python driver for PostgreSQL
DESCRIPTION
psycopg is a PostgreSQL_ database adapter for the Python_ programming
language. This is version 2, a complete rewrite of the original code to
provide new-style classes for connection and cursor objects and other sweet
candies. Like the original, psycopg 2 was written with the aim of being very
small and fast, and stable as a rock.
Homepage: https://psycopg.org/
.. _PostgreSQL: https://www.postgresql.org/
.. _Python: https://www.python.org/
:Groups:
* `Connections creation`: connect
* `Value objects constructors`: Binary, Date, DateFromTicks, Time,
TimeFromTicks, Timestamp, TimestampFromTicks
PACKAGE CONTENTS
_ipaddress
_json
_psycopg
_range
errorcodes
errors
extensions
extras
pool
sql
tz
SUBMODULES
_ext
CLASSES
builtins.Exception(builtins.BaseException)
Error
DatabaseError
DataError
IntegrityError
InternalError
NotSupportedError
OperationalError
ProgrammingError
InterfaceError
Warning
class DataError(DatabaseError)
| Error related to problems with the processed data.
|
| Method resolution order:
| DataError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DatabaseError(Error)
| Error related to the database engine.
|
| Method resolution order:
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Error(builtins.Exception)
| Base class for error exceptions.
|
| Method resolution order:
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class IntegrityError(DatabaseError)
| Error related to database integrity.
|
| Method resolution order:
| IntegrityError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InterfaceError(Error)
| Error related to the database interface.
|
| Method resolution order:
| InterfaceError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InternalError(DatabaseError)
| The database encountered an internal error.
|
| Method resolution order:
| InternalError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NotSupportedError(DatabaseError)
| A method or database API was used which is not supported by the database.
|
| Method resolution order:
| NotSupportedError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class OperationalError(DatabaseError)
| Error related to database operation (disconnect, memory allocation etc).
|
| Method resolution order:
| OperationalError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ProgrammingError(DatabaseError)
| Error related to database programming (SQL error, table not found etc).
|
| Method resolution order:
| ProgrammingError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from DatabaseError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from Error:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __setstate__(...)
|
| ----------------------------------------------------------------------
| Static methods inherited from Error:
|
| __new__(*args, **kwargs) class method of Error
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Error:
|
| cursor
| The cursor that raised the exception, if available, else None
|
| diag
| A Diagnostics object to get further information about the error
|
| pgcode
| The error code returned by the backend, if available, else None
|
| pgerror
| The error message returned by the backend, if available, else None
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Warning(builtins.Exception)
| A database warning.
|
| Method resolution order:
| Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
Date(...)
Date(year, month, day) -> new date
Build an object holding a date value.
DateFromTicks(...)
DateFromTicks(ticks) -> new date
Build an object holding a date value from the given ticks value.
Ticks are the number of seconds since the epoch; see the documentation of the standard Python time module for details).
Time(...)
Time(hour, minutes, seconds, tzinfo=None) -> new time
Build an object holding a time value.
TimeFromTicks(...)
TimeFromTicks(ticks) -> new time
Build an object holding a time value from the given ticks value.
Ticks are the number of seconds since the epoch; see the documentation of the standard Python time module for details).
Timestamp(...)
Timestamp(year, month, day, hour, minutes, seconds, tzinfo=None) -> new timestamp
Build an object holding a timestamp value.
TimestampFromTicks(...)
TimestampFromTicks(ticks) -> new timestamp
Build an object holding a timestamp value from the given ticks value.
Ticks are the number of seconds since the epoch; see the documentation of the standard Python time module for details).
connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs)
Create a new database connection.
The connection parameters can be specified as a string:
conn = psycopg2.connect("dbname=test user=postgres password=secret")
or using a set of keyword arguments:
conn = psycopg2.connect(database="test", user="postgres", password="secret")
Or as a mix of both. The basic connection parameters are:
- *dbname*: the database name
- *database*: the database name (only as keyword argument)
- *user*: user name used to authenticate
- *password*: password used to authenticate
- *host*: database host address (defaults to UNIX socket if not provided)
- *port*: connection port number (defaults to 5432 if not provided)
Using the *connection_factory* parameter a different class or connections
factory can be specified. It should be a callable object taking a dsn
argument.
Using the *cursor_factory* parameter, a new default cursor factory will be
used by cursor().
Using *async*=True an asynchronous connection will be created. *async_* is
a valid alias (for Python versions where ``async`` is a keyword).
Any other keyword parameter will be passed to the underlying client
library: the list of supported parameters depends on the library version.
DATA
BINARY = <psycopg2._psycopg.type 'BINARY'>
DATETIME = <psycopg2._psycopg.type 'DATETIME'>
NUMBER = <psycopg2._psycopg.type 'NUMBER'>
ROWID = <psycopg2._psycopg.type 'ROWID'>
STRING = <psycopg2._psycopg.type 'STRING'>
__libpq_version__ = 180003
apilevel = '2.0'
paramstyle = 'pyformat'
threadsafety = 2
VERSION
2.9.12 (dt dec pq3 ext lo64)
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\psycopg2\__init__.py
peewee.pysq3
Python Library Documentation: NoneType object class NoneType(object) | Methods defined here: | | __bool__(self, /) | True if self else False | | __eq__(self, value, /) | Return self==value. | | __ge__(self, value, /) | Return self>=value. | | __gt__(self, value, /) | Return self>value. | | __hash__(self, /) | Return hash(self). | | __le__(self, value, /) | Return self<=value. | | __lt__(self, value, /) | Return self<value. | | __ne__(self, value, /) | Return self!=value. | | __repr__(self, /) | Return repr(self). | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) | Create and return a new object. See help(type) for accurate signature.
peewee.qesc
Python Library Documentation: function qesc in module peewee qesc(s, q='"')
peewee.qualify_names
Python Library Documentation: function qualify_names in module peewee qualify_names(node)
peewee.query_to_string
Python Library Documentation: function query_to_string in module peewee query_to_string(query)
peewee.quote
Python Library Documentation: function quote in module peewee quote(path, quote_chars)
peewee.re
Python Library Documentation: package re
NAME
re - Support for regular expressions (RE).
MODULE REFERENCE
https://docs.python.org/3.12/library/re.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module provides regular expression matching operations similar to
those found in Perl. It supports both 8-bit and Unicode strings; both
the pattern and the strings being processed can contain null bytes and
characters outside the US ASCII range.
Regular expressions can contain both special and ordinary characters.
Most ordinary characters, like "A", "a", or "0", are the simplest
regular expressions; they simply match themselves. You can
concatenate ordinary characters, so last matches the string 'last'.
The special characters are:
"." Matches any character except a newline.
"^" Matches the start of the string.
"$" Matches the end of the string or just before the newline at
the end of the string.
"*" Matches 0 or more (greedy) repetitions of the preceding RE.
Greedy means that it will match as many repetitions as possible.
"+" Matches 1 or more (greedy) repetitions of the preceding RE.
"?" Matches 0 or 1 (greedy) of the preceding RE.
*?,+?,?? Non-greedy versions of the previous three special characters.
{m,n} Matches from m to n repetitions of the preceding RE.
{m,n}? Non-greedy version of the above.
"\\" Either escapes special characters or signals a special sequence.
[] Indicates a set of characters.
A "^" as the first character indicates a complementing set.
"|" A|B, creates an RE that will match either A or B.
(...) Matches the RE inside the parentheses.
The contents can be retrieved or matched later in the string.
(?aiLmsux) The letters set the corresponding flags defined below.
(?:...) Non-grouping version of regular parentheses.
(?P<name>...) The substring matched by the group is accessible by name.
(?P=name) Matches the text matched earlier by the group named name.
(?#...) A comment; ignored.
(?=...) Matches if ... matches next, but doesn't consume the string.
(?!...) Matches if ... doesn't match next.
(?<=...) Matches if preceded by ... (must be fixed length).
(?<!...) Matches if not preceded by ... (must be fixed length).
(?(id/name)yes|no) Matches yes pattern if the group with id/name matched,
the (optional) no pattern otherwise.
The special sequences consist of "\\" and a character from the list
below. If the ordinary character is not on the list, then the
resulting RE will match the second character.
\number Matches the contents of the group of the same number.
\A Matches only at the start of the string.
\Z Matches only at the end of the string.
\b Matches the empty string, but only at the start or end of a word.
\B Matches the empty string, but not at the start or end of a word.
\d Matches any decimal digit; equivalent to the set [0-9] in
bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the whole
range of Unicode digits.
\D Matches any non-digit character; equivalent to [^\d].
\s Matches any whitespace character; equivalent to [ \t\n\r\f\v] in
bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the whole
range of Unicode whitespace characters.
\S Matches any non-whitespace character; equivalent to [^\s].
\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
in bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the
range of Unicode alphanumeric characters (letters plus digits
plus underscore).
With LOCALE, it will match the set [0-9_] plus characters defined
as letters for the current locale.
\W Matches the complement of \w.
\\ Matches a literal backslash.
This module exports the following functions:
match Match a regular expression pattern to the beginning of a string.
fullmatch Match a regular expression pattern to all of a string.
search Search a string for the presence of a pattern.
sub Substitute occurrences of a pattern found in a string.
subn Same as sub, but also return the number of substitutions made.
split Split a string by the occurrences of a pattern.
findall Find all occurrences of a pattern in a string.
finditer Return an iterator yielding a Match object for each match.
compile Compile a pattern into a Pattern object.
purge Clear the regular expression cache.
escape Backslash all non-alphanumerics in a string.
Each function other than purge and escape can take an optional 'flags' argument
consisting of one or more of the following module constants, joined by "|".
A, L, and U are mutually exclusive.
A ASCII For string patterns, make \w, \W, \b, \B, \d, \D
match the corresponding ASCII character categories
(rather than the whole Unicode categories, which is the
default).
For bytes patterns, this flag is the only available
behaviour and needn't be specified.
I IGNORECASE Perform case-insensitive matching.
L LOCALE Make \w, \W, \b, \B, dependent on the current locale.
M MULTILINE "^" matches the beginning of lines (after a newline)
as well as the string.
"$" matches the end of lines (before a newline) as well
as the end of the string.
S DOTALL "." matches any character at all, including the newline.
X VERBOSE Ignore whitespace and comments for nicer looking RE's.
U UNICODE For compatibility only. Ignored for string patterns (it
is the default), and forbidden for bytes patterns.
This module also defines an exception 'error'.
PACKAGE CONTENTS
_casefix
_compiler
_constants
_parser
CLASSES
builtins.Exception(builtins.BaseException)
error
builtins.object
Match
Pattern
enum.IntFlag(builtins.int, enum.ReprEnum, enum.Flag)
RegexFlag
class Match(builtins.object)
| The result of re.match() and re.search().
| Match objects always have a boolean value of True.
|
| Methods defined here:
|
| __copy__(self, /)
|
| __deepcopy__(self, memo, /)
|
| __getitem__(self, key, /)
| Return self[key].
|
| __repr__(self, /)
| Return repr(self).
|
| end(self, group=0, /)
| Return index of the end of the substring matched by group.
|
| expand(self, /, template)
| Return the string obtained by doing backslash substitution on the string template, as done by the sub() method.
|
| group(...)
| group([group1, ...]) -> str or tuple.
| Return subgroup(s) of the match by indices or names.
| For 0 returns the entire match.
|
| groupdict(self, /, default=None)
| Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name.
|
| default
| Is used for groups that did not participate in the match.
|
| groups(self, /, default=None)
| Return a tuple containing all the subgroups of the match, from 1.
|
| default
| Is used for groups that did not participate in the match.
|
| span(self, group=0, /)
| For match object m, return the 2-tuple (m.start(group), m.end(group)).
|
| start(self, group=0, /)
| Return index of the start of the substring matched by group.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| endpos
| The index into the string beyond which the RE engine will not go.
|
| lastgroup
| The name of the last matched capturing group.
|
| lastindex
| The integer index of the last matched capturing group.
|
| pos
| The index into the string at which the RE engine started looking for a match.
|
| re
| The regular expression object.
|
| regs
|
| string
| The string passed to match() or search().
class Pattern(builtins.object)
| Compiled regular expression object.
|
| Methods defined here:
|
| __copy__(self, /)
|
| __deepcopy__(self, memo, /)
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| findall(self, /, string, pos=0, endpos=9223372036854775807)
| Return a list of all non-overlapping matches of pattern in string.
|
| finditer(self, /, string, pos=0, endpos=9223372036854775807)
| Return an iterator over all non-overlapping matches for the RE pattern in string.
|
| For each match, the iterator returns a match object.
|
| fullmatch(self, /, string, pos=0, endpos=9223372036854775807)
| Matches against all of the string.
|
| match(self, /, string, pos=0, endpos=9223372036854775807)
| Matches zero or more characters at the beginning of the string.
|
| scanner(self, /, string, pos=0, endpos=9223372036854775807)
|
| search(self, /, string, pos=0, endpos=9223372036854775807)
| Scan through string looking for a match, and return a corresponding match object instance.
|
| Return None if no position in the string matches.
|
| split(self, /, string, maxsplit=0)
| Split string by the occurrences of pattern.
|
| sub(self, /, repl, string, count=0)
| Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
|
| subn(self, /, repl, string, count=0)
| Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| flags
| The regex matching flags.
|
| groupindex
| A dictionary mapping group names to group numbers.
|
| groups
| The number of capturing groups in the pattern.
|
| pattern
| The pattern string from which the RE object was compiled.
class RegexFlag(enum.IntFlag)
| RegexFlag(*values)
|
| An enumeration.
|
| Method resolution order:
| RegexFlag
| enum.IntFlag
| builtins.int
| enum.ReprEnum
| enum.Flag
| enum.Enum
| builtins.object
|
| Methods defined here:
|
| __and__(self, other) from enum.Flag
|
| __format__(self, format_spec, /) from builtins.int
| Convert to a string according to format_spec.
|
| __invert__(self) from enum.Flag
|
| __new__(cls, value) from enum.Enum
| Create and return a new object. See help(type) for accurate signature.
|
| __or__(self, other) from enum.Flag
| Return self|value.
|
| __rand__ = __and__(self, other)
|
| __repr__ = global_flag_repr(self) from enum
| use module.flag_name instead of class.flag_name
|
| the module is the last module in case of a multi-module name
|
| __ror__ = __or__(self, other)
|
| __rxor__ = __xor__(self, other)
|
| __str__(self, /) from builtins.object
| Return str(self).
|
| __xor__(self, other) from enum.Flag
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| ASCII = re.ASCII
|
| DEBUG = re.DEBUG
|
| DOTALL = re.DOTALL
|
| IGNORECASE = re.IGNORECASE
|
| LOCALE = re.LOCALE
|
| MULTILINE = re.MULTILINE
|
| TEMPLATE = re.TEMPLATE
|
| UNICODE = re.UNICODE
|
| VERBOSE = re.VERBOSE
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.int:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.int:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.int:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Flag:
|
| __contains__(self, other)
| Returns True if self has at least the same flags set as other.
|
| __iter__(self)
| Returns flags in definition order.
|
| __len__(self)
| Return the number of members (no aliases)
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Enum:
|
| __dir__(self)
| Returns public methods and other interesting attributes.
|
| __init__(self, *args, **kwds)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce_ex__(self, proto)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
|
| name
| The name of the Enum member.
|
| value
| The value of the Enum member.
|
| ----------------------------------------------------------------------
| Static methods inherited from enum.EnumType:
|
| __getitem__(name)
| Return the member matching `name`.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|
| __members__
| Returns a mapping of member name->value.
|
| This mapping lists all enum members, including aliases. Note that this
| is a read-only view of the internal mapping.
class error(builtins.Exception)
| error(msg, pattern=None, pos=None)
|
| Exception raised for invalid regular expressions.
|
| Attributes:
|
| msg: The unformatted error message
| pattern: The regular expression pattern
| pos: The index in the pattern where compilation failed (may be None)
| lineno: The line corresponding to pos (may be None)
| colno: The column corresponding to pos (may be None)
|
| Method resolution order:
| error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, pattern=None, pos=None) from re._constants.error
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
compile(pattern, flags=0)
Compile a regular expression pattern, returning a Pattern object.
escape(pattern)
Escape special characters in a string.
findall(pattern, string, flags=0)
Return a list of all non-overlapping matches in the string.
If one or more capturing groups are present in the pattern, return
a list of groups; this will be a list of tuples if the pattern
has more than one group.
Empty matches are included in the result.
finditer(pattern, string, flags=0)
Return an iterator over all non-overlapping matches in the
string. For each match, the iterator returns a Match object.
Empty matches are included in the result.
fullmatch(pattern, string, flags=0)
Try to apply the pattern to all of the string, returning
a Match object, or None if no match was found.
match(pattern, string, flags=0)
Try to apply the pattern at the start of the string, returning
a Match object, or None if no match was found.
purge()
Clear the regular expression caches
search(pattern, string, flags=0)
Scan through string looking for a match to the pattern, returning
a Match object, or None if no match was found.
split(pattern, string, maxsplit=0, flags=0)
Split the source string by the occurrences of the pattern,
returning a list containing the resulting substrings. If
capturing parentheses are used in pattern, then the text of all
groups in the pattern are also returned as part of the resulting
list. If maxsplit is nonzero, at most maxsplit splits occur,
and the remainder of the string is returned as the final element
of the list.
sub(pattern, repl, string, count=0, flags=0)
Return the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in string by the
replacement repl. repl can be either a string or a callable;
if a string, backslash escapes in it are processed. If it is
a callable, it's passed the Match object and must return
a replacement string to be used.
subn(pattern, repl, string, count=0, flags=0)
Return a 2-tuple containing (new_string, number).
new_string is the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in the source
string by the replacement repl. number is the number of
substitutions that were made. repl can be either a string or a
callable; if a string, backslash escapes in it are processed.
If it is a callable, it's passed the Match object and must
return a replacement string to be used.
template(pattern, flags=0)
Compile a template pattern, returning a Pattern object, deprecated
DATA
A = re.ASCII
ASCII = re.ASCII
DOTALL = re.DOTALL
I = re.IGNORECASE
IGNORECASE = re.IGNORECASE
L = re.LOCALE
LOCALE = re.LOCALE
M = re.MULTILINE
MULTILINE = re.MULTILINE
NOFLAG = re.NOFLAG
S = re.DOTALL
U = re.UNICODE
UNICODE = re.UNICODE
VERBOSE = re.VERBOSE
X = re.VERBOSE
__all__ = ['match', 'fullmatch', 'search', 'sub', 'subn', 'split', 'fi...
VERSION
2.2.1
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\re\__init__.py
peewee.reduce
Python Library Documentation: built-in function reduce in module _functools
reduce(...)
reduce(function, iterable[, initial]) -> value
Apply a function of two arguments cumulatively to the items of a sequence
or iterable, from left to right, so as to reduce the iterable to a single
value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates
((((1+2)+3)+4)+5). If initial is present, it is placed before the items
of the iterable in the calculation, and serves as a default when the
iterable is empty.
peewee.safe_python_value
Python Library Documentation: function safe_python_value in module peewee safe_python_value(conv_func)
peewee.simple_date_time
Python Library Documentation: function simple_date_time in module peewee simple_date_time(value)
peewee.socket
Python Library Documentation: module socket
NAME
socket
MODULE REFERENCE
https://docs.python.org/3.12/library/socket.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available as methods of the socket object.
Functions:
socket() -- create a new socket object
socketpair() -- create a pair of new socket objects [*]
fromfd() -- create a socket object from an open file descriptor [*]
send_fds() -- Send file descriptor to the socket.
recv_fds() -- Receive file descriptors from the socket.
fromshare() -- create a socket object from data received from socket.share() [*]
gethostname() -- return the current hostname
gethostbyname() -- map a hostname to its IP number
gethostbyaddr() -- map an IP number or hostname to DNS info
getservbyname() -- map a service name and a protocol name to a port number
getprotobyname() -- map a protocol name (e.g. 'tcp') to a number
ntohs(), ntohl() -- convert 16, 32 bit int from network to host byte order
htons(), htonl() -- convert 16, 32 bit int from host to network byte order
inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value
create_connection() -- connects to an address, with an optional timeout and
optional source address.
create_server() -- create a TCP socket and bind it to a specified address.
[*] not available on all platforms!
Special objects:
SocketType -- type object for socket objects
error -- exception raised for I/O errors
has_ipv6 -- boolean value indicating if IPv6 is supported
IntEnum constants:
AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
Integer constants:
Many other constants may be defined; these may be used in calls to
the setsockopt() and getsockopt() methods.
CLASSES
builtins.Exception(builtins.BaseException)
builtins.OSError
builtins.TimeoutError
gaierror
herror
builtins.object
_socket.socket
socket
enum.IntEnum(builtins.int, enum.ReprEnum)
AddressFamily
SocketKind
class AddressFamily(enum.IntEnum)
| AddressFamily(*values)
|
| An enumeration.
|
| Method resolution order:
| AddressFamily
| enum.IntEnum
| builtins.int
| enum.ReprEnum
| enum.Enum
| builtins.object
|
| Methods defined here:
|
| __format__(self, format_spec, /) from builtins.int
| Convert to a string according to format_spec.
|
| __new__(cls, value) from enum.Enum
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| AF_APPLETALK = <AddressFamily.AF_APPLETALK: 16>
|
| AF_BLUETOOTH = <AddressFamily.AF_BLUETOOTH: 32>
|
| AF_HYPERV = <AddressFamily.AF_HYPERV: 34>
|
| AF_INET = <AddressFamily.AF_INET: 2>
|
| AF_INET6 = <AddressFamily.AF_INET6: 23>
|
| AF_IPX = <AddressFamily.AF_IPX: 6>
|
| AF_IRDA = <AddressFamily.AF_IRDA: 26>
|
| AF_LINK = <AddressFamily.AF_LINK: 33>
|
| AF_SNA = <AddressFamily.AF_SNA: 11>
|
| AF_UNSPEC = <AddressFamily.AF_UNSPEC: 0>
|
| ----------------------------------------------------------------------
| Methods inherited from enum.IntEnum:
|
| __repr__(self) from enum.Enum
| Return repr(self).
|
| __str__ = __repr__(self, /) from builtins.int
| Return repr(self).
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.int:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.int:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.int:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Enum:
|
| __dir__(self)
| Returns public methods and other interesting attributes.
|
| __init__(self, *args, **kwds)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce_ex__(self, proto)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
|
| name
| The name of the Enum member.
|
| value
| The value of the Enum member.
|
| ----------------------------------------------------------------------
| Static methods inherited from enum.EnumType:
|
| __contains__(value)
| Return True if `value` is in `cls`.
|
| `value` is in `cls` if:
| 1) `value` is a member of `cls`, or
| 2) `value` is the value of one of the `cls`'s members.
|
| __getitem__(name)
| Return the member matching `name`.
|
| __iter__()
| Return members in definition order.
|
| __len__()
| Return the number of members (no aliases)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|
| __members__
| Returns a mapping of member name->value.
|
| This mapping lists all enum members, including aliases. Note that this
| is a read-only view of the internal mapping.
class SocketKind(enum.IntEnum)
| SocketKind(*values)
|
| An enumeration.
|
| Method resolution order:
| SocketKind
| enum.IntEnum
| builtins.int
| enum.ReprEnum
| enum.Enum
| builtins.object
|
| Methods defined here:
|
| __format__(self, format_spec, /) from builtins.int
| Convert to a string according to format_spec.
|
| __new__(cls, value) from enum.Enum
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| SOCK_DGRAM = <SocketKind.SOCK_DGRAM: 2>
|
| SOCK_RAW = <SocketKind.SOCK_RAW: 3>
|
| SOCK_RDM = <SocketKind.SOCK_RDM: 4>
|
| SOCK_SEQPACKET = <SocketKind.SOCK_SEQPACKET: 5>
|
| SOCK_STREAM = <SocketKind.SOCK_STREAM: 1>
|
| ----------------------------------------------------------------------
| Methods inherited from enum.IntEnum:
|
| __repr__(self) from enum.Enum
| Return repr(self).
|
| __str__ = __repr__(self, /) from builtins.int
| Return repr(self).
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.int:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __and__(self, value, /)
| Return self&value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __invert__(self, /)
| ~self
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __or__(self, value, /)
| Return self|value.
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rand__(self, value, /)
| Return value&self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __ror__(self, value, /)
| Return value|self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __rxor__(self, value, /)
| Return value^self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(self, value, /)
| Return self^value.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.int:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.int:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Enum:
|
| __dir__(self)
| Returns public methods and other interesting attributes.
|
| __init__(self, *args, **kwds)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce_ex__(self, proto)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
|
| name
| The name of the Enum member.
|
| value
| The value of the Enum member.
|
| ----------------------------------------------------------------------
| Static methods inherited from enum.EnumType:
|
| __contains__(value)
| Return True if `value` is in `cls`.
|
| `value` is in `cls` if:
| 1) `value` is a member of `cls`, or
| 2) `value` is the value of one of the `cls`'s members.
|
| __getitem__(name)
| Return the member matching `name`.
|
| __iter__()
| Return members in definition order.
|
| __len__()
| Return the number of members (no aliases)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|
| __members__
| Returns a mapping of member name->value.
|
| This mapping lists all enum members, including aliases. Note that this
| is a read-only view of the internal mapping.
SocketType = class socket(builtins.object)
| socket(family=AF_INET, type=SOCK_STREAM, proto=0) -> socket object
| socket(family=-1, type=-1, proto=-1, fileno=None) -> socket object
|
| Open a socket of the given type. The family argument specifies the
| address family; it defaults to AF_INET. The type argument specifies
| whether this is a stream (SOCK_STREAM, this is the default)
| or datagram (SOCK_DGRAM) socket. The protocol argument defaults to 0,
| specifying the default protocol. Keyword arguments are accepted.
| The socket is created as non-inheritable.
|
| When a fileno is passed in, family, type and proto are auto-detected,
| unless they are explicitly set.
|
| A socket object represents one endpoint of a network connection.
|
| Methods of socket objects (keyword arguments not allowed):
|
| _accept() -- accept connection, returning new socket fd and client address
| bind(addr) -- bind the socket to a local address
| close() -- close the socket
| connect(addr) -- connect the socket to a remote address
| connect_ex(addr) -- connect, return an error code instead of an exception
| dup() -- return a new socket fd duplicated from fileno()
| fileno() -- return underlying file descriptor
| getpeername() -- return remote address [*]
| getsockname() -- return local address
| getsockopt(level, optname[, buflen]) -- get socket options
| gettimeout() -- return timeout or None
| listen([n]) -- start listening for incoming connections
| recv(buflen[, flags]) -- receive data
| recv_into(buffer[, nbytes[, flags]]) -- receive data (into a buffer)
| recvfrom(buflen[, flags]) -- receive data and sender's address
| recvfrom_into(buffer[, nbytes, [, flags])
| -- receive data and sender's address (into a buffer)
| sendall(data[, flags]) -- send all data
| send(data[, flags]) -- send data, may not send all of it
| sendto(data[, flags], addr) -- send data to a given address
| setblocking(bool) -- set or clear the blocking I/O flag
| getblocking() -- return True if socket is blocking, False if non-blocking
| setsockopt(level, optname, value[, optlen]) -- set socket options
| settimeout(None | float) -- set or clear the timeout
| shutdown(how) -- shut down traffic in one or both directions
|
| [*] not available on all platforms!
|
| Methods defined here:
|
| __del__(...)
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self, /)
| Return repr(self).
|
| bind(...)
| bind(address)
|
| Bind the socket to a local address. For IP sockets, the address is a
| pair (host, port); the host must refer to the local host. For raw packet
| sockets the address is a tuple (ifname, proto [,pkttype [,hatype [,addr]]])
|
| close(...)
| close()
|
| Close the socket. It cannot be used after this call.
|
| connect(...)
| connect(address)
|
| Connect the socket to a remote address. For IP sockets, the address
| is a pair (host, port).
|
| connect_ex(...)
| connect_ex(address) -> errno
|
| This is like connect(address), but returns an error code (the errno value)
| instead of raising an exception when an error occurs.
|
| detach(...)
| detach()
|
| Close the socket object without closing the underlying file descriptor.
| The object cannot be used after this call, but the file descriptor
| can be reused for other purposes. The file descriptor is returned.
|
| fileno(...)
| fileno() -> integer
|
| Return the integer file descriptor of the socket.
|
| getblocking(...)
| getblocking()
|
| Returns True if socket is in blocking mode, or False if it
| is in non-blocking mode.
|
| getpeername(...)
| getpeername() -> address info
|
| Return the address of the remote endpoint. For IP sockets, the address
| info is a pair (hostaddr, port).
|
| getsockname(...)
| getsockname() -> address info
|
| Return the address of the local endpoint. The format depends on the
| address family. For IPv4 sockets, the address info is a pair
| (hostaddr, port). For IPv6 sockets, the address info is a 4-tuple
| (hostaddr, port, flowinfo, scope_id).
|
| getsockopt(...)
| getsockopt(level, option[, buffersize]) -> value
|
| Get a socket option. See the Unix manual for level and option.
| If a nonzero buffersize argument is given, the return value is a
| string of that length; otherwise it is an integer.
|
| gettimeout(...)
| gettimeout() -> timeout
|
| Returns the timeout in seconds (float) associated with socket
| operations. A timeout of None indicates that timeouts on socket
| operations are disabled.
|
| ioctl(...)
| ioctl(cmd, option) -> long
|
| Control the socket with WSAIoctl syscall. Currently supported 'cmd' values are
| SIO_RCVALL: 'option' must be one of the socket.RCVALL_* constants.
| SIO_KEEPALIVE_VALS: 'option' is a tuple of (onoff, timeout, interval).
| SIO_LOOPBACK_FAST_PATH: 'option' is a boolean value, and is disabled by default
|
| listen(...)
| listen([backlog])
|
| Enable a server to accept connections. If backlog is specified, it must be
| at least 0 (if it is lower, it is set to 0); it specifies the number of
| unaccepted connections that the system will allow before refusing new
| connections. If not specified, a default reasonable value is chosen.
|
| recv(...)
| recv(buffersize[, flags]) -> data
|
| Receive up to buffersize bytes from the socket. For the optional flags
| argument, see the Unix manual. When no data is available, block until
| at least one byte is available or until the remote end is closed. When
| the remote end is closed and all data is read, return the empty string.
|
| recv_into(...)
| recv_into(buffer, [nbytes[, flags]]) -> nbytes_read
|
| A version of recv() that stores its data into a buffer rather than creating
| a new string. Receive up to buffersize bytes from the socket. If buffersize
| is not specified (or 0), receive up to the size available in the given buffer.
|
| See recv() for documentation about the flags.
|
| recvfrom(...)
| recvfrom(buffersize[, flags]) -> (data, address info)
|
| Like recv(buffersize, flags) but also return the sender's address info.
|
| recvfrom_into(...)
| recvfrom_into(buffer[, nbytes[, flags]]) -> (nbytes, address info)
|
| Like recv_into(buffer[, nbytes[, flags]]) but also return the sender's address info.
|
| send(...)
| send(data[, flags]) -> count
|
| Send a data string to the socket. For the optional flags
| argument, see the Unix manual. Return the number of bytes
| sent; this may be less than len(data) if the network is busy.
|
| sendall(...)
| sendall(data[, flags])
|
| Send a data string to the socket. For the optional flags
| argument, see the Unix manual. This calls send() repeatedly
| until all data is sent. If an error occurs, it's impossible
| to tell how much data has been sent.
|
| sendto(...)
| sendto(data[, flags], address) -> count
|
| Like send(data, flags) but allows specifying the destination address.
| For IP sockets, the address is a pair (hostaddr, port).
|
| setblocking(...)
| setblocking(flag)
|
| Set the socket to blocking (flag is true) or non-blocking (false).
| setblocking(True) is equivalent to settimeout(None);
| setblocking(False) is equivalent to settimeout(0.0).
|
| setsockopt(...)
| setsockopt(level, option, value: int)
| setsockopt(level, option, value: buffer)
| setsockopt(level, option, None, optlen: int)
|
| Set a socket option. See the Unix manual for level and option.
| The value argument can either be an integer, a string buffer, or
| None, optlen.
|
| settimeout(...)
| settimeout(timeout)
|
| Set a timeout on socket operations. 'timeout' can be a float,
| giving in seconds, or None. Setting a timeout of None disables
| the timeout feature and is equivalent to setblocking(1).
| Setting a timeout of zero is the same as setblocking(0).
|
| share(...)
| share(process_id) -> bytes
|
| Share the socket with another process. The target process id
| must be provided and the resulting bytes object passed to the target
| process. There the shared socket can be instantiated by calling
| socket.fromshare().
|
| shutdown(...)
| shutdown(flag)
|
| Shut down the reading side of the socket (flag == SHUT_RD), the writing side
| of the socket (flag == SHUT_WR), or both ends (flag == SHUT_RDWR).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| family
| the socket family
|
| proto
| the socket protocol
|
| timeout
| the socket timeout
|
| type
| the socket type
error = class OSError(Exception)
| Base class for I/O related errors.
|
| Method resolution order:
| OSError
| Exception
| BaseException
| object
|
| Built-in subclasses:
| BlockingIOError
| ChildProcessError
| ConnectionError
| FileExistsError
| ... and 7 other subclasses
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| characters_written
|
| errno
| POSIX exception code
|
| filename
| exception filename
|
| filename2
| second exception filename
|
| strerror
| exception strerror
|
| winerror
| Win32 exception code
|
| ----------------------------------------------------------------------
| Methods inherited from BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class gaierror(builtins.OSError)
| Method resolution order:
| gaierror
| builtins.OSError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.OSError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.OSError:
|
| __new__(*args, **kwargs) class method of builtins.OSError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.OSError:
|
| characters_written
|
| errno
| POSIX exception code
|
| filename
| exception filename
|
| filename2
| second exception filename
|
| strerror
| exception strerror
|
| winerror
| Win32 exception code
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class herror(builtins.OSError)
| Method resolution order:
| herror
| builtins.OSError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.OSError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.OSError:
|
| __new__(*args, **kwargs) class method of builtins.OSError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.OSError:
|
| characters_written
|
| errno
| POSIX exception code
|
| filename
| exception filename
|
| filename2
| second exception filename
|
| strerror
| exception strerror
|
| winerror
| Win32 exception code
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class socket(_socket.socket)
| socket(family=-1, type=-1, proto=-1, fileno=None)
|
| A subclass of _socket.socket adding the makefile() method.
|
| Method resolution order:
| socket
| _socket.socket
| builtins.object
|
| Methods defined here:
|
| __enter__(self)
|
| __exit__(self, *args)
|
| __getstate__(self)
| Helper for pickle.
|
| __init__(self, family=-1, type=-1, proto=-1, fileno=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Wrap __repr__() to reveal the real class name and socket
| address(es).
|
| accept(self)
| accept() -> (socket object, address info)
|
| Wait for an incoming connection. Return a new socket
| representing the connection, and the address of the client.
| For IP sockets, the address info is a pair (hostaddr, port).
|
| close(self)
| close()
|
| Close the socket. It cannot be used after this call.
|
| detach(self)
| detach() -> file descriptor
|
| Close the socket object without closing the underlying file descriptor.
| The object cannot be used after this call, but the file descriptor
| can be reused for other purposes. The file descriptor is returned.
|
| dup(self)
| dup() -> socket object
|
| Duplicate the socket. Return a new socket object connected to the same
| system resource. The new socket is non-inheritable.
|
| get_inheritable(self)
| Get the inheritable flag of the socket
|
| makefile(self, mode='r', buffering=None, *, encoding=None, errors=None, newline=None)
| makefile(...) -> an I/O stream connected to the socket
|
| The arguments are as for io.open() after the filename, except the only
| supported mode values are 'r' (default), 'w', 'b', or a combination of
| those.
|
| sendfile(self, file, offset=0, count=None)
| sendfile(file[, offset[, count]]) -> sent
|
| Send a file until EOF is reached by using high-performance
| os.sendfile() and return the total number of bytes which
| were sent.
| *file* must be a regular file object opened in binary mode.
| If os.sendfile() is not available (e.g. Windows) or file is
| not a regular file socket.send() will be used instead.
| *offset* tells from where to start reading the file.
| If specified, *count* is the total number of bytes to transmit
| as opposed to sending the file until EOF is reached.
| File position is updated on return or also in case of error in
| which case file.tell() can be used to figure out the number of
| bytes which were sent.
| The socket must be of SOCK_STREAM type.
| Non-blocking sockets are not supported.
|
| set_inheritable(self, inheritable)
| Set the inheritable flag of the socket
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| family
| Read-only access to the address family for this socket.
|
| type
| Read-only access to the socket type.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from _socket.socket:
|
| __del__(...)
|
| bind(...)
| bind(address)
|
| Bind the socket to a local address. For IP sockets, the address is a
| pair (host, port); the host must refer to the local host. For raw packet
| sockets the address is a tuple (ifname, proto [,pkttype [,hatype [,addr]]])
|
| connect(...)
| connect(address)
|
| Connect the socket to a remote address. For IP sockets, the address
| is a pair (host, port).
|
| connect_ex(...)
| connect_ex(address) -> errno
|
| This is like connect(address), but returns an error code (the errno value)
| instead of raising an exception when an error occurs.
|
| fileno(...)
| fileno() -> integer
|
| Return the integer file descriptor of the socket.
|
| getblocking(...)
| getblocking()
|
| Returns True if socket is in blocking mode, or False if it
| is in non-blocking mode.
|
| getpeername(...)
| getpeername() -> address info
|
| Return the address of the remote endpoint. For IP sockets, the address
| info is a pair (hostaddr, port).
|
| getsockname(...)
| getsockname() -> address info
|
| Return the address of the local endpoint. The format depends on the
| address family. For IPv4 sockets, the address info is a pair
| (hostaddr, port). For IPv6 sockets, the address info is a 4-tuple
| (hostaddr, port, flowinfo, scope_id).
|
| getsockopt(...)
| getsockopt(level, option[, buffersize]) -> value
|
| Get a socket option. See the Unix manual for level and option.
| If a nonzero buffersize argument is given, the return value is a
| string of that length; otherwise it is an integer.
|
| gettimeout(...)
| gettimeout() -> timeout
|
| Returns the timeout in seconds (float) associated with socket
| operations. A timeout of None indicates that timeouts on socket
| operations are disabled.
|
| ioctl(...)
| ioctl(cmd, option) -> long
|
| Control the socket with WSAIoctl syscall. Currently supported 'cmd' values are
| SIO_RCVALL: 'option' must be one of the socket.RCVALL_* constants.
| SIO_KEEPALIVE_VALS: 'option' is a tuple of (onoff, timeout, interval).
| SIO_LOOPBACK_FAST_PATH: 'option' is a boolean value, and is disabled by default
|
| listen(...)
| listen([backlog])
|
| Enable a server to accept connections. If backlog is specified, it must be
| at least 0 (if it is lower, it is set to 0); it specifies the number of
| unaccepted connections that the system will allow before refusing new
| connections. If not specified, a default reasonable value is chosen.
|
| recv(...)
| recv(buffersize[, flags]) -> data
|
| Receive up to buffersize bytes from the socket. For the optional flags
| argument, see the Unix manual. When no data is available, block until
| at least one byte is available or until the remote end is closed. When
| the remote end is closed and all data is read, return the empty string.
|
| recv_into(...)
| recv_into(buffer, [nbytes[, flags]]) -> nbytes_read
|
| A version of recv() that stores its data into a buffer rather than creating
| a new string. Receive up to buffersize bytes from the socket. If buffersize
| is not specified (or 0), receive up to the size available in the given buffer.
|
| See recv() for documentation about the flags.
|
| recvfrom(...)
| recvfrom(buffersize[, flags]) -> (data, address info)
|
| Like recv(buffersize, flags) but also return the sender's address info.
|
| recvfrom_into(...)
| recvfrom_into(buffer[, nbytes[, flags]]) -> (nbytes, address info)
|
| Like recv_into(buffer[, nbytes[, flags]]) but also return the sender's address info.
|
| send(...)
| send(data[, flags]) -> count
|
| Send a data string to the socket. For the optional flags
| argument, see the Unix manual. Return the number of bytes
| sent; this may be less than len(data) if the network is busy.
|
| sendall(...)
| sendall(data[, flags])
|
| Send a data string to the socket. For the optional flags
| argument, see the Unix manual. This calls send() repeatedly
| until all data is sent. If an error occurs, it's impossible
| to tell how much data has been sent.
|
| sendto(...)
| sendto(data[, flags], address) -> count
|
| Like send(data, flags) but allows specifying the destination address.
| For IP sockets, the address is a pair (hostaddr, port).
|
| setblocking(...)
| setblocking(flag)
|
| Set the socket to blocking (flag is true) or non-blocking (false).
| setblocking(True) is equivalent to settimeout(None);
| setblocking(False) is equivalent to settimeout(0.0).
|
| setsockopt(...)
| setsockopt(level, option, value: int)
| setsockopt(level, option, value: buffer)
| setsockopt(level, option, None, optlen: int)
|
| Set a socket option. See the Unix manual for level and option.
| The value argument can either be an integer, a string buffer, or
| None, optlen.
|
| settimeout(...)
| settimeout(timeout)
|
| Set a timeout on socket operations. 'timeout' can be a float,
| giving in seconds, or None. Setting a timeout of None disables
| the timeout feature and is equivalent to setblocking(1).
| Setting a timeout of zero is the same as setblocking(0).
|
| share(...)
| share(process_id) -> bytes
|
| Share the socket with another process. The target process id
| must be provided and the resulting bytes object passed to the target
| process. There the shared socket can be instantiated by calling
| socket.fromshare().
|
| shutdown(...)
| shutdown(flag)
|
| Shut down the reading side of the socket (flag == SHUT_RD), the writing side
| of the socket (flag == SHUT_WR), or both ends (flag == SHUT_RDWR).
|
| ----------------------------------------------------------------------
| Static methods inherited from _socket.socket:
|
| __new__(*args, **kwargs) class method of _socket.socket
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _socket.socket:
|
| proto
| the socket protocol
|
| timeout
| the socket timeout
timeout = class TimeoutError(OSError)
| Timeout expired.
|
| Method resolution order:
| TimeoutError
| OSError
| Exception
| BaseException
| object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from OSError:
|
| __reduce__(...)
| Helper for pickle.
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods inherited from OSError:
|
| __new__(*args, **kwargs) class method of builtins.OSError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from OSError:
|
| characters_written
|
| errno
| POSIX exception code
|
| filename
| exception filename
|
| filename2
| second exception filename
|
| strerror
| exception strerror
|
| winerror
| Win32 exception code
|
| ----------------------------------------------------------------------
| Methods inherited from BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
close(...)
close(integer) -> None
Close an integer socket file descriptor. This is like os.close(), but for
sockets; on some platforms os.close() won't work for socket file descriptors.
create_connection(address, timeout=<object object at 0x000001DE24118AC0>, source_address=None, *, all_errors=False)
Connect to *address* and return the socket object.
Convenience function. Connect to *address* (a 2-tuple ``(host,
port)``) and return the socket object. Passing the optional
*timeout* parameter will set the timeout on the socket instance
before attempting to connect. If no *timeout* is supplied, the
global default timeout setting returned by :func:`getdefaulttimeout`
is used. If *source_address* is set it must be a tuple of (host, port)
for the socket to bind as a source address before making the connection.
A host of '' or port 0 tells the OS to use the default. When a connection
cannot be created, raises the last error if *all_errors* is False,
and an ExceptionGroup of all errors if *all_errors* is True.
create_server(address, *, family=<AddressFamily.AF_INET: 2>, backlog=None, reuse_port=False, dualstack_ipv6=False)
Convenience function which creates a SOCK_STREAM type socket
bound to *address* (a 2-tuple (host, port)) and return the socket
object.
*family* should be either AF_INET or AF_INET6.
*backlog* is the queue size passed to socket.listen().
*reuse_port* dictates whether to use the SO_REUSEPORT socket option.
*dualstack_ipv6*: if true and the platform supports it, it will
create an AF_INET6 socket able to accept both IPv4 or IPv6
connections. When false it will explicitly disable this option on
platforms that enable it by default (e.g. Linux).
>>> with create_server(('', 8000)) as server:
... while True:
... conn, addr = server.accept()
... # handle new connection
dup(...)
dup(integer) -> integer
Duplicate an integer socket file descriptor. This is like os.dup(), but for
sockets; on some platforms os.dup() won't work for socket file descriptors.
fromfd(fd, family, type, proto=0)
fromfd(fd, family, type[, proto]) -> socket object
Create a socket object from a duplicate of the given file
descriptor. The remaining arguments are the same as for socket().
fromshare(info)
fromshare(info) -> socket object
Create a socket object from the bytes object returned by
socket.share(pid).
getaddrinfo(host, port, family=0, type=0, proto=0, flags=0)
Resolve host and port into list of address info entries.
Translate the host/port argument into a sequence of 5-tuples that contain
all the necessary arguments for creating a socket connected to that service.
host is a domain name, a string representation of an IPv4/v6 address or
None. port is a string service name such as 'http', a numeric port number or
None. By passing None as the value of host and port, you can pass NULL to
the underlying C API.
The family, type and proto arguments can be optionally specified in order to
narrow the list of addresses returned. Passing zero as a value for each of
these arguments selects the full range of results.
getdefaulttimeout(...)
getdefaulttimeout() -> timeout
Returns the default timeout in seconds (float) for new socket objects.
A value of None indicates that new socket objects have no timeout.
When the socket module is first imported, the default is None.
getfqdn(name='')
Get fully qualified domain name from name.
An empty argument is interpreted as meaning the local host.
First the hostname returned by gethostbyaddr() is checked, then
possibly existing aliases. In case no FQDN is available and `name`
was given, it is returned unchanged. If `name` was empty, '0.0.0.0' or '::',
hostname from gethostname() is returned.
gethostbyaddr(...)
gethostbyaddr(host) -> (name, aliaslist, addresslist)
Return the true host name, a list of aliases, and a list of IP addresses,
for a host. The host argument is a string giving a host name or IP number.
gethostbyname(...)
gethostbyname(host) -> address
Return the IP address (a string of the form '255.255.255.255') for a host.
gethostbyname_ex(...)
gethostbyname_ex(host) -> (name, aliaslist, addresslist)
Return the true host name, a list of aliases, and a list of IP addresses,
for a host. The host argument is a string giving a host name or IP number.
gethostname(...)
gethostname() -> string
Return the current host name.
getnameinfo(...)
getnameinfo(sockaddr, flags) --> (host, port)
Get host and port for a sockaddr.
getprotobyname(...)
getprotobyname(name) -> integer
Return the protocol number for the named protocol. (Rarely used.)
getservbyname(...)
getservbyname(servicename[, protocolname]) -> integer
Return a port number from a service name and protocol name.
The optional protocol name, if given, should be 'tcp' or 'udp',
otherwise any protocol will match.
getservbyport(...)
getservbyport(port[, protocolname]) -> string
Return the service name from a port number and protocol name.
The optional protocol name, if given, should be 'tcp' or 'udp',
otherwise any protocol will match.
has_dualstack_ipv6()
Return True if the platform supports creating a SOCK_STREAM socket
which can handle both AF_INET and AF_INET6 (IPv4 / IPv6) connections.
htonl(...)
htonl(integer) -> integer
Convert a 32-bit integer from host to network byte order.
htons(...)
htons(integer) -> integer
Convert a 16-bit unsigned integer from host to network byte order.
if_indextoname(...)
if_indextoname(if_index)
Returns the interface name corresponding to the interface index if_index.
if_nameindex(...)
if_nameindex()
Returns a list of network interface information (index, name) tuples.
if_nametoindex(...)
if_nametoindex(if_name)
Returns the interface index corresponding to the interface name if_name.
inet_aton(...)
inet_aton(string) -> bytes giving packed 32-bit IP representation
Convert an IP address in string format (123.45.67.89) to the 32-bit packed
binary format used in low-level network functions.
inet_ntoa(...)
inet_ntoa(packed_ip) -> ip_address_string
Convert an IP address from 32-bit packed binary format to string format
inet_ntop(...)
inet_ntop(af, packed_ip) -> string formatted IP address
Convert a packed IP address of the given family to string format.
inet_pton(...)
inet_pton(af, ip) -> packed IP address string
Convert an IP address from string format to a packed string suitable
for use with low-level network functions.
ntohl(...)
ntohl(integer) -> integer
Convert a 32-bit integer from network to host byte order.
ntohs(...)
ntohs(integer) -> integer
Convert a 16-bit unsigned integer from network to host byte order.
setdefaulttimeout(...)
setdefaulttimeout(timeout)
Set the default timeout in seconds (float) for new socket objects.
A value of None indicates that new socket objects have no timeout.
When the socket module is first imported, the default is None.
socketpair = _fallback_socketpair(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=0)
socketpair([family[, type[, proto]]]) -> (socket object, socket object)
Create a pair of socket objects from the sockets returned by the platform
socketpair() function.
The arguments are the same as for socket() except the default family is AF_UNIX
if defined on the platform; otherwise, the default is AF_INET.
DATA
AF_APPLETALK = <AddressFamily.AF_APPLETALK: 16>
AF_BLUETOOTH = <AddressFamily.AF_BLUETOOTH: 32>
AF_DECnet = 12
AF_HYPERV = <AddressFamily.AF_HYPERV: 34>
AF_INET = <AddressFamily.AF_INET: 2>
AF_INET6 = <AddressFamily.AF_INET6: 23>
AF_IPX = <AddressFamily.AF_IPX: 6>
AF_IRDA = <AddressFamily.AF_IRDA: 26>
AF_LINK = <AddressFamily.AF_LINK: 33>
AF_SNA = <AddressFamily.AF_SNA: 11>
AF_UNSPEC = <AddressFamily.AF_UNSPEC: 0>
AI_ADDRCONFIG = <AddressInfo.AI_ADDRCONFIG: 1024>
AI_ALL = <AddressInfo.AI_ALL: 256>
AI_CANONNAME = <AddressInfo.AI_CANONNAME: 2>
AI_NUMERICHOST = <AddressInfo.AI_NUMERICHOST: 4>
AI_NUMERICSERV = <AddressInfo.AI_NUMERICSERV: 8>
AI_PASSIVE = <AddressInfo.AI_PASSIVE: 1>
AI_V4MAPPED = <AddressInfo.AI_V4MAPPED: 2048>
BDADDR_ANY = '00:00:00:00:00:00'
BDADDR_LOCAL = '00:00:00:FF:FF:FF'
BTPROTO_RFCOMM = 3
CAPI = <capsule object "_socket.CAPI">
EAI_AGAIN = 11002
EAI_BADFLAGS = 10022
EAI_FAIL = 11003
EAI_FAMILY = 10047
EAI_MEMORY = 8
EAI_NODATA = 11001
EAI_NONAME = 11001
EAI_SERVICE = 10109
EAI_SOCKTYPE = 10044
HVSOCKET_ADDRESS_FLAG_PASSTHRU = 1
HVSOCKET_CONNECTED_SUSPEND = 4
HVSOCKET_CONNECT_TIMEOUT = 1
HVSOCKET_CONNECT_TIMEOUT_MAX = 300000
HV_GUID_BROADCAST = 'FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF'
HV_GUID_CHILDREN = '90DB8B89-0D35-4F79-8CE9-49EA0AC8B7CD'
HV_GUID_LOOPBACK = 'E0E16197-DD56-4A10-9195-5EE7A155A838'
HV_GUID_PARENT = 'A42E7CDA-D03F-480C-9CC2-A4DE20ABB878'
HV_GUID_WILDCARD = '00000000-0000-0000-0000-000000000000'
HV_GUID_ZERO = '00000000-0000-0000-0000-000000000000'
HV_PROTOCOL_RAW = 1
INADDR_ALLHOSTS_GROUP = -536870911
INADDR_ANY = 0
INADDR_BROADCAST = -1
INADDR_LOOPBACK = 2130706433
INADDR_MAX_LOCAL_GROUP = -536870657
INADDR_NONE = -1
INADDR_UNSPEC_GROUP = -536870912
IPPORT_RESERVED = 1024
IPPORT_USERRESERVED = 5000
IPPROTO_AH = 51
IPPROTO_CBT = 7
IPPROTO_DSTOPTS = 60
IPPROTO_EGP = 8
IPPROTO_ESP = 50
IPPROTO_FRAGMENT = 44
IPPROTO_GGP = 3
IPPROTO_HOPOPTS = 0
IPPROTO_ICLFXBM = 78
IPPROTO_ICMP = 1
IPPROTO_ICMPV6 = 58
IPPROTO_IDP = 22
IPPROTO_IGMP = 2
IPPROTO_IGP = 9
IPPROTO_IP = 0
IPPROTO_IPV4 = 4
IPPROTO_IPV6 = 41
IPPROTO_L2TP = 115
IPPROTO_MAX = 256
IPPROTO_ND = 77
IPPROTO_NONE = 59
IPPROTO_PGM = 113
IPPROTO_PIM = 103
IPPROTO_PUP = 12
IPPROTO_RAW = 255
IPPROTO_RDP = 27
IPPROTO_ROUTING = 43
IPPROTO_SCTP = 132
IPPROTO_ST = 5
IPPROTO_TCP = 6
IPPROTO_UDP = 17
IPV6_CHECKSUM = 26
IPV6_DONTFRAG = 14
IPV6_HOPLIMIT = 21
IPV6_HOPOPTS = 1
IPV6_JOIN_GROUP = 12
IPV6_LEAVE_GROUP = 13
IPV6_MULTICAST_HOPS = 10
IPV6_MULTICAST_IF = 9
IPV6_MULTICAST_LOOP = 11
IPV6_PKTINFO = 19
IPV6_RECVRTHDR = 38
IPV6_RECVTCLASS = 40
IPV6_RTHDR = 32
IPV6_TCLASS = 39
IPV6_UNICAST_HOPS = 4
IPV6_V6ONLY = 27
IP_ADD_MEMBERSHIP = 12
IP_ADD_SOURCE_MEMBERSHIP = 15
IP_BLOCK_SOURCE = 17
IP_DROP_MEMBERSHIP = 13
IP_DROP_SOURCE_MEMBERSHIP = 16
IP_HDRINCL = 2
IP_MULTICAST_IF = 9
IP_MULTICAST_LOOP = 11
IP_MULTICAST_TTL = 10
IP_OPTIONS = 1
IP_PKTINFO = 19
IP_RECVDSTADDR = 25
IP_RECVTOS = 40
IP_TOS = 3
IP_TTL = 4
IP_UNBLOCK_SOURCE = 18
MSG_BCAST = <MsgFlag.MSG_BCAST: 1024>
MSG_CTRUNC = <MsgFlag.MSG_CTRUNC: 512>
MSG_DONTROUTE = <MsgFlag.MSG_DONTROUTE: 4>
MSG_ERRQUEUE = <MsgFlag.MSG_ERRQUEUE: 4096>
MSG_MCAST = <MsgFlag.MSG_MCAST: 2048>
MSG_OOB = <MsgFlag.MSG_OOB: 1>
MSG_PEEK = <MsgFlag.MSG_PEEK: 2>
MSG_TRUNC = <MsgFlag.MSG_TRUNC: 256>
MSG_WAITALL = <MsgFlag.MSG_WAITALL: 8>
NI_DGRAM = 16
NI_MAXHOST = 1025
NI_MAXSERV = 32
NI_NAMEREQD = 4
NI_NOFQDN = 1
NI_NUMERICHOST = 2
NI_NUMERICSERV = 8
RCVALL_MAX = 3
RCVALL_OFF = 0
RCVALL_ON = 1
RCVALL_SOCKETLEVELONLY = 2
SHUT_RD = 0
SHUT_RDWR = 2
SHUT_WR = 1
SIO_KEEPALIVE_VALS = 2550136836
SIO_LOOPBACK_FAST_PATH = 2550136848
SIO_RCVALL = 2550136833
SOCK_DGRAM = <SocketKind.SOCK_DGRAM: 2>
SOCK_RAW = <SocketKind.SOCK_RAW: 3>
SOCK_RDM = <SocketKind.SOCK_RDM: 4>
SOCK_SEQPACKET = <SocketKind.SOCK_SEQPACKET: 5>
SOCK_STREAM = <SocketKind.SOCK_STREAM: 1>
SOL_IP = 65531
SOL_SOCKET = 65535
SOL_TCP = 6
SOL_UDP = 17
SOMAXCONN = 2147483647
SO_ACCEPTCONN = 2
SO_BROADCAST = 32
SO_DEBUG = 1
SO_DONTROUTE = 16
SO_ERROR = 4103
SO_EXCLUSIVEADDRUSE = -5
SO_KEEPALIVE = 8
SO_LINGER = 128
SO_OOBINLINE = 256
SO_RCVBUF = 4098
SO_RCVLOWAT = 4100
SO_RCVTIMEO = 4102
SO_REUSEADDR = 4
SO_SNDBUF = 4097
SO_SNDLOWAT = 4099
SO_SNDTIMEO = 4101
SO_TYPE = 4104
SO_USELOOPBACK = 64
TCP_FASTOPEN = 15
TCP_KEEPCNT = 16
TCP_KEEPIDLE = 3
TCP_KEEPINTVL = 17
TCP_MAXSEG = 4
TCP_NODELAY = 1
__all__ = ['fromfd', 'getfqdn', 'create_connection', 'create_server', ...
errorTab = {6: 'Specified event object handle is invalid.', 8: 'Insuff...
has_ipv6 = True
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\socket.py
peewee.sort_models
Python Library Documentation: function sort_models in module peewee sort_models(models)
peewee.sqlite3
Python Library Documentation: package sqlite3
NAME
sqlite3
MODULE REFERENCE
https://docs.python.org/3.12/library/sqlite3.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
The sqlite3 extension module provides a DB-API 2.0 (PEP 249) compliant
interface to the SQLite library, and requires SQLite 3.7.15 or newer.
To use the module, start by creating a database Connection object:
import sqlite3
cx = sqlite3.connect("test.db") # test.db will be created or opened
The special path name ":memory:" can be provided to connect to a transient
in-memory database:
cx = sqlite3.connect(":memory:") # connect to a database in RAM
Once a connection has been established, create a Cursor object and call
its execute() method to perform SQL queries:
cu = cx.cursor()
# create a table
cu.execute("create table lang(name, first_appeared)")
# insert values into a table
cu.execute("insert into lang values (?, ?)", ("C", 1972))
# execute a query and iterate over the result
for row in cu.execute("select * from lang"):
print(row)
cx.close()
The sqlite3 module is written by Gerhard Häring <gh@ghaering.de>.
PACKAGE CONTENTS
__main__
dbapi2
dump
CLASSES
builtins.Exception(builtins.BaseException)
Error
DatabaseError
DataError
IntegrityError
InternalError
NotSupportedError
OperationalError
ProgrammingError
InterfaceError
Warning
builtins.object
Blob
Connection
Cursor
PrepareProtocol
Row
class Blob(builtins.object)
| Methods defined here:
|
| __delitem__(self, key, /)
| Delete self[key].
|
| __enter__(self, /)
| Blob context manager enter.
|
| __exit__(self, type, val, tb, /)
| Blob context manager exit.
|
| __getitem__(self, key, /)
| Return self[key].
|
| __len__(self, /)
| Return len(self).
|
| __setitem__(self, key, value, /)
| Set self[key] to value.
|
| close(self, /)
| Close the blob.
|
| read(self, length=-1, /)
| Read data at the current offset position.
|
| length
| Read length in bytes.
|
| If the end of the blob is reached, the data up to end of file will be returned.
| When length is not specified, or is negative, Blob.read() will read until the
| end of the blob.
|
| seek(self, offset, origin=0, /)
| Set the current access position to offset.
|
| The origin argument defaults to os.SEEK_SET (absolute blob positioning).
| Other values for origin are os.SEEK_CUR (seek relative to the current position)
| and os.SEEK_END (seek relative to the blob's end).
|
| tell(self, /)
| Return the current access position for the blob.
|
| write(self, data, /)
| Write data at the current offset.
|
| This function cannot change the blob length. Writing beyond the end of the
| blob will result in an exception being raised.
class Connection(builtins.object)
| SQLite database connection object.
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __del__(...)
|
| __enter__(self, /)
| Called when the connection is used as a context manager.
|
| Returns itself as a convenience to the caller.
|
| __exit__(self, type, value, traceback, /)
| Called when the connection is used as a context manager.
|
| If there was any exception, a rollback takes place; otherwise we commit.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| backup(self, /, target, *, pages=-1, progress=None, name='main', sleep=0.25)
| Makes a backup of the database.
|
| blobopen(self, table, column, row, /, *, readonly=False, name='main')
| Open and return a BLOB object.
|
| table
| Table name.
| column
| Column name.
| row
| Row index.
| readonly
| Open the BLOB without write permissions.
| name
| Database name.
|
| close(self, /)
| Close the database connection.
|
| Any pending transaction is not committed implicitly.
|
| commit(self, /)
| Commit any pending transaction to the database.
|
| If there is no open transaction, this method is a no-op.
|
| create_aggregate(self, /, name, n_arg, aggregate_class)
| Creates a new aggregate.
|
| create_collation(self, name, callback, /)
| Creates a collation function.
|
| create_function(self, /, name, narg, func, *, deterministic=False)
| Creates a new function.
|
| create_window_function(self, name, num_params, aggregate_class, /)
| Creates or redefines an aggregate window function. Non-standard.
|
| name
| The name of the SQL aggregate window function to be created or
| redefined.
| num_params
| The number of arguments the step and inverse methods takes.
| aggregate_class
| A class with step(), finalize(), value(), and inverse() methods.
| Set to None to clear the window function.
|
| cursor(...)
| Return a cursor for the connection.
|
| deserialize(self, data, /, *, name='main')
| Load a serialized database.
|
| data
| The serialized database content.
| name
| Which database to reopen with the deserialization.
|
| The deserialize interface causes the database connection to disconnect from the
| target database, and then reopen it as an in-memory database based on the given
| serialized data.
|
| The deserialize interface will fail with SQLITE_BUSY if the database is
| currently in a read transaction or is involved in a backup operation.
|
| enable_load_extension(self, enable, /)
| Enable dynamic loading of SQLite extension modules.
|
| execute(...)
| Executes an SQL statement.
|
| executemany(self, sql, parameters, /)
| Repeatedly executes an SQL statement.
|
| executescript(self, sql_script, /)
| Executes multiple SQL statements at once.
|
| getconfig(self, op, /)
| Query a boolean connection configuration option.
|
| op
| The configuration verb; one of the sqlite3.SQLITE_DBCONFIG codes.
|
| getlimit(self, category, /)
| Get connection run-time limits.
|
| category
| The limit category to be queried.
|
| interrupt(self, /)
| Abort any pending database operation.
|
| iterdump(self, /)
| Returns iterator to the dump of the database in an SQL text format.
|
| load_extension(self, name, /, *, entrypoint=None)
| Load SQLite extension module.
|
| rollback(self, /)
| Roll back to the start of any pending transaction.
|
| If there is no open transaction, this method is a no-op.
|
| serialize(self, /, *, name='main')
| Serialize a database into a byte string.
|
| name
| Which database to serialize.
|
| For an ordinary on-disk database file, the serialization is just a copy of the
| disk file. For an in-memory database or a "temp" database, the serialization is
| the same sequence of bytes which would be written to disk if that database
| were backed up to disk.
|
| set_authorizer(self, /, authorizer_callback)
| Sets authorizer callback.
|
| set_progress_handler(self, /, progress_handler, n)
| Sets progress handler callback.
|
| set_trace_callback(self, /, trace_callback)
| Sets a trace callback called for each SQL statement (passed as unicode).
|
| setconfig(self, op, enable=True, /)
| Set a boolean connection configuration option.
|
| op
| The configuration verb; one of the sqlite3.SQLITE_DBCONFIG codes.
|
| setlimit(self, category, limit, /)
| Set connection run-time limits.
|
| category
| The limit category to be set.
| limit
| The new limit. If the new limit is a negative number, the limit is
| unchanged.
|
| Attempts to increase a limit above its hard upper bound are silently truncated
| to the hard upper bound. Regardless of whether or not the limit was changed,
| the prior value of the limit is returned.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| DataError
|
| DatabaseError
|
| Error
|
| IntegrityError
|
| InterfaceError
|
| InternalError
|
| NotSupportedError
|
| OperationalError
|
| ProgrammingError
|
| Warning
|
| autocommit
|
| in_transaction
|
| isolation_level
|
| row_factory
|
| text_factory
|
| total_changes
class Cursor(builtins.object)
| SQLite database cursor class.
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| close(self, /)
| Closes the cursor.
|
| execute(self, sql, parameters=(), /)
| Executes an SQL statement.
|
| executemany(self, sql, seq_of_parameters, /)
| Repeatedly executes an SQL statement.
|
| executescript(self, sql_script, /)
| Executes multiple SQL statements at once.
|
| fetchall(self, /)
| Fetches all rows from the resultset.
|
| fetchmany(self, /, size=1)
| Fetches several rows from the resultset.
|
| size
| The default value is set by the Cursor.arraysize attribute.
|
| fetchone(self, /)
| Fetches one row from the resultset.
|
| setinputsizes(self, sizes, /)
| Required by DB-API. Does nothing in sqlite3.
|
| setoutputsize(self, size, column=None, /)
| Required by DB-API. Does nothing in sqlite3.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| arraysize
|
| connection
|
| description
|
| lastrowid
|
| row_factory
|
| rowcount
class DataError(DatabaseError)
| Method resolution order:
| DataError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DatabaseError(Error)
| Method resolution order:
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Error(builtins.Exception)
| Method resolution order:
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class IntegrityError(DatabaseError)
| Method resolution order:
| IntegrityError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InterfaceError(Error)
| Method resolution order:
| InterfaceError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InternalError(DatabaseError)
| Method resolution order:
| InternalError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NotSupportedError(DatabaseError)
| Method resolution order:
| NotSupportedError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class OperationalError(DatabaseError)
| Method resolution order:
| OperationalError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class PrepareProtocol(builtins.object)
| PEP 246 style object adaption protocol type.
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
class ProgrammingError(DatabaseError)
| Method resolution order:
| ProgrammingError
| DatabaseError
| Error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from Error:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Row(builtins.object)
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| keys(self, /)
| Returns the keys of the row.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class Warning(builtins.Exception)
| Method resolution order:
| Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
__getattr__(name)
adapt(...)
Adapt given object to given protocol.
complete_statement(statement)
Checks if a string contains a complete SQL statement.
connect(...)
Opens a connection to the SQLite database file database.
You can use ":memory:" to open a database connection to a database that resides
in RAM instead of on disk.
enable_callback_tracebacks(enable, /)
Enable or disable callback functions throwing errors to stderr.
register_adapter(type, adapter, /)
Register a function to adapt Python objects to SQLite values.
register_converter(typename, converter, /)
Register a function to convert SQLite values to Python objects.
DATA
LEGACY_TRANSACTION_CONTROL = -1
PARSE_COLNAMES = 2
PARSE_DECLTYPES = 1
SQLITE_ABORT = 4
SQLITE_ABORT_ROLLBACK = 516
SQLITE_ALTER_TABLE = 26
SQLITE_ANALYZE = 28
SQLITE_ATTACH = 24
SQLITE_AUTH = 23
SQLITE_AUTH_USER = 279
SQLITE_BUSY = 5
SQLITE_BUSY_RECOVERY = 261
SQLITE_BUSY_SNAPSHOT = 517
SQLITE_BUSY_TIMEOUT = 773
SQLITE_CANTOPEN = 14
SQLITE_CANTOPEN_CONVPATH = 1038
SQLITE_CANTOPEN_DIRTYWAL = 1294
SQLITE_CANTOPEN_FULLPATH = 782
SQLITE_CANTOPEN_ISDIR = 526
SQLITE_CANTOPEN_NOTEMPDIR = 270
SQLITE_CANTOPEN_SYMLINK = 1550
SQLITE_CONSTRAINT = 19
SQLITE_CONSTRAINT_CHECK = 275
SQLITE_CONSTRAINT_COMMITHOOK = 531
SQLITE_CONSTRAINT_FOREIGNKEY = 787
SQLITE_CONSTRAINT_FUNCTION = 1043
SQLITE_CONSTRAINT_NOTNULL = 1299
SQLITE_CONSTRAINT_PINNED = 2835
SQLITE_CONSTRAINT_PRIMARYKEY = 1555
SQLITE_CONSTRAINT_ROWID = 2579
SQLITE_CONSTRAINT_TRIGGER = 1811
SQLITE_CONSTRAINT_UNIQUE = 2067
SQLITE_CONSTRAINT_VTAB = 2323
SQLITE_CORRUPT = 11
SQLITE_CORRUPT_INDEX = 779
SQLITE_CORRUPT_SEQUENCE = 523
SQLITE_CORRUPT_VTAB = 267
SQLITE_CREATE_INDEX = 1
SQLITE_CREATE_TABLE = 2
SQLITE_CREATE_TEMP_INDEX = 3
SQLITE_CREATE_TEMP_TABLE = 4
SQLITE_CREATE_TEMP_TRIGGER = 5
SQLITE_CREATE_TEMP_VIEW = 6
SQLITE_CREATE_TRIGGER = 7
SQLITE_CREATE_VIEW = 8
SQLITE_CREATE_VTABLE = 29
SQLITE_DBCONFIG_DEFENSIVE = 1010
SQLITE_DBCONFIG_DQS_DDL = 1014
SQLITE_DBCONFIG_DQS_DML = 1013
SQLITE_DBCONFIG_ENABLE_FKEY = 1002
SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004
SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005
SQLITE_DBCONFIG_ENABLE_QPSG = 1007
SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003
SQLITE_DBCONFIG_ENABLE_VIEW = 1015
SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012
SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006
SQLITE_DBCONFIG_RESET_DATABASE = 1009
SQLITE_DBCONFIG_TRIGGER_EQP = 1008
SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017
SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011
SQLITE_DELETE = 9
SQLITE_DENY = 1
SQLITE_DETACH = 25
SQLITE_DONE = 101
SQLITE_DROP_INDEX = 10
SQLITE_DROP_TABLE = 11
SQLITE_DROP_TEMP_INDEX = 12
SQLITE_DROP_TEMP_TABLE = 13
SQLITE_DROP_TEMP_TRIGGER = 14
SQLITE_DROP_TEMP_VIEW = 15
SQLITE_DROP_TRIGGER = 16
SQLITE_DROP_VIEW = 17
SQLITE_DROP_VTABLE = 30
SQLITE_EMPTY = 16
SQLITE_ERROR = 1
SQLITE_ERROR_MISSING_COLLSEQ = 257
SQLITE_ERROR_RETRY = 513
SQLITE_ERROR_SNAPSHOT = 769
SQLITE_FORMAT = 24
SQLITE_FULL = 13
SQLITE_FUNCTION = 31
SQLITE_IGNORE = 2
SQLITE_INSERT = 18
SQLITE_INTERNAL = 2
SQLITE_INTERRUPT = 9
SQLITE_IOERR = 10
SQLITE_IOERR_ACCESS = 3338
SQLITE_IOERR_AUTH = 7178
SQLITE_IOERR_BEGIN_ATOMIC = 7434
SQLITE_IOERR_BLOCKED = 2826
SQLITE_IOERR_CHECKRESERVEDLOCK = 3594
SQLITE_IOERR_CLOSE = 4106
SQLITE_IOERR_COMMIT_ATOMIC = 7690
SQLITE_IOERR_CONVPATH = 6666
SQLITE_IOERR_CORRUPTFS = 8458
SQLITE_IOERR_DATA = 8202
SQLITE_IOERR_DELETE = 2570
SQLITE_IOERR_DELETE_NOENT = 5898
SQLITE_IOERR_DIR_CLOSE = 4362
SQLITE_IOERR_DIR_FSYNC = 1290
SQLITE_IOERR_FSTAT = 1802
SQLITE_IOERR_FSYNC = 1034
SQLITE_IOERR_GETTEMPPATH = 6410
SQLITE_IOERR_LOCK = 3850
SQLITE_IOERR_MMAP = 6154
SQLITE_IOERR_NOMEM = 3082
SQLITE_IOERR_RDLOCK = 2314
SQLITE_IOERR_READ = 266
SQLITE_IOERR_ROLLBACK_ATOMIC = 7946
SQLITE_IOERR_SEEK = 5642
SQLITE_IOERR_SHMLOCK = 5130
SQLITE_IOERR_SHMMAP = 5386
SQLITE_IOERR_SHMOPEN = 4618
SQLITE_IOERR_SHMSIZE = 4874
SQLITE_IOERR_SHORT_READ = 522
SQLITE_IOERR_TRUNCATE = 1546
SQLITE_IOERR_UNLOCK = 2058
SQLITE_IOERR_VNODE = 6922
SQLITE_IOERR_WRITE = 778
SQLITE_LIMIT_ATTACHED = 7
SQLITE_LIMIT_COLUMN = 2
SQLITE_LIMIT_COMPOUND_SELECT = 4
SQLITE_LIMIT_EXPR_DEPTH = 3
SQLITE_LIMIT_FUNCTION_ARG = 6
SQLITE_LIMIT_LENGTH = 0
SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8
SQLITE_LIMIT_SQL_LENGTH = 1
SQLITE_LIMIT_TRIGGER_DEPTH = 10
SQLITE_LIMIT_VARIABLE_NUMBER = 9
SQLITE_LIMIT_VDBE_OP = 5
SQLITE_LIMIT_WORKER_THREADS = 11
SQLITE_LOCKED = 6
SQLITE_LOCKED_SHAREDCACHE = 262
SQLITE_LOCKED_VTAB = 518
SQLITE_MISMATCH = 20
SQLITE_MISUSE = 21
SQLITE_NOLFS = 22
SQLITE_NOMEM = 7
SQLITE_NOTADB = 26
SQLITE_NOTFOUND = 12
SQLITE_NOTICE = 27
SQLITE_NOTICE_RECOVER_ROLLBACK = 539
SQLITE_NOTICE_RECOVER_WAL = 283
SQLITE_OK = 0
SQLITE_OK_LOAD_PERMANENTLY = 256
SQLITE_OK_SYMLINK = 512
SQLITE_PERM = 3
SQLITE_PRAGMA = 19
SQLITE_PROTOCOL = 15
SQLITE_RANGE = 25
SQLITE_READ = 20
SQLITE_READONLY = 8
SQLITE_READONLY_CANTINIT = 1288
SQLITE_READONLY_CANTLOCK = 520
SQLITE_READONLY_DBMOVED = 1032
SQLITE_READONLY_DIRECTORY = 1544
SQLITE_READONLY_RECOVERY = 264
SQLITE_READONLY_ROLLBACK = 776
SQLITE_RECURSIVE = 33
SQLITE_REINDEX = 27
SQLITE_ROW = 100
SQLITE_SAVEPOINT = 32
SQLITE_SCHEMA = 17
SQLITE_SELECT = 21
SQLITE_TOOBIG = 18
SQLITE_TRANSACTION = 22
SQLITE_UPDATE = 23
SQLITE_WARNING = 28
SQLITE_WARNING_AUTOINDEX = 284
adapters = {(<class 'datetime.date'>, <class 'sqlite3.PrepareProtocol'...
apilevel = '2.0'
converters = {'DATE': <function convert_date>, 'TIMESTAMP': <function ...
paramstyle = 'qmark'
sqlite_version = '3.45.3'
sqlite_version_info = (3, 45, 3)
threadsafety = 3
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\sqlite3\__init__.py
peewee.struct
Python Library Documentation: module struct
NAME
struct
MODULE REFERENCE
https://docs.python.org/3.12/library/struct.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
Functions to convert between Python values and C structs.
Python bytes objects are used to hold the data representing the C struct
and also as format strings (explained below) to describe the layout of data
in the C struct.
The optional first format char indicates byte order, size and alignment:
@: native order, size & alignment (default)
=: native order, std. size & alignment
<: little-endian, std. size & alignment
>: big-endian, std. size & alignment
!: same as >
The remaining chars indicate types of args and must match exactly;
these can be preceded by a decimal repeat count:
x: pad byte (no data); c:char; b:signed byte; B:unsigned byte;
?: _Bool (requires C99; if not available, char is used instead)
h:short; H:unsigned short; i:int; I:unsigned int;
l:long; L:unsigned long; f:float; d:double; e:half-float.
Special cases (preceding decimal count indicates length):
s:string (array of char); p: pascal string (with count byte).
Special cases (only available in native format):
n:ssize_t; N:size_t;
P:an integer type that is wide enough to hold a pointer.
Special case (not in native mode unless 'long long' in platform C):
q:long long; Q:unsigned long long
Whitespace between formats is ignored.
The variable struct.error is an exception raised on errors.
CLASSES
builtins.Exception(builtins.BaseException)
error
builtins.object
_struct.Struct
class Struct(builtins.object)
| Struct(fmt) --> compiled struct object
|
| Methods defined here:
|
| __delattr__(self, name, /)
| Implement delattr(self, name).
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __setattr__(self, name, value, /)
| Implement setattr(self, name, value).
|
| __sizeof__(...)
| S.__sizeof__() -> size of S in memory, in bytes
|
| iter_unpack(self, buffer, /)
| Return an iterator yielding tuples.
|
| Tuples are unpacked from the given bytes source, like a repeated
| invocation of unpack_from().
|
| Requires that the bytes length be a multiple of the struct size.
|
| pack(...)
| S.pack(v1, v2, ...) -> bytes
|
| Return a bytes object containing values v1, v2, ... packed according
| to the format string S.format. See help(struct) for more on format
| strings.
|
| pack_into(...)
| S.pack_into(buffer, offset, v1, v2, ...)
|
| Pack the values v1, v2, ... according to the format string S.format
| and write the packed bytes into the writable buffer buf starting at
| offset. Note that the offset is a required argument. See
| help(struct) for more on format strings.
|
| unpack(self, buffer, /)
| Return a tuple containing unpacked values.
|
| Unpack according to the format string Struct.format. The buffer's size
| in bytes must be Struct.size.
|
| See help(struct) for more on format strings.
|
| unpack_from(self, /, buffer, offset=0)
| Return a tuple containing unpacked values.
|
| Values are unpacked according to the format string Struct.format.
|
| The buffer's size in bytes, starting at position offset, must be
| at least Struct.size.
|
| See help(struct) for more on format strings.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| format
| struct format string
|
| size
| struct size in bytes
class error(builtins.Exception)
| Method resolution order:
| error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
calcsize(format, /)
Return size in bytes of the struct described by the format string.
iter_unpack(format, buffer, /)
Return an iterator yielding tuples unpacked from the given bytes.
The bytes are unpacked according to the format string, like
a repeated invocation of unpack_from().
Requires that the bytes length be a multiple of the format struct size.
pack(...)
pack(format, v1, v2, ...) -> bytes
Return a bytes object containing the values v1, v2, ... packed according
to the format string. See help(struct) for more on format strings.
pack_into(...)
pack_into(format, buffer, offset, v1, v2, ...)
Pack the values v1, v2, ... according to the format string and write
the packed bytes into the writable buffer buf starting at offset. Note
that the offset is a required argument. See help(struct) for more
on format strings.
unpack(format, buffer, /)
Return a tuple containing values unpacked according to the format string.
The buffer's size in bytes must be calcsize(format).
See help(struct) for more on format strings.
unpack_from(format, /, buffer, offset=0)
Return a tuple containing values unpacked according to the format string.
The buffer's size, minus offset, must be at least calcsize(format).
See help(struct) for more on format strings.
DATA
__all__ = ['calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from', '...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\struct.py
peewee.sys
Python Library Documentation: built-in module sys
NAME
sys
MODULE REFERENCE
https://docs.python.org/3.12/library/sys.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module provides access to some objects used or maintained by the
interpreter and to functions that interact strongly with the interpreter.
Dynamic objects:
argv -- command line arguments; argv[0] is the script pathname if known
path -- module search path; path[0] is the script directory, else ''
modules -- dictionary of loaded modules
displayhook -- called to show results in an interactive session
excepthook -- called to handle any uncaught exception other than SystemExit
To customize printing in an interactive session or to install a custom
top-level exception handler, assign other functions to replace these.
stdin -- standard input file object; used by input()
stdout -- standard output file object; used by print()
stderr -- standard error object; used for error messages
By assigning other file objects (or objects that behave like files)
to these, it is possible to redirect all of the interpreter's I/O.
last_exc - the last uncaught exception
Only available in an interactive session after a
traceback has been printed.
last_type -- type of last uncaught exception
last_value -- value of last uncaught exception
last_traceback -- traceback of last uncaught exception
These three are the (deprecated) legacy representation of last_exc.
Static objects:
builtin_module_names -- tuple of module names built into this interpreter
copyright -- copyright notice pertaining to this interpreter
exec_prefix -- prefix used to find the machine-specific Python library
executable -- absolute path of the executable binary of the Python interpreter
float_info -- a named tuple with information about the float implementation.
float_repr_style -- string indicating the style of repr() output for floats
hash_info -- a named tuple with information about the hash algorithm.
hexversion -- version information encoded as a single integer
implementation -- Python implementation information.
int_info -- a named tuple with information about the int implementation.
maxsize -- the largest supported length of containers.
maxunicode -- the value of the largest Unicode code point
platform -- platform identifier
prefix -- prefix used to find the Python library
thread_info -- a named tuple with information about the thread implementation.
version -- the version of this interpreter as a string
version_info -- version information as a named tuple
dllhandle -- [Windows only] integer handle of the Python DLL
winver -- [Windows only] version number of the Python DLL
_enablelegacywindowsfsencoding -- [Windows only]
__stdin__ -- the original stdin; don't touch!
__stdout__ -- the original stdout; don't touch!
__stderr__ -- the original stderr; don't touch!
__displayhook__ -- the original displayhook; don't touch!
__excepthook__ -- the original excepthook; don't touch!
Functions:
displayhook() -- print an object to the screen, and save it in builtins._
excepthook() -- print an exception and its traceback to sys.stderr
exception() -- return the current thread's active exception
exc_info() -- return information about the current thread's active exception
exit() -- exit the interpreter by raising SystemExit
getdlopenflags() -- returns flags to be used for dlopen() calls
getprofile() -- get the global profiling function
getrefcount() -- return the reference count for an object (plus one :-)
getrecursionlimit() -- return the max recursion depth for the interpreter
getsizeof() -- return the size of an object in bytes
gettrace() -- get the global debug tracing function
setdlopenflags() -- set the flags to be used for dlopen() calls
setprofile() -- set the global profiling function
setrecursionlimit() -- set the max recursion depth for the interpreter
settrace() -- set the global debug tracing function
SUBMODULES
monitoring
FUNCTIONS
__breakpointhook__ = breakpointhook(...)
breakpointhook(*args, **kws)
This hook function is called by built-in breakpoint().
__displayhook__ = displayhook(object, /)
Print an object to sys.stdout and also save it in builtins._
__excepthook__ = excepthook(exctype, value, traceback, /)
Handle an exception by displaying it with a traceback on sys.stderr.
__unraisablehook__ = unraisablehook(unraisable, /)
Handle an unraisable exception.
The unraisable argument has the following attributes:
* exc_type: Exception type.
* exc_value: Exception value, can be None.
* exc_traceback: Exception traceback, can be None.
* err_msg: Error message, can be None.
* object: Object causing the exception, can be None.
activate_stack_trampoline(backend, /)
Activate stack profiler trampoline *backend*.
addaudithook(hook)
Adds a new audit hook callback.
audit(...)
audit(event, *args)
Passes the event to any audit hooks that are attached.
breakpointhook(...)
breakpointhook(*args, **kws)
This hook function is called by built-in breakpoint().
call_tracing(func, args, /)
Call func(*args), while tracing is enabled.
The tracing state is saved, and restored afterwards. This is intended
to be called from a debugger from a checkpoint, to recursively debug
some other code.
deactivate_stack_trampoline()
Deactivate the current stack profiler trampoline backend.
If no stack profiler is activated, this function has no effect.
displayhook(object, /)
Print an object to sys.stdout and also save it in builtins._
exc_info()
Return current exception information: (type, value, traceback).
Return information about the most recent exception caught by an except
clause in the current stack frame or in an older stack frame.
excepthook(exctype, value, traceback, /)
Handle an exception by displaying it with a traceback on sys.stderr.
exception()
Return the current exception.
Return the most recent exception caught by an except clause
in the current stack frame or in an older stack frame, or None
if no such exception exists.
exit(status=None, /)
Exit the interpreter by raising SystemExit(status).
If the status is omitted or None, it defaults to zero (i.e., success).
If the status is an integer, it will be used as the system exit status.
If it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure).
get_asyncgen_hooks()
Return the installed asynchronous generators hooks.
This returns a namedtuple of the form (firstiter, finalizer).
get_coroutine_origin_tracking_depth()
Check status of origin tracking for coroutine objects in this thread.
get_int_max_str_digits()
Return the maximum string digits limit for non-binary int<->str conversions.
getallocatedblocks()
Return the number of memory blocks currently allocated.
getdefaultencoding()
Return the current default encoding used by the Unicode implementation.
getfilesystemencodeerrors()
Return the error mode used Unicode to OS filename conversion.
getfilesystemencoding()
Return the encoding used to convert Unicode filenames to OS filenames.
getprofile()
Return the profiling function set with sys.setprofile.
See the profiler chapter in the library manual.
getrecursionlimit()
Return the current value of the recursion limit.
The recursion limit is the maximum depth of the Python interpreter
stack. This limit prevents infinite recursion from causing an overflow
of the C stack and crashing Python.
getrefcount(object, /)
Return the reference count of object.
The count returned is generally one higher than you might expect,
because it includes the (temporary) reference as an argument to
getrefcount().
getsizeof(...)
getsizeof(object [, default]) -> int
Return the size of object in bytes.
getswitchinterval()
Return the current thread switch interval; see sys.setswitchinterval().
gettrace()
Return the global debug tracing function set with sys.settrace.
See the debugger chapter in the library manual.
getunicodeinternedsize()
Return the number of elements of the unicode interned dictionary
getwindowsversion()
Return info about the running version of Windows as a named tuple.
The members are named: major, minor, build, platform, service_pack,
service_pack_major, service_pack_minor, suite_mask, product_type and
platform_version. For backward compatibility, only the first 5 items
are available by indexing. All elements are numbers, except
service_pack and platform_type which are strings, and platform_version
which is a 3-tuple. Platform is always 2. Product_type may be 1 for a
workstation, 2 for a domain controller, 3 for a server.
Platform_version is a 3-tuple containing a version number that is
intended for identifying the OS rather than feature detection.
intern(string, /)
``Intern'' the given string.
This enters the string in the (global) table of interned strings whose
purpose is to speed up dictionary lookups. Return the string itself or
the previously interned string object with the same value.
is_finalizing()
Return True if Python is exiting.
is_stack_trampoline_active()
Return *True* if a stack profiler trampoline is active.
set_asyncgen_hooks(...)
set_asyncgen_hooks([firstiter] [, finalizer])
Set a finalizer for async generators objects.
set_coroutine_origin_tracking_depth(depth)
Enable or disable origin tracking for coroutine objects in this thread.
Coroutine objects will track 'depth' frames of traceback information
about where they came from, available in their cr_origin attribute.
Set a depth of 0 to disable.
set_int_max_str_digits(maxdigits)
Set the maximum string digits limit for non-binary int<->str conversions.
setprofile(...)
setprofile(function)
Set the profiling function. It will be called on each function call
and return. See the profiler chapter in the library manual.
setrecursionlimit(limit, /)
Set the maximum depth of the Python interpreter stack to n.
This limit prevents infinite recursion from causing an overflow of the C
stack and crashing Python. The highest possible limit is platform-
dependent.
setswitchinterval(interval, /)
Set the ideal thread switching delay inside the Python interpreter.
The actual frequency of switching threads can be lower if the
interpreter executes long sequences of uninterruptible code
(this is implementation-specific and workload-dependent).
The parameter must represent the desired switching delay in seconds
A typical value is 0.005 (5 milliseconds).
settrace(...)
settrace(function)
Set the global debug tracing function. It will be called on each
function call. See the debugger chapter in the library manual.
unraisablehook(unraisable, /)
Handle an unraisable exception.
The unraisable argument has the following attributes:
* exc_type: Exception type.
* exc_value: Exception value, can be None.
* exc_traceback: Exception traceback, can be None.
* err_msg: Error message, can be None.
* object: Object causing the exception, can be None.
DATA
__stderr__ = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1...
__stdin__ = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8...
__stdout__ = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1...
api_version = 1013
argv = [r'f:\JoeyCodes\PyDocs\py_docs.py', '--worker', 'peewee', r'F:\...
base_exec_prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Pyth...
base_prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312...
builtin_module_names = ('_abc', '_ast', '_bisect', '_blake2', '_codecs...
byteorder = 'little'
copyright = 'Copyright (c) 2001-2023 Python Software Foundati...ematis...
dllhandle = 140727031824384
dont_write_bytecode = False
exec_prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312...
executable = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312\...
flags = sys.flags(debug=0, inspect=0, interactive=0, opt...ding=0, saf...
float_info = sys.float_info(max=1.7976931348623157e+308, max_...epsilo...
float_repr_style = 'short'
hash_info = sys.hash_info(width=64, modulus=2305843009213693...iphash1...
hexversion = 51119856
implementation = namespace(name='cpython', cache_tag='cpython-312...as...
int_info = sys.int_info(bits_per_digit=30, sizeof_digit=4, ..._str_dig...
maxsize = 9223372036854775807
maxunicode = 1114111
meta_path = [<_distutils_hack.DistutilsMetaFinder object>, <class '_fr...
modules = {'MySQLdb': <module 'MySQLdb' from 'C:\\Users\\Youse\\AppDat...
orig_argv = [r'C:\Users\Youse\AppData\Local\Programs\Python\Python312\...
path = [r'f:\JoeyCodes\PyDocs', r'C:\Users\Youse\AppData\Local\Program...
path_hooks = [<class 'zipimport.zipimporter'>, <function FileFinder.pa...
path_importer_cache = {r'C:\Users\Youse\AppData\Local\Programs\Python\...
platform = 'win32'
platlibdir = 'DLLs'
prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312'
pycache_prefix = None
stderr = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'...
stdin = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>
stdlib_module_names = frozenset({'__future__', '_abc', '_aix_support',...
stdout = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'...
thread_info = sys.thread_info(name='nt', lock=None, version=None)
version = '3.12.6 (tags/v3.12.6:a4a2d2b, Sep 6 2024, 20:11:23) [MSC v...
version_info = sys.version_info(major=3, minor=12, micro=6, releaselev...
warnoptions = []
winver = '3.12'
FILE
(built-in)
peewee.threading
Python Library Documentation: module threading
NAME
threading - Thread module emulating a subset of Java's threading model.
MODULE REFERENCE
https://docs.python.org/3.12/library/threading.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
CLASSES
builtins.Exception(builtins.BaseException)
builtins.RuntimeError
BrokenBarrierError
builtins.object
_thread._local
Barrier
Condition
Event
Semaphore
BoundedSemaphore
Thread
Timer
builtins.tuple(builtins.object)
_thread._ExceptHookArgs
class Barrier(builtins.object)
| Barrier(parties, action=None, timeout=None)
|
| Implements a Barrier.
|
| Useful for synchronizing a fixed number of threads at known synchronization
| points. Threads block on 'wait()' and are simultaneously awoken once they
| have all made that call.
|
| Methods defined here:
|
| __init__(self, parties, action=None, timeout=None)
| Create a barrier, initialised to 'parties' threads.
|
| 'action' is a callable which, when supplied, will be called by one of
| the threads after they have all entered the barrier and just prior to
| releasing them all. If a 'timeout' is provided, it is used as the
| default for all subsequent 'wait()' calls.
|
| __repr__(self)
| Return repr(self).
|
| abort(self)
| Place the barrier into a 'broken' state.
|
| Useful in case of error. Any currently waiting threads and threads
| attempting to 'wait()' will have BrokenBarrierError raised.
|
| reset(self)
| Reset the barrier to the initial state.
|
| Any threads currently waiting will get the BrokenBarrier exception
| raised.
|
| wait(self, timeout=None)
| Wait for the barrier.
|
| When the specified number of threads have started waiting, they are all
| simultaneously awoken. If an 'action' was provided for the barrier, one
| of the threads will have executed that callback prior to returning.
| Returns an individual index number from 0 to 'parties-1'.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| broken
| Return True if the barrier is in a broken state.
|
| n_waiting
| Return the number of threads currently waiting at the barrier.
|
| parties
| Return the number of threads required to trip the barrier.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class BoundedSemaphore(Semaphore)
| BoundedSemaphore(value=1)
|
| Implements a bounded semaphore.
|
| A bounded semaphore checks to make sure its current value doesn't exceed its
| initial value. If it does, ValueError is raised. In most situations
| semaphores are used to guard resources with limited capacity.
|
| If the semaphore is released too many times it's a sign of a bug. If not
| given, value defaults to 1.
|
| Like regular semaphores, bounded semaphores manage a counter representing
| the number of release() calls minus the number of acquire() calls, plus an
| initial value. The acquire() method blocks if necessary until it can return
| without making the counter negative. If not given, value defaults to 1.
|
| Method resolution order:
| BoundedSemaphore
| Semaphore
| builtins.object
|
| Methods defined here:
|
| __init__(self, value=1)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| release(self, n=1)
| Release a semaphore, incrementing the internal counter by one or more.
|
| When the counter is zero on entry and another thread is waiting for it
| to become larger than zero again, wake up that thread.
|
| If the number of releases exceeds the number of acquires,
| raise a ValueError.
|
| ----------------------------------------------------------------------
| Methods inherited from Semaphore:
|
| __enter__ = acquire(self, blocking=True, timeout=None)
|
| __exit__(self, t, v, tb)
|
| acquire(self, blocking=True, timeout=None)
| Acquire a semaphore, decrementing the internal counter by one.
|
| When invoked without arguments: if the internal counter is larger than
| zero on entry, decrement it by one and return immediately. If it is zero
| on entry, block, waiting until some other thread has called release() to
| make it larger than zero. This is done with proper interlocking so that
| if multiple acquire() calls are blocked, release() will wake exactly one
| of them up. The implementation may pick one at random, so the order in
| which blocked threads are awakened should not be relied on. There is no
| return value in this case.
|
| When invoked with blocking set to true, do the same thing as when called
| without arguments, and return true.
|
| When invoked with blocking set to false, do not block. If a call without
| an argument would block, return false immediately; otherwise, do the
| same thing as when called without arguments, and return true.
|
| When invoked with a timeout other than None, it will block for at
| most timeout seconds. If acquire does not complete successfully in
| that interval, return false. Return true otherwise.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Semaphore:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class BrokenBarrierError(builtins.RuntimeError)
| # exception raised by the Barrier class
|
| Method resolution order:
| BrokenBarrierError
| builtins.RuntimeError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.RuntimeError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.RuntimeError:
|
| __new__(*args, **kwargs) class method of builtins.RuntimeError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Condition(builtins.object)
| Condition(lock=None)
|
| Class that implements a condition variable.
|
| A condition variable allows one or more threads to wait until they are
| notified by another thread.
|
| If the lock argument is given and not None, it must be a Lock or RLock
| object, and it is used as the underlying lock. Otherwise, a new RLock object
| is created and used as the underlying lock.
|
| Methods defined here:
|
| __enter__(self)
|
| __exit__(self, *args)
|
| __init__(self, lock=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| notify(self, n=1)
| Wake up one or more threads waiting on this condition, if any.
|
| If the calling thread has not acquired the lock when this method is
| called, a RuntimeError is raised.
|
| This method wakes up at most n of the threads waiting for the condition
| variable; it is a no-op if no threads are waiting.
|
| notifyAll(self)
| Wake up all threads waiting on this condition.
|
| This method is deprecated, use notify_all() instead.
|
| notify_all(self)
| Wake up all threads waiting on this condition.
|
| If the calling thread has not acquired the lock when this method
| is called, a RuntimeError is raised.
|
| wait(self, timeout=None)
| Wait until notified or until a timeout occurs.
|
| If the calling thread has not acquired the lock when this method is
| called, a RuntimeError is raised.
|
| This method releases the underlying lock, and then blocks until it is
| awakened by a notify() or notify_all() call for the same condition
| variable in another thread, or until the optional timeout occurs. Once
| awakened or timed out, it re-acquires the lock and returns.
|
| When the timeout argument is present and not None, it should be a
| floating-point number specifying a timeout for the operation in seconds
| (or fractions thereof).
|
| When the underlying lock is an RLock, it is not released using its
| release() method, since this may not actually unlock the lock when it
| was acquired multiple times recursively. Instead, an internal interface
| of the RLock class is used, which really unlocks it even when it has
| been recursively acquired several times. Another internal interface is
| then used to restore the recursion level when the lock is reacquired.
|
| wait_for(self, predicate, timeout=None)
| Wait until a condition evaluates to True.
|
| predicate should be a callable which result will be interpreted as a
| boolean value. A timeout may be provided giving the maximum time to
| wait.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Event(builtins.object)
| Class implementing event objects.
|
| Events manage a flag that can be set to true with the set() method and reset
| to false with the clear() method. The wait() method blocks until the flag is
| true. The flag is initially false.
|
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| clear(self)
| Reset the internal flag to false.
|
| Subsequently, threads calling wait() will block until set() is called to
| set the internal flag to true again.
|
| isSet(self)
| Return true if and only if the internal flag is true.
|
| This method is deprecated, use is_set() instead.
|
| is_set(self)
| Return true if and only if the internal flag is true.
|
| set(self)
| Set the internal flag to true.
|
| All threads waiting for it to become true are awakened. Threads
| that call wait() once the flag is true will not block at all.
|
| wait(self, timeout=None)
| Block until the internal flag is true.
|
| If the internal flag is true on entry, return immediately. Otherwise,
| block until another thread calls set() to set the flag to true, or until
| the optional timeout occurs.
|
| When the timeout argument is present and not None, it should be a
| floating-point number specifying a timeout for the operation in seconds
| (or fractions thereof).
|
| This method returns the internal flag on exit, so it will always return
| True except if a timeout is given and the operation times out.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
ExceptHookArgs = class _ExceptHookArgs(builtins.tuple)
| ExceptHookArgs(iterable=(), /)
|
| ExceptHookArgs
|
| Type used to pass arguments to threading.excepthook.
|
| Method resolution order:
| _ExceptHookArgs
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| exc_traceback
| Exception traceback
|
| exc_type
| Exception type
|
| exc_value
| Exception value
|
| thread
| Thread
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('exc_type', 'exc_value', 'exc_traceback', 'thread')
|
| n_fields = 4
|
| n_sequence_fields = 4
|
| n_unnamed_fields = 0
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
class Semaphore(builtins.object)
| Semaphore(value=1)
|
| This class implements semaphore objects.
|
| Semaphores manage a counter representing the number of release() calls minus
| the number of acquire() calls, plus an initial value. The acquire() method
| blocks if necessary until it can return without making the counter
| negative. If not given, value defaults to 1.
|
| Methods defined here:
|
| __enter__ = acquire(self, blocking=True, timeout=None)
|
| __exit__(self, t, v, tb)
|
| __init__(self, value=1)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| acquire(self, blocking=True, timeout=None)
| Acquire a semaphore, decrementing the internal counter by one.
|
| When invoked without arguments: if the internal counter is larger than
| zero on entry, decrement it by one and return immediately. If it is zero
| on entry, block, waiting until some other thread has called release() to
| make it larger than zero. This is done with proper interlocking so that
| if multiple acquire() calls are blocked, release() will wake exactly one
| of them up. The implementation may pick one at random, so the order in
| which blocked threads are awakened should not be relied on. There is no
| return value in this case.
|
| When invoked with blocking set to true, do the same thing as when called
| without arguments, and return true.
|
| When invoked with blocking set to false, do not block. If a call without
| an argument would block, return false immediately; otherwise, do the
| same thing as when called without arguments, and return true.
|
| When invoked with a timeout other than None, it will block for at
| most timeout seconds. If acquire does not complete successfully in
| that interval, return false. Return true otherwise.
|
| release(self, n=1)
| Release a semaphore, incrementing the internal counter by one or more.
|
| When the counter is zero on entry and another thread is waiting for it
| to become larger than zero again, wake up that thread.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Thread(builtins.object)
| Thread(group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None)
|
| A class that represents a thread of control.
|
| This class can be safely subclassed in a limited fashion. There are two ways
| to specify the activity: by passing a callable object to the constructor, or
| by overriding the run() method in a subclass.
|
| Methods defined here:
|
| __init__(self, group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None)
| This constructor should always be called with keyword arguments. Arguments are:
|
| *group* should be None; reserved for future extension when a ThreadGroup
| class is implemented.
|
| *target* is the callable object to be invoked by the run()
| method. Defaults to None, meaning nothing is called.
|
| *name* is the thread name. By default, a unique name is constructed of
| the form "Thread-N" where N is a small decimal number.
|
| *args* is a list or tuple of arguments for the target invocation. Defaults to ().
|
| *kwargs* is a dictionary of keyword arguments for the target
| invocation. Defaults to {}.
|
| If a subclass overrides the constructor, it must make sure to invoke
| the base class constructor (Thread.__init__()) before doing anything
| else to the thread.
|
| __repr__(self)
| Return repr(self).
|
| getName(self)
| Return a string used for identification purposes only.
|
| This method is deprecated, use the name attribute instead.
|
| isDaemon(self)
| Return whether this thread is a daemon.
|
| This method is deprecated, use the daemon attribute instead.
|
| is_alive(self)
| Return whether the thread is alive.
|
| This method returns True just before the run() method starts until just
| after the run() method terminates. See also the module function
| enumerate().
|
| join(self, timeout=None)
| Wait until the thread terminates.
|
| This blocks the calling thread until the thread whose join() method is
| called terminates -- either normally or through an unhandled exception
| or until the optional timeout occurs.
|
| When the timeout argument is present and not None, it should be a
| floating-point number specifying a timeout for the operation in seconds
| (or fractions thereof). As join() always returns None, you must call
| is_alive() after join() to decide whether a timeout happened -- if the
| thread is still alive, the join() call timed out.
|
| When the timeout argument is not present or None, the operation will
| block until the thread terminates.
|
| A thread can be join()ed many times.
|
| join() raises a RuntimeError if an attempt is made to join the current
| thread as that would cause a deadlock. It is also an error to join() a
| thread before it has been started and attempts to do so raises the same
| exception.
|
| run(self)
| Method representing the thread's activity.
|
| You may override this method in a subclass. The standard run() method
| invokes the callable object passed to the object's constructor as the
| target argument, if any, with sequential and keyword arguments taken
| from the args and kwargs arguments, respectively.
|
| setDaemon(self, daemonic)
| Set whether this thread is a daemon.
|
| This method is deprecated, use the .daemon property instead.
|
| setName(self, name)
| Set the name string for this thread.
|
| This method is deprecated, use the name attribute instead.
|
| start(self)
| Start the thread's activity.
|
| It must be called at most once per thread object. It arranges for the
| object's run() method to be invoked in a separate thread of control.
|
| This method will raise a RuntimeError if called more than once on the
| same thread object.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| ident
| Thread identifier of this thread or None if it has not been started.
|
| This is a nonzero integer. See the get_ident() function. Thread
| identifiers may be recycled when a thread exits and another thread is
| created. The identifier is available even after the thread has exited.
|
| native_id
| Native integral thread ID of this thread, or None if it has not been started.
|
| This is a non-negative integer. See the get_native_id() function.
| This represents the Thread ID as reported by the kernel.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| daemon
| A boolean value indicating whether this thread is a daemon thread.
|
| This must be set before start() is called, otherwise RuntimeError is
| raised. Its initial value is inherited from the creating thread; the
| main thread is not a daemon thread and therefore all threads created in
| the main thread default to daemon = False.
|
| The entire Python program exits when only daemon threads are left.
|
| name
| A string used for identification purposes only.
|
| It has no semantics. Multiple threads may be given the same name. The
| initial name is set by the constructor.
ThreadError = class RuntimeError(Exception)
| Unspecified run-time error.
|
| Method resolution order:
| RuntimeError
| Exception
| BaseException
| object
|
| Built-in subclasses:
| NotImplementedError
| RecursionError
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Timer(Thread)
| Timer(interval, function, args=None, kwargs=None)
|
| Call a function after a specified number of seconds:
|
| t = Timer(30.0, f, args=None, kwargs=None)
| t.start()
| t.cancel() # stop the timer's action if it's still waiting
|
| Method resolution order:
| Timer
| Thread
| builtins.object
|
| Methods defined here:
|
| __init__(self, interval, function, args=None, kwargs=None)
| This constructor should always be called with keyword arguments. Arguments are:
|
| *group* should be None; reserved for future extension when a ThreadGroup
| class is implemented.
|
| *target* is the callable object to be invoked by the run()
| method. Defaults to None, meaning nothing is called.
|
| *name* is the thread name. By default, a unique name is constructed of
| the form "Thread-N" where N is a small decimal number.
|
| *args* is a list or tuple of arguments for the target invocation. Defaults to ().
|
| *kwargs* is a dictionary of keyword arguments for the target
| invocation. Defaults to {}.
|
| If a subclass overrides the constructor, it must make sure to invoke
| the base class constructor (Thread.__init__()) before doing anything
| else to the thread.
|
| cancel(self)
| Stop the timer if it hasn't finished yet.
|
| run(self)
| Method representing the thread's activity.
|
| You may override this method in a subclass. The standard run() method
| invokes the callable object passed to the object's constructor as the
| target argument, if any, with sequential and keyword arguments taken
| from the args and kwargs arguments, respectively.
|
| ----------------------------------------------------------------------
| Methods inherited from Thread:
|
| __repr__(self)
| Return repr(self).
|
| getName(self)
| Return a string used for identification purposes only.
|
| This method is deprecated, use the name attribute instead.
|
| isDaemon(self)
| Return whether this thread is a daemon.
|
| This method is deprecated, use the daemon attribute instead.
|
| is_alive(self)
| Return whether the thread is alive.
|
| This method returns True just before the run() method starts until just
| after the run() method terminates. See also the module function
| enumerate().
|
| join(self, timeout=None)
| Wait until the thread terminates.
|
| This blocks the calling thread until the thread whose join() method is
| called terminates -- either normally or through an unhandled exception
| or until the optional timeout occurs.
|
| When the timeout argument is present and not None, it should be a
| floating-point number specifying a timeout for the operation in seconds
| (or fractions thereof). As join() always returns None, you must call
| is_alive() after join() to decide whether a timeout happened -- if the
| thread is still alive, the join() call timed out.
|
| When the timeout argument is not present or None, the operation will
| block until the thread terminates.
|
| A thread can be join()ed many times.
|
| join() raises a RuntimeError if an attempt is made to join the current
| thread as that would cause a deadlock. It is also an error to join() a
| thread before it has been started and attempts to do so raises the same
| exception.
|
| setDaemon(self, daemonic)
| Set whether this thread is a daemon.
|
| This method is deprecated, use the .daemon property instead.
|
| setName(self, name)
| Set the name string for this thread.
|
| This method is deprecated, use the name attribute instead.
|
| start(self)
| Start the thread's activity.
|
| It must be called at most once per thread object. It arranges for the
| object's run() method to be invoked in a separate thread of control.
|
| This method will raise a RuntimeError if called more than once on the
| same thread object.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from Thread:
|
| ident
| Thread identifier of this thread or None if it has not been started.
|
| This is a nonzero integer. See the get_ident() function. Thread
| identifiers may be recycled when a thread exits and another thread is
| created. The identifier is available even after the thread has exited.
|
| native_id
| Native integral thread ID of this thread, or None if it has not been started.
|
| This is a non-negative integer. See the get_native_id() function.
| This represents the Thread ID as reported by the kernel.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Thread:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| daemon
| A boolean value indicating whether this thread is a daemon thread.
|
| This must be set before start() is called, otherwise RuntimeError is
| raised. Its initial value is inherited from the creating thread; the
| main thread is not a daemon thread and therefore all threads created in
| the main thread default to daemon = False.
|
| The entire Python program exits when only daemon threads are left.
|
| name
| A string used for identification purposes only.
|
| It has no semantics. Multiple threads may be given the same name. The
| initial name is set by the constructor.
local = class _local(builtins.object)
| Thread-local data
|
| Methods defined here:
|
| __delattr__(self, name, /)
| Implement delattr(self, name).
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __setattr__(self, name, value, /)
| Implement setattr(self, name, value).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
FUNCTIONS
Lock = allocate_lock(...)
allocate_lock() -> lock object
(allocate() is an obsolete synonym)
Create a new lock object. See help(type(threading.Lock())) for
information about locks.
RLock(*args, **kwargs)
Factory function that returns a new reentrant lock.
A reentrant lock must be released by the thread that acquired it. Once a
thread has acquired a reentrant lock, the same thread may acquire it again
without blocking; the thread must release it once for each time it has
acquired it.
__excepthook__ = _excepthook(...)
excepthook(exc_type, exc_value, exc_traceback, thread)
Handle uncaught Thread.run() exception.
active_count()
Return the number of Thread objects currently alive.
The returned count is equal to the length of the list returned by
enumerate().
current_thread()
Return the current Thread object, corresponding to the caller's thread of control.
If the caller's thread of control was not created through the threading
module, a dummy thread object with limited functionality is returned.
enumerate()
Return a list of all Thread objects currently alive.
The list includes daemonic threads, dummy thread objects created by
current_thread(), and the main thread. It excludes terminated threads and
threads that have not yet been started.
excepthook = _excepthook(...)
excepthook(exc_type, exc_value, exc_traceback, thread)
Handle uncaught Thread.run() exception.
get_ident(...)
get_ident() -> integer
Return a non-zero integer that uniquely identifies the current thread
amongst other threads that exist simultaneously.
This may be used to identify per-thread resources.
Even though on some platforms threads identities may appear to be
allocated consecutive numbers starting at 1, this behavior should not
be relied upon, and the number should be seen purely as a magic cookie.
A thread's identity may be reused for another thread after it exits.
get_native_id(...)
get_native_id() -> integer
Return a non-negative integer identifying the thread as reported
by the OS (kernel). This may be used to uniquely identify a
particular thread within a system.
getprofile()
Get the profiler function as set by threading.setprofile().
gettrace()
Get the trace function as set by threading.settrace().
main_thread()
Return the main thread object.
In normal conditions, the main thread is the thread from which the
Python interpreter was started.
setprofile(func)
Set a profile function for all threads started from the threading module.
The func will be passed to sys.setprofile() for each thread, before its
run() method is called.
setprofile_all_threads(func)
Set a profile function for all threads started from the threading module
and all Python threads that are currently executing.
The func will be passed to sys.setprofile() for each thread, before its
run() method is called.
settrace(func)
Set a trace function for all threads started from the threading module.
The func will be passed to sys.settrace() for each thread, before its run()
method is called.
settrace_all_threads(func)
Set a trace function for all threads started from the threading module
and all Python threads that are currently executing.
The func will be passed to sys.settrace() for each thread, before its run()
method is called.
stack_size(...)
stack_size([size]) -> size
Return the thread stack size used when creating new threads. The
optional size argument specifies the stack size (in bytes) to be used
for subsequently created threads, and must be 0 (use platform or
configured default) or a positive integer value of at least 32,768 (32k).
If changing the thread stack size is unsupported, a ThreadError
exception is raised. If the specified size is invalid, a ValueError
exception is raised, and the stack size is unmodified. 32k bytes
currently the minimum supported stack size value to guarantee
sufficient stack space for the interpreter itself.
Note that some platforms may have particular restrictions on values for
the stack size, such as requiring a minimum stack size larger than 32 KiB or
requiring allocation in multiples of the system memory page size
- platform documentation should be referred to for more information
(4 KiB pages are common; using multiples of 4096 for the stack size is
the suggested approach in the absence of more specific information).
DATA
TIMEOUT_MAX = 4294967.0
__all__ = ['get_ident', 'active_count', 'Condition', 'current_thread',...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\threading.py
peewee.time
Python Library Documentation: built-in module time
NAME
time - This module provides various functions to manipulate time values.
DESCRIPTION
There are two standard representations of time. One is the number
of seconds since the Epoch, in UTC (a.k.a. GMT). It may be an integer
or a floating-point number (to represent fractions of seconds).
The epoch is the point where the time starts, the return value of time.gmtime(0).
It is January 1, 1970, 00:00:00 (UTC) on all platforms.
The other representation is a tuple of 9 integers giving local time.
The tuple items are:
year (including century, e.g. 1998)
month (1-12)
day (1-31)
hours (0-23)
minutes (0-59)
seconds (0-59)
weekday (0-6, Monday is 0)
Julian day (day in the year, 1-366)
DST (Daylight Savings Time) flag (-1, 0 or 1)
If the DST flag is 0, the time is given in the regular time zone;
if it is 1, the time is given in the DST time zone;
if it is -1, mktime() should guess based on the date and time.
CLASSES
builtins.tuple(builtins.object)
struct_time
class struct_time(builtins.tuple)
| struct_time(iterable=(), /)
|
| The time value as returned by gmtime(), localtime(), and strptime(), and
| accepted by asctime(), mktime() and strftime(). May be considered as a
| sequence of 9 integers.
|
| Note that several fields' values are not the same as those defined by
| the C language standard for struct tm. For example, the value of the
| field tm_year is the actual year, not year - 1900. See individual
| fields' descriptions for details.
|
| Method resolution order:
| struct_time
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| tm_gmtoff
| offset from UTC in seconds
|
| tm_hour
| hours, range [0, 23]
|
| tm_isdst
| 1 if summer time is in effect, 0 if not, and -1 if unknown
|
| tm_mday
| day of month, range [1, 31]
|
| tm_min
| minutes, range [0, 59]
|
| tm_mon
| month of year, range [1, 12]
|
| tm_sec
| seconds, range [0, 61])
|
| tm_wday
| day of week, range [0, 6], Monday is 0
|
| tm_yday
| day of year, range [1, 366]
|
| tm_year
| year, for example, 1993
|
| tm_zone
| abbreviation of timezone name
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('tm_year', 'tm_mon', 'tm_mday', 'tm_hour', 'tm_min',...
|
| n_fields = 11
|
| n_sequence_fields = 9
|
| n_unnamed_fields = 0
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
FUNCTIONS
asctime(...)
asctime([tuple]) -> string
Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.
When the time tuple is not present, current time as returned by localtime()
is used.
ctime(...)
ctime(seconds) -> string
Convert a time in seconds since the Epoch to a string in local time.
This is equivalent to asctime(localtime(seconds)). When the time tuple is
not present, current time as returned by localtime() is used.
get_clock_info(...)
get_clock_info(name: str) -> dict
Get information of the specified clock.
gmtime(...)
gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
GMT). When 'seconds' is not passed in, convert the current time instead.
If the platform supports the tm_gmtoff and tm_zone, they are available as
attributes only.
localtime(...)
localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,
tm_sec,tm_wday,tm_yday,tm_isdst)
Convert seconds since the Epoch to a time tuple expressing local time.
When 'seconds' is not passed in, convert the current time instead.
mktime(...)
mktime(tuple) -> floating-point number
Convert a time tuple in local time to seconds since the Epoch.
Note that mktime(gmtime(0)) will not generally return zero for most
time zones; instead the returned value will either be equal to that
of the timezone or altzone attributes on the time module.
monotonic(...)
monotonic() -> float
Monotonic clock, cannot go backward.
monotonic_ns(...)
monotonic_ns() -> int
Monotonic clock, cannot go backward, as nanoseconds.
perf_counter(...)
perf_counter() -> float
Performance counter for benchmarking.
perf_counter_ns(...)
perf_counter_ns() -> int
Performance counter for benchmarking as nanoseconds.
process_time(...)
process_time() -> float
Process time for profiling: sum of the kernel and user-space CPU time.
process_time_ns(...)
process_time() -> int
Process time for profiling as nanoseconds:
sum of the kernel and user-space CPU time.
sleep(...)
sleep(seconds)
Delay execution for a given number of seconds. The argument may be
a floating-point number for subsecond precision.
strftime(...)
strftime(format[, tuple]) -> string
Convert a time tuple to a string according to a format specification.
See the library reference manual for formatting codes. When the time tuple
is not present, current time as returned by localtime() is used.
Commonly used format codes:
%Y Year with century as a decimal number.
%m Month as a decimal number [01,12].
%d Day of the month as a decimal number [01,31].
%H Hour (24-hour clock) as a decimal number [00,23].
%M Minute as a decimal number [00,59].
%S Second as a decimal number [00,61].
%z Time zone offset from UTC.
%a Locale's abbreviated weekday name.
%A Locale's full weekday name.
%b Locale's abbreviated month name.
%B Locale's full month name.
%c Locale's appropriate date and time representation.
%I Hour (12-hour clock) as a decimal number [01,12].
%p Locale's equivalent of either AM or PM.
Other codes may be available on your platform. See documentation for
the C library strftime function.
strptime(...)
strptime(string, format) -> struct_time
Parse a string to a time tuple according to a format specification.
See the library reference manual for formatting codes (same as
strftime()).
Commonly used format codes:
%Y Year with century as a decimal number.
%m Month as a decimal number [01,12].
%d Day of the month as a decimal number [01,31].
%H Hour (24-hour clock) as a decimal number [00,23].
%M Minute as a decimal number [00,59].
%S Second as a decimal number [00,61].
%z Time zone offset from UTC.
%a Locale's abbreviated weekday name.
%A Locale's full weekday name.
%b Locale's abbreviated month name.
%B Locale's full month name.
%c Locale's appropriate date and time representation.
%I Hour (12-hour clock) as a decimal number [01,12].
%p Locale's equivalent of either AM or PM.
Other codes may be available on your platform. See documentation for
the C library strftime function.
thread_time(...)
thread_time() -> float
Thread time for profiling: sum of the kernel and user-space CPU time.
thread_time_ns(...)
thread_time() -> int
Thread time for profiling as nanoseconds:
sum of the kernel and user-space CPU time.
time(...)
time() -> floating-point number
Return the current time in seconds since the Epoch.
Fractions of a second may be present if the system clock provides them.
time_ns(...)
time_ns() -> int
Return the current time in nanoseconds since the Epoch.
DATA
altzone = -10800
daylight = 1
timezone = -7200
tzname = ('Egypt Standard Time', 'Egypt Daylight Time')
FILE
(built-in)
peewee.types
Python Library Documentation: module types
NAME
types - Define names for built-in types that aren't directly accessible as a builtin.
MODULE REFERENCE
https://docs.python.org/3.12/library/types.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
CLASSES
builtins.object
builtins.NoneType
builtins.NotImplementedType
builtins.async_generator
builtins.builtin_function_or_method
builtins.cell
builtins.classmethod_descriptor
builtins.code
builtins.coroutine
builtins.ellipsis
builtins.frame
builtins.function
builtins.generator
builtins.getset_descriptor
builtins.mappingproxy
builtins.member_descriptor
builtins.method
builtins.method-wrapper
builtins.method_descriptor
builtins.module
builtins.traceback
builtins.wrapper_descriptor
DynamicClassAttribute
GenericAlias
SimpleNamespace
UnionType
AsyncGeneratorType = class async_generator(object)
| Methods defined here:
|
| __aiter__(self, /)
| Return an awaitable, that resolves in asynchronous iterator.
|
| __anext__(self, /)
| Return a value or raise StopAsyncIteration.
|
| __del__(...)
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(...)
| gen.__sizeof__() -> size of gen in memory, in bytes
|
| aclose(...)
| aclose() -> raise GeneratorExit inside generator.
|
| asend(...)
| asend(v) -> send 'v' in generator.
|
| athrow(...)
| athrow(value)
| athrow(type[,value[,tb]])
|
| raise exception in generator.
| the (type, val, tb) signature is deprecated,
| and may be removed in a future version of Python.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| ag_await
| object being awaited on, or None
|
| ag_code
|
| ag_frame
|
| ag_running
|
| ag_suspended
BuiltinFunctionType = class builtin_function_or_method(object)
| Built-in subclasses:
| builtin_method
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __self__
|
| __text_signature__
BuiltinMethodType = class builtin_function_or_method(object)
| Built-in subclasses:
| builtin_method
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __self__
|
| __text_signature__
CellType = class cell(object)
| Create a new cell object.
|
| contents
| the contents of the cell. If not specified, the cell will be empty,
| and
| further attempts to access its cell_contents attribute will
| raise a ValueError.
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| cell_contents
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
ClassMethodDescriptorType = class classmethod_descriptor(object)
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __get__(self, instance, owner=None, /)
| Return an attribute of instance, which is of type owner.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __objclass__
|
| __text_signature__
CodeType = class code(object)
| CodeType(argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags, codestring, constants, names, varnames, filename, name, qualname, firstlineno, linetable, exceptiontable, freevars=(), cellvars=(), /)
|
| Create a code object. Not for the faint of heart.
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(...)
| Size of object in memory, in bytes.
|
| co_lines(...)
|
| co_positions(...)
|
| replace(self, /, **changes)
| Return a copy of the code object with new values for the specified fields.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| co_argcount
|
| co_cellvars
|
| co_code
|
| co_consts
|
| co_exceptiontable
|
| co_filename
|
| co_firstlineno
|
| co_flags
|
| co_freevars
|
| co_kwonlyargcount
|
| co_linetable
|
| co_lnotab
|
| co_name
|
| co_names
|
| co_nlocals
|
| co_posonlyargcount
|
| co_qualname
|
| co_stacksize
|
| co_varnames
CoroutineType = class coroutine(object)
| Methods defined here:
|
| __await__(self, /)
| Return an iterator to be used in await expression.
|
| __del__(...)
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(...)
| gen.__sizeof__() -> size of gen in memory, in bytes
|
| close(...)
| close() -> raise GeneratorExit inside coroutine.
|
| send(...)
| send(arg) -> send 'arg' into coroutine,
| return next iterated value or raise StopIteration.
|
| throw(...)
| throw(value)
| throw(type[,value[,traceback]])
|
| Raise exception in coroutine, return next iterated value or raise
| StopIteration.
| the (type, val, tb) signature is deprecated,
| and may be removed in a future version of Python.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| cr_await
| object being awaited on, or None
|
| cr_code
|
| cr_frame
|
| cr_origin
|
| cr_running
|
| cr_suspended
class DynamicClassAttribute(builtins.object)
| DynamicClassAttribute(fget=None, fset=None, fdel=None, doc=None)
|
| Route attribute access on a class to __getattr__.
|
| This is a descriptor, used to define attributes that act differently when
| accessed through an instance and through a class. Instance access remains
| normal, but access to an attribute through a class will be routed to the
| class's __getattr__ method; this is done by raising AttributeError.
|
| This allows one to have properties active on an instance, and have virtual
| attributes on the class with the same name. (Enum used this between Python
| versions 3.4 - 3.9 .)
|
| Subclass from this to use a different method of accessing virtual attributes
| and still be treated properly by the inspect module. (Enum uses this since
| Python 3.10 .)
|
| Methods defined here:
|
| __delete__(self, instance)
|
| __get__(self, instance, ownerclass=None)
|
| __init__(self, fget=None, fset=None, fdel=None, doc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __set__(self, instance, value)
|
| deleter(self, fdel)
|
| getter(self, fget)
|
| setter(self, fset)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
EllipsisType = class ellipsis(object)
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
FrameType = class frame(object)
| Methods defined here:
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(...)
| F.__sizeof__() -> size of F in memory, in bytes
|
| clear(...)
| F.clear(): clear most references held by the frame
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| f_back
|
| f_builtins
|
| f_code
|
| f_globals
|
| f_lasti
|
| f_lineno
|
| f_locals
|
| f_trace
|
| f_trace_lines
|
| f_trace_opcodes
FunctionType = class function(object)
| FunctionType(code, globals, name=None, argdefs=None, closure=None)
|
| Create a function object.
|
| code
| a code object
| globals
| the globals dictionary
| name
| a string that overrides the name from the code object
| argdefs
| a tuple that specifies the default argument values
| closure
| a tuple that supplies the bindings for free variables
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __get__(self, instance, owner=None, /)
| Return an attribute of instance, which is of type owner.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __annotations__
|
| __closure__
|
| __code__
|
| __defaults__
|
| __dict__
|
| __globals__
|
| __kwdefaults__
|
| __type_params__
GeneratorType = class generator(object)
| Methods defined here:
|
| __del__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(...)
| gen.__sizeof__() -> size of gen in memory, in bytes
|
| close(...)
| close() -> raise GeneratorExit inside generator.
|
| send(...)
| send(arg) -> send 'arg' into generator,
| return next yielded value or raise StopIteration.
|
| throw(...)
| throw(value)
| throw(type[,value[,tb]])
|
| Raise exception in generator, return next yielded value or raise
| StopIteration.
| the (type, val, tb) signature is deprecated,
| and may be removed in a future version of Python.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| gi_code
|
| gi_frame
|
| gi_running
|
| gi_suspended
|
| gi_yieldfrom
| object being iterated by yield from, or None
class GenericAlias(builtins.object)
| Represent a PEP 585 generic type
|
| E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __dir__(...)
| Default dir() implementation.
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __instancecheck__(...)
| Check if an object is an instance.
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mro_entries__(...)
|
| __ne__(self, value, /)
| Return self!=value.
|
| __or__(self, value, /)
| Return self|value.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __ror__(self, value, /)
| Return value|self.
|
| __subclasscheck__(...)
| Check if a class is a subclass.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __args__
|
| __origin__
|
| __parameters__
| Type variables in the GenericAlias.
|
| __typing_unpacked_tuple_args__
|
| __unpacked__
GetSetDescriptorType = class getset_descriptor(object)
| Methods defined here:
|
| __delete__(self, instance, /)
| Delete an attribute of instance.
|
| __get__(self, instance, owner=None, /)
| Return an attribute of instance, which is of type owner.
|
| __repr__(self, /)
| Return repr(self).
|
| __set__(self, instance, value, /)
| Set an attribute of instance to value.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __objclass__
LambdaType = class function(object)
| LambdaType(code, globals, name=None, argdefs=None, closure=None)
|
| Create a function object.
|
| code
| a code object
| globals
| the globals dictionary
| name
| a string that overrides the name from the code object
| argdefs
| a tuple that specifies the default argument values
| closure
| a tuple that supplies the bindings for free variables
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __get__(self, instance, owner=None, /)
| Return an attribute of instance, which is of type owner.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __annotations__
|
| __closure__
|
| __code__
|
| __defaults__
|
| __dict__
|
| __globals__
|
| __kwdefaults__
|
| __type_params__
MappingProxyType = class mappingproxy(object)
| Methods defined here:
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __ior__(self, value, /)
| Return self|=value.
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __or__(self, value, /)
| Return self|value.
|
| __repr__(self, /)
| Return repr(self).
|
| __reversed__(...)
| D.__reversed__() -> reverse iterator
|
| __ror__(self, value, /)
| Return value|self.
|
| __str__(self, /)
| Return str(self).
|
| copy(...)
| D.copy() -> a shallow copy of D
|
| get(...)
| D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
|
| items(...)
| D.items() -> a set-like object providing a view on D's items
|
| keys(...)
| D.keys() -> a set-like object providing a view on D's keys
|
| values(...)
| D.values() -> an object providing a view on D's values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
MemberDescriptorType = class member_descriptor(object)
| Methods defined here:
|
| __delete__(self, instance, /)
| Delete an attribute of instance.
|
| __get__(self, instance, owner=None, /)
| Return an attribute of instance, which is of type owner.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __set__(self, instance, value, /)
| Set an attribute of instance to value.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __objclass__
MethodDescriptorType = class method_descriptor(object)
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __get__(self, instance, owner=None, /)
| Return an attribute of instance, which is of type owner.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __objclass__
|
| __text_signature__
MethodType = class method(object)
| MethodType(function, instance, /)
|
| Create a bound instance method object.
|
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(self, /)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __func__
| the function (or other callable) implementing a method
|
| __self__
| the instance to which a method is bound
MethodWrapperType = class method-wrapper(object)
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __objclass__
|
| __self__
|
| __text_signature__
ModuleType = class module(object)
| ModuleType(name, doc=None)
|
| Create a module object.
|
| The name must be a string; the optional doc argument can have any type.
|
| Methods defined here:
|
| __dir__(...)
| __dir__() -> list
| specialized dir() implementation
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __annotations__
|
| __dict__
class NoneType(object)
| Methods defined here:
|
| __bool__(self, /)
| True if self else False
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class NotImplementedType(object)
| Methods defined here:
|
| __bool__(self, /)
| True if self else False
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
class SimpleNamespace(builtins.object)
| A simple attribute-based namespace.
|
| SimpleNamespace(**kwargs)
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __reduce__(...)
| Return state information for pickling
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
TracebackType = class traceback(object)
| TracebackType(tb_next, tb_frame, tb_lasti, tb_lineno)
| --
|
| Create a new traceback object.
|
| Methods defined here:
|
| __dir__(...)
| Default dir() implementation.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| tb_frame
|
| tb_lasti
|
| tb_lineno
|
| tb_next
class UnionType(builtins.object)
| Represent a PEP 604 union type
|
| E.g. for int | str
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __or__(self, value, /)
| Return self|value.
|
| __repr__(self, /)
| Return repr(self).
|
| __ror__(self, value, /)
| Return value|self.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __args__
|
| __parameters__
| Type variables in the types.UnionType.
WrapperDescriptorType = class wrapper_descriptor(object)
| Methods defined here:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __get__(self, instance, owner=None, /)
| Return an attribute of instance, which is of type owner.
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __objclass__
|
| __text_signature__
FUNCTIONS
coroutine(func)
Convert regular generator function to a coroutine.
get_original_bases(cls, /)
Return the class's "original" bases prior to modification by `__mro_entries__`.
Examples::
from typing import TypeVar, Generic, NamedTuple, TypedDict
T = TypeVar("T")
class Foo(Generic[T]): ...
class Bar(Foo[int], float): ...
class Baz(list[str]): ...
Eggs = NamedTuple("Eggs", [("a", int), ("b", str)])
Spam = TypedDict("Spam", {"a": int, "b": str})
assert get_original_bases(Bar) == (Foo[int], float)
assert get_original_bases(Baz) == (list[str],)
assert get_original_bases(Eggs) == (NamedTuple,)
assert get_original_bases(Spam) == (TypedDict,)
assert get_original_bases(int) == (object,)
new_class(name, bases=(), kwds=None, exec_body=None)
Create a class object dynamically using the appropriate metaclass.
prepare_class(name, bases=(), kwds=None)
Call the __prepare__ method of the appropriate metaclass.
Returns (metaclass, namespace, kwds) as a 3-tuple
*metaclass* is the appropriate metaclass
*namespace* is the prepared class namespace
*kwds* is an updated copy of the passed in kwds argument with any
'metaclass' entry removed. If no kwds argument is passed in, this will
be an empty dict.
resolve_bases(bases)
Resolve MRO entries dynamically as specified by PEP 560.
DATA
__all__ = ['FunctionType', 'LambdaType', 'CodeType', 'MappingProxyType...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\types.py
peewee.unqesc
Python Library Documentation: function unqesc in module peewee unqesc(part)
peewee.utcfromtimestamp
Python Library Documentation: function utcfromtimestamp in module peewee utcfromtimestamp(ts)
peewee.utcnow
Python Library Documentation: function utcnow in module peewee utcnow()
peewee.uuid
Python Library Documentation: module uuid
NAME
uuid - UUID objects (universally unique identifiers) according to RFC 4122.
MODULE REFERENCE
https://docs.python.org/3.12/library/uuid.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module provides immutable UUID objects (class UUID) and the functions
uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5
UUIDs as specified in RFC 4122.
If all you want is a unique ID, you should probably call uuid1() or uuid4().
Note that uuid1() may compromise privacy since it creates a UUID containing
the computer's network address. uuid4() creates a random UUID.
Typical usage:
>>> import uuid
# make a UUID based on the host ID and current time
>>> uuid.uuid1() # doctest: +SKIP
UUID('a8098c1a-f86e-11da-bd1a-00112444be1e')
# make a UUID using an MD5 hash of a namespace UUID and a name
>>> uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')
UUID('6fa459ea-ee8a-3ca4-894e-db77e160355e')
# make a random UUID
>>> uuid.uuid4() # doctest: +SKIP
UUID('16fd2706-8baf-433b-82eb-8c7fada847da')
# make a UUID using a SHA-1 hash of a namespace UUID and a name
>>> uuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')
UUID('886313e1-3b8a-5372-9b90-0c9aee199e5d')
# make a UUID from a string of hex digits (braces and hyphens ignored)
>>> x = uuid.UUID('{00010203-0405-0607-0809-0a0b0c0d0e0f}')
# convert a UUID to a string of hex digits in standard form
>>> str(x)
'00010203-0405-0607-0809-0a0b0c0d0e0f'
# get the raw 16 bytes of the UUID
>>> x.bytes
b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f'
# make a UUID from a 16-byte string
>>> uuid.UUID(bytes=x.bytes)
UUID('00010203-0405-0607-0809-0a0b0c0d0e0f')
CLASSES
builtins.object
UUID
enum.Enum(builtins.object)
SafeUUID
class SafeUUID(enum.Enum)
| SafeUUID(*values)
|
| An enumeration.
|
| Method resolution order:
| SafeUUID
| enum.Enum
| builtins.object
|
| Data and other attributes defined here:
|
| safe = <SafeUUID.safe: 0>
|
| unknown = <SafeUUID.unknown: None>
|
| unsafe = <SafeUUID.unsafe: -1>
|
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
|
| name
| The name of the Enum member.
|
| value
| The value of the Enum member.
|
| ----------------------------------------------------------------------
| Static methods inherited from enum.EnumType:
|
| __contains__(value)
| Return True if `value` is in `cls`.
|
| `value` is in `cls` if:
| 1) `value` is a member of `cls`, or
| 2) `value` is the value of one of the `cls`'s members.
|
| __getitem__(name)
| Return the member matching `name`.
|
| __iter__()
| Return members in definition order.
|
| __len__()
| Return the number of members (no aliases)
|
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|
| __members__
| Returns a mapping of member name->value.
|
| This mapping lists all enum members, including aliases. Note that this
| is a read-only view of the internal mapping.
class UUID(builtins.object)
| UUID(hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None, *, is_safe=<SafeUUID.unknown: None>)
|
| Instances of the UUID class represent UUIDs as specified in RFC 4122.
| UUID objects are immutable, hashable, and usable as dictionary keys.
| Converting a UUID to a string with str() yields something in the form
| '12345678-1234-1234-1234-123456789abc'. The UUID constructor accepts
| five possible forms: a similar string of hexadecimal digits, or a tuple
| of six integer fields (with 32-bit, 16-bit, 16-bit, 8-bit, 8-bit, and
| 48-bit values respectively) as an argument named 'fields', or a string
| of 16 bytes (with all the integer fields in big-endian order) as an
| argument named 'bytes', or a string of 16 bytes (with the first three
| fields in little-endian order) as an argument named 'bytes_le', or a
| single 128-bit integer as an argument named 'int'.
|
| UUIDs have these read-only attributes:
|
| bytes the UUID as a 16-byte string (containing the six
| integer fields in big-endian byte order)
|
| bytes_le the UUID as a 16-byte string (with time_low, time_mid,
| and time_hi_version in little-endian byte order)
|
| fields a tuple of the six integer fields of the UUID,
| which are also available as six individual attributes
| and two derived attributes:
|
| time_low the first 32 bits of the UUID
| time_mid the next 16 bits of the UUID
| time_hi_version the next 16 bits of the UUID
| clock_seq_hi_variant the next 8 bits of the UUID
| clock_seq_low the next 8 bits of the UUID
| node the last 48 bits of the UUID
|
| time the 60-bit timestamp
| clock_seq the 14-bit sequence number
|
| hex the UUID as a 32-character hexadecimal string
|
| int the UUID as a 128-bit integer
|
| urn the UUID as a URN as specified in RFC 4122
|
| variant the UUID variant (one of the constants RESERVED_NCS,
| RFC_4122, RESERVED_MICROSOFT, or RESERVED_FUTURE)
|
| version the UUID version number (1 through 5, meaningful only
| when the variant is RFC_4122)
|
| is_safe An enum indicating whether the UUID has been generated in
| a way that is safe for multiprocessing applications, via
| uuid_generate_time_safe(3).
|
| Methods defined here:
|
| __eq__(self, other)
| Return self==value.
|
| __ge__(self, other)
| Return self>=value.
|
| __getstate__(self)
| Helper for pickle.
|
| __gt__(self, other)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __init__(self, hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None, *, is_safe=<SafeUUID.unknown: None>)
| Create a UUID from either a string of 32 hexadecimal digits,
| a string of 16 bytes as the 'bytes' argument, a string of 16 bytes
| in little-endian order as the 'bytes_le' argument, a tuple of six
| integers (32-bit time_low, 16-bit time_mid, 16-bit time_hi_version,
| 8-bit clock_seq_hi_variant, 8-bit clock_seq_low, 48-bit node) as
| the 'fields' argument, or a single 128-bit integer as the 'int'
| argument. When a string of hex digits is given, curly braces,
| hyphens, and a URN prefix are all optional. For example, these
| expressions all yield the same UUID:
|
| UUID('{12345678-1234-5678-1234-567812345678}')
| UUID('12345678123456781234567812345678')
| UUID('urn:uuid:12345678-1234-5678-1234-567812345678')
| UUID(bytes='\x12\x34\x56\x78'*4)
| UUID(bytes_le='\x78\x56\x34\x12\x34\x12\x78\x56' +
| '\x12\x34\x56\x78\x12\x34\x56\x78')
| UUID(fields=(0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x567812345678))
| UUID(int=0x12345678123456781234567812345678)
|
| Exactly one of 'hex', 'bytes', 'bytes_le', 'fields', or 'int' must
| be given. The 'version' argument is optional; if given, the resulting
| UUID will have its variant and version set according to RFC 4122,
| overriding the given 'hex', 'bytes', 'bytes_le', 'fields', or 'int'.
|
| is_safe is an enum exposed as an attribute on the instance. It
| indicates whether the UUID has been generated in a way that is safe
| for multiprocessing applications, via uuid_generate_time_safe(3).
|
| __int__(self)
|
| __le__(self, other)
| Return self<=value.
|
| __lt__(self, other)
| Return self<value.
|
| __repr__(self)
| Return repr(self).
|
| __setattr__(self, name, value)
| Implement setattr(self, name, value).
|
| __setstate__(self, state)
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| bytes
|
| bytes_le
|
| clock_seq
|
| clock_seq_hi_variant
|
| clock_seq_low
|
| fields
|
| hex
|
| node
|
| time
|
| time_hi_version
|
| time_low
|
| time_mid
|
| urn
|
| variant
|
| version
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| int
|
| is_safe
FUNCTIONS
getnode()
Get the hardware address as a 48-bit positive integer.
The first time this runs, it may launch a separate program, which could
be quite slow. If all attempts to obtain the hardware address fail, we
choose a random 48-bit number with its eighth bit set to 1 as recommended
in RFC 4122.
main()
Run the uuid command line interface.
uuid1(node=None, clock_seq=None)
Generate a UUID from a host ID, sequence number, and the current time.
If 'node' is not given, getnode() is used to obtain the hardware
address. If 'clock_seq' is given, it is used as the sequence number;
otherwise a random 14-bit sequence number is chosen.
uuid3(namespace, name)
Generate a UUID from the MD5 hash of a namespace UUID and a name.
uuid4()
Generate a random UUID.
uuid5(namespace, name)
Generate a UUID from the SHA-1 hash of a namespace UUID and a name.
DATA
NAMESPACE_DNS = UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8')
NAMESPACE_OID = UUID('6ba7b812-9dad-11d1-80b4-00c04fd430c8')
NAMESPACE_URL = UUID('6ba7b811-9dad-11d1-80b4-00c04fd430c8')
NAMESPACE_X500 = UUID('6ba7b814-9dad-11d1-80b4-00c04fd430c8')
RESERVED_FUTURE = 'reserved for future definition'
RESERVED_MICROSOFT = 'reserved for Microsoft compatibility'
RESERVED_NCS = 'reserved for NCS compatibility'
RFC_4122 = 'specified in RFC 4122'
AUTHOR
Ka-Ping Yee <ping@zesty.ca>
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\uuid.py
peewee.warnings
Python Library Documentation: module warnings
NAME
warnings - Python part of the warnings subsystem.
MODULE REFERENCE
https://docs.python.org/3.12/library/warnings.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
CLASSES
builtins.object
catch_warnings
class catch_warnings(builtins.object)
| catch_warnings(*, record=False, module=None, action=None, category=<class 'Warning'>, lineno=0, append=False)
|
| A context manager that copies and restores the warnings filter upon
| exiting the context.
|
| The 'record' argument specifies whether warnings should be captured by a
| custom implementation of warnings.showwarning() and be appended to a list
| returned by the context manager. Otherwise None is returned by the context
| manager. The objects appended to the list are arguments whose attributes
| mirror the arguments to showwarning().
|
| The 'module' argument is to specify an alternative module to the module
| named 'warnings' and imported under that name. This argument is only useful
| when testing the warnings module itself.
|
| If the 'action' argument is not None, the remaining arguments are passed
| to warnings.simplefilter() as if it were called immediately on entering the
| context.
|
| Methods defined here:
|
| __enter__(self)
|
| __exit__(self, *exc_info)
|
| __init__(self, *, record=False, module=None, action=None, category=<class 'Warning'>, lineno=0, append=False)
| Specify whether to record warnings and if an alternative module
| should be used other than sys.modules['warnings'].
|
| For compatibility with Python 3.0, please consider all arguments to be
| keyword-only.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
FUNCTIONS
filterwarnings(action, message='', category=<class 'Warning'>, module='', lineno=0, append=False)
Insert an entry into the list of warnings filters (at the front).
'action' -- one of "error", "ignore", "always", "default", "module",
or "once"
'message' -- a regex that the warning message must match
'category' -- a class that the warning must be a subclass of
'module' -- a regex that the module name must match
'lineno' -- an integer line number, 0 matches all warnings
'append' -- if true, append to the list of filters
formatwarning(message, category, filename, lineno, line=None)
Function to format a warning the standard way.
resetwarnings()
Clear the list of warning filters, so that no filters are active.
showwarning(message, category, filename, lineno, file=None, line=None)
Hook to write a warning to a file; replace if you like.
simplefilter(action, category=<class 'Warning'>, lineno=0, append=False)
Insert a simple entry into the list of warnings filters (at the front).
A simple filter matches all modules and messages.
'action' -- one of "error", "ignore", "always", "default", "module",
or "once"
'category' -- a class that the warning must be a subclass of
'lineno' -- an integer line number, 0 matches all warnings
'append' -- if true, append to the list of filters
warn(...)
Issue a warning, or maybe ignore it or raise an exception.
message
Text of the warning message.
category
The Warning category subclass. Defaults to UserWarning.
stacklevel
How far up the call stack to make this warning appear. A value of 2 for
example attributes the warning to the caller of the code calling warn().
source
If supplied, the destroyed object which emitted a ResourceWarning
skip_file_prefixes
An optional tuple of module filename prefixes indicating frames to skip
during stacklevel computations for stack frame attribution.
warn_explicit(...)
Issue a warning, or maybe ignore it or raise an exception.
DATA
__all__ = ['warn', 'warn_explicit', 'showwarning', 'formatwarning', 'f...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\warnings.py
peewee.wraps
Python Library Documentation: function wraps in module functools
wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__', '__type_params__'), updated=('__dict__',))
Decorator factory to apply update_wrapper() to a wrapper function
Returns a decorator that invokes update_wrapper() with the decorated
function as the wrapper argument and the arguments to wraps() as the
remaining arguments. Default arguments are as for update_wrapper().
This is a convenience function to simplify applying partial() to
update_wrapper().