Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return ListLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Lambda arguments args NameParam NameParam defaults Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Return Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return BoolOpOr BoolOpAnd NameLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq Call NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpMult AttributeLoad NameLoad attr BinOpPow Num Num Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return BinOpMod Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad NameLoad Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Delete SubscriptDel NameLoad Index Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Expr Yield Call NameLoad NameLoad Num BinOpSub Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore Num For NameStore Call NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body AugAssignAdd NameStore Num Expr Yield NameLoad If UnaryOpNot NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv Num BinOpAdd Call NameLoad NameLoad Num If AttributeLoad NameLoad attr body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareGtE Call NameLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Num AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel NameLoad Index Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If UnaryOpNot NameLoad body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad NameLoad For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body Continue If Call NameLoad NameLoad NameLoad body If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad Assign NameStore TupleLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Assign NameStore Dict Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad Str TupleLoad NameLoad Dict Str Str NameLoad NameLoad decorator_list ClassDef bases Call NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad Call NameLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Yield Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore UnaryOpNot Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body Expr Yield Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Continue orelse If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse If BoolOpAnd NameLoad CompareIn Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A copy deepcopy N/A datetime N/A json N/A pickle N/A re N/A sys N/A time N/A uuid walrus.containers Array walrus.containers Hash walrus.containers HyperLogLog walrus.containers List walrus.containers Set walrus.containers ZSet walrus.query ABSOLUTE walrus.query CONTINUOUS walrus.query Desc walrus.query Executor walrus.query FTS walrus.query Node walrus.search.metaphone dm double_metaphone walrus.search.porter PorterStemmer walrus.utils basestring_type walrus.utils decode walrus.utils encode walrus.utils load_stopwords walrus.utils PY3 walrus.utils unicode_type Field N/A Node N/A N/A 
    Named attribute on a model that will hold a value of the given
    type. Fields are declared as attributes on a model class.

    Example::

        walrus_db = Database()

        class User(Model):
            database = walrus_db
            namespace = 'my-app'

            # Use the user's email address as the primary key.
            # All primary key fields will also get a secondary
            # index, so there's no need to specify index=True.
            email = TextField(primary_key=True)

            # Store the user's interests in a free-form text
            # field. Also create a secondary full-text search
            # index on this field.
            interests = TextField(
                fts=True,
                stemmer=True,
                min_word_length=3)

        class Note(Model):
            database = walrus_app
            namespace = 'my-app'

            # A note is associated with a user. We will create a
            # secondary index on this field so we can efficiently
            # retrieve all notes created by a specific user.
            user_email = TextField(index=True)

            # Store the note content in a searchable text field. Use
            # the double-metaphone algorithm to index the content.
            content = TextField(
                fts=True,
                stemmer=True,
                metaphone=True)

            # Store the timestamp the note was created automatically.
            # Note that we do not call `now()`, but rather pass the
            # function itself.
            timestamp = DateTimeField(default=datetime.datetime.now)
     N/A _coerce None __init__ N/A N/A self index as_json primary_key pickled default N/A False False False False None N/A N/A 
        :param bool index: Use this field as an index. Indexed
            fields will support :py:meth:`Model.get` lookups.
        :param bool as_json: Whether the value should be serialized
            as JSON when storing in the database. Useful for
            collections or objects.
        :param bool primary_key: Use this field as the primary key.
        :param bool pickled: Whether the value should be pickled when
            storing in the database. Useful for non-primitive content
            types.
         N/A N/A self _index N/A index primary_key N/A N/A self _as_json as_json N/A N/A self _primary_key primary_key N/A N/A self _pickled pickled N/A N/A self _default default N/A _generate_key N/A N/A self N/A N/A N/A NotImplementedError N/A db_value N/A N/A self value N/A N/A N/A N/A self _pickled N/A N/A N/A N/A pickle dumps value N/A N/A N/A PY3 N/A self _as_json N/A N/A N/A N/A json dumps N/A decode value N/A N/A N/A self _as_json N/A N/A N/A N/A json dumps value N/A N/A N/A self _coerce N/A N/A N/A N/A self _coerce value N/A value N/A python_value N/A N/A self value N/A N/A N/A N/A self _pickled N/A N/A N/A N/A pickle loads value N/A N/A N/A N/A self _as_json PY3 N/A N/A N/A N/A json loads N/A decode value N/A N/A N/A self _as_json N/A N/A N/A N/A json loads value N/A N/A N/A self _coerce N/A N/A N/A N/A self _coerce value N/A value N/A add_to_class N/A N/A self model_class name N/A N/A N/A N/A self model_class model_class N/A N/A self name name N/A N/A setattr model_class name self N/A __get__ N/A N/A self instance instance_type N/A None N/A N/A N/A instance None N/A N/A N/A N/A instance _data N/A N/A self name N/A self N/A __set__ N/A N/A self instance value N/A N/A N/A N/A N/A instance _data N/A N/A self name value N/A get_index N/A N/A self op N/A N/A N/A indexes N/A N/A self get_indexes N/A index indexes N/A N/A N/A op N/A index operations N/A N/A index N/A N/A ValueError N/A Operation %s is not supported by an index. op N/A get_indexes N/A N/A self N/A N/A N/A 
        Return a list of secondary indexes to create for the
        field. For instance, a TextField might have a full-text
        search index, whereas an IntegerField would have a scalar
        index that supported range queries.
         N/A N/A N/A AbsoluteIndex self N/A N/A _ScalarField N/A Field N/A get_indexes N/A N/A self N/A N/A N/A N/A N/A AbsoluteIndex self N/A ContinuousIndex self N/A N/A IntegerField N/A _ScalarField N/A N/A Store integer values. N/A _coerce int N/A AutoIncrementField N/A IntegerField N/A N/A Auto-incrementing primary key field. __init__ N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A primary_key True N/A N/A N/A N/A super AutoIncrementField self __init__ args kwargs N/A _generate_key N/A N/A self N/A N/A N/A query_helper N/A N/A self model_class _query N/A key N/A N/A query_helper make_key N/A self name _sequence N/A N/A N/A N/A N/A self model_class database incr key N/A N/A FloatField N/A _ScalarField N/A N/A Store floating point values. N/A _coerce float N/A ByteField N/A Field N/A N/A Store arbitrary bytes. N/A _coerce N/A N/A N/A self value N/A N/A encode value N/A TextField N/A Field N/A N/A 
    Store unicode strings, encoded as UTF-8. :py:class:`TextField`
    also supports full-text search through the optional ``fts``
    parameter.

    .. note:: If full-text search is enabled for the field, then
        the ``index`` argument is implied.

    :param bool fts: Enable simple full-text search.
    :param bool stemmer: Use porter stemmer to process words.
    :param bool metaphone: Use the double metaphone algorithm to
        process words.
    :param str stopwords_file: File containing stopwords, one per
        line. If not specified, the default stopwords will be used.
    :param int min_word_length: Minimum length (inclusive) of word
        to be included in search index.
     __init__ N/A N/A self fts stemmer metaphone stopwords_file min_word_length N/A False True False None None args kwargs N/A N/A N/A N/A N/A super TextField self __init__ args kwargs N/A N/A self _fts fts N/A N/A self _stemmer stemmer N/A N/A self _metaphone metaphone N/A N/A self _stopwords_file stopwords_file N/A N/A self _min_word_length min_word_length N/A N/A self _index N/A N/A self _index N/A self _fts N/A db_value N/A N/A self value N/A N/A N/A N/A value None N/A N/A value N/A N/A N/A isinstance value unicode_type N/A N/A N/A N/A value encode utf-8 N/A value N/A python_value N/A N/A self value N/A N/A N/A value N/A N/A N/A N/A value decode utf-8 N/A value N/A get_indexes N/A N/A self N/A N/A N/A indexes N/A N/A N/A super TextField self get_indexes N/A N/A self _fts N/A N/A N/A N/A indexes append N/A FullTextIndex self N/A self _stemmer N/A self _metaphone N/A self _stopwords_file N/A self _min_word_length N/A indexes N/A N/A BooleanField N/A Field N/A N/A Store boolean values. db_value N/A N/A self value N/A N/A N/A N/A N/A value 1 0 N/A python_value N/A N/A self value N/A N/A N/A N/A N/A str value 1 N/A N/A UUIDField N/A Field N/A N/A Store unique IDs. Can be used as primary key. __init__ N/A N/A self N/A kwargs N/A N/A N/A kwargs N/A index True N/A N/A N/A N/A super UUIDField self __init__ kwargs N/A db_value N/A N/A self value N/A N/A N/A N/A str value N/A python_value N/A N/A self value N/A N/A N/A N/A N/A uuid UUID value N/A _generate_key N/A N/A self N/A N/A N/A N/A N/A uuid uuid4 N/A N/A DateTimeField N/A _ScalarField N/A N/A Store Python datetime objects. db_value N/A N/A self value N/A N/A N/A timestamp N/A N/A time mktime N/A N/A value timetuple N/A micro N/A N/A value microsecond N/A 10 -6 N/A N/A timestamp micro N/A python_value N/A N/A self value N/A N/A N/A N/A isinstance value N/A basestring_type int float N/A N/A N/A N/A N/A datetime datetime fromtimestamp N/A float value N/A value N/A N/A DateField N/A DateTimeField N/A N/A Store Python date objects. db_value N/A N/A self value N/A N/A N/A N/A N/A time mktime N/A N/A value timetuple N/A python_value N/A N/A self value N/A N/A N/A N/A isinstance value N/A basestring_type int float N/A N/A N/A N/A N/A N/A N/A datetime datetime fromtimestamp N/A float value date N/A value N/A N/A JSONField N/A Field N/A N/A Store arbitrary JSON data. __init__ N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A as_json True N/A N/A N/A N/A super JSONField self __init__ args kwargs N/A N/A _ContainerField N/A Field N/A N/A container_class None __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super _ContainerField self __init__ args kwargs N/A N/A self _primary_key N/A N/A N/A ValueError Container fields cannot be primary keys. N/A N/A self _index N/A N/A N/A ValueError Container fields cannot be indexed. N/A _get_container N/A N/A self instance N/A N/A N/A N/A N/A self container_class N/A N/A self model_class database N/A N/A self __key__ instance N/A __key__ N/A N/A self instance N/A N/A N/A N/A N/A N/A N/A self model_class _query make_key container N/A self name N/A N/A instance get_hash_id N/A __get__ N/A N/A self instance instance_type N/A None N/A N/A N/A instance None N/A N/A N/A N/A N/A instance get_id N/A N/A N/A ValueError Model must have a primary key before container attributes can be accessed. N/A N/A N/A self _get_container instance N/A self N/A __set__ N/A N/A self instance instance_type N/A None N/A N/A N/A ValueError Cannot set the value of a container field. N/A _delete N/A N/A self instance N/A N/A N/A N/A N/A N/A N/A self _get_container instance clear N/A N/A HashField N/A _ContainerField N/A N/A Store values in a Redis hash. N/A container_class Hash N/A ListField N/A _ContainerField N/A N/A Store values in a Redis list. N/A container_class List N/A SetField N/A _ContainerField N/A N/A Store values in a Redis set. N/A container_class Set N/A ZSetField N/A _ContainerField N/A N/A Store values in a Redis sorted set. N/A container_class ZSet N/A Query N/A object N/A __init__ N/A N/A self model_class N/A N/A N/A N/A self model_class model_class N/A _base_key N/A N/A self N/A N/A N/A model_name N/A N/A N/A N/A self model_class __name__ lower N/A N/A N/A self model_class namespace N/A N/A N/A %s|%s: N/A N/A N/A self model_class namespace model_name N/A N/A %s: model_name N/A property make_key N/A N/A self N/A parts N/A N/A Generate a namespaced key for the given path. N/A separator N/A getattr N/A self model_class index_separator . N/A parts N/A map decode parts N/A N/A %s%s N/A N/A self _base_key N/A N/A separator join N/A map str parts N/A get_primary_hash_key N/A N/A self primary_key N/A N/A N/A pk_field N/A N/A N/A self model_class _fields N/A N/A N/A self model_class _primary_key N/A N/A N/A self make_key id N/A N/A pk_field db_value primary_key N/A all_index N/A N/A self N/A N/A N/A N/A N/A N/A N/A self model_class database Set N/A N/A self make_key all N/A N/A BaseIndex N/A object N/A N/A operations None __init__ N/A N/A self field N/A N/A N/A N/A self field field N/A N/A self database N/A N/A N/A self field model_class database N/A N/A self query_helper N/A N/A N/A self field model_class _query N/A field_value N/A N/A self instance N/A N/A N/A N/A N/A N/A self field db_value N/A getattr instance N/A N/A self field name N/A get_key N/A N/A self instance value N/A N/A N/A NotImplementedError N/A store_instance N/A N/A self key instance value N/A N/A N/A NotImplementedError N/A delete_instance N/A N/A self key instance value N/A N/A N/A NotImplementedError N/A save N/A N/A self instance N/A N/A N/A value N/A N/A self field_value instance N/A key N/A N/A self get_key value N/A N/A N/A self store_instance key instance value N/A remove N/A N/A self instance N/A N/A N/A value N/A N/A self field_value instance N/A key N/A N/A self get_key value N/A N/A N/A self delete_instance key instance value N/A N/A AbsoluteIndex N/A BaseIndex N/A N/A operations ABSOLUTE get_key N/A N/A self value N/A N/A N/A key N/A N/A N/A self query_helper make_key N/A N/A self field name absolute value N/A N/A N/A N/A self database Set key N/A store_instance N/A N/A self key instance value N/A N/A N/A N/A N/A key add N/A N/A instance get_hash_id N/A delete_instance N/A N/A self key instance value N/A N/A N/A N/A N/A key remove N/A N/A instance get_hash_id N/A N/A N/A len key 0 N/A N/A N/A N/A key clear N/A N/A ContinuousIndex N/A BaseIndex N/A N/A operations CONTINUOUS get_key N/A N/A self value N/A N/A N/A key N/A N/A N/A self query_helper make_key N/A N/A self field name continuous N/A N/A N/A N/A self database ZSet key N/A store_instance N/A N/A self key instance value N/A N/A N/A N/A key N/A N/A N/A instance get_hash_id value N/A delete_instance N/A N/A self key instance value N/A N/A N/A N/A key N/A N/A N/A instance get_hash_id N/A N/A N/A len key 0 N/A N/A N/A N/A key clear N/A N/A FullTextIndex N/A BaseIndex N/A N/A operations FTS N/A _stopwords N/A set N/A _stopwords_file stopwords.txt __init__ N/A N/A self field stemmer metaphone stopwords_file min_word_length N/A True False None None N/A N/A N/A N/A N/A super FullTextIndex self __init__ field N/A N/A self _stemmer stemmer N/A N/A self _metaphone metaphone N/A stopwords_file N/A N/A N/A self _stopwords_file stopwords_file N/A N/A self _min_word_length min_word_length N/A N/A N/A self _load_stopwords N/A N/A self _symbols_re N/A N/A re compile [\.,;:"'\/!@#\$%\?\*\(\)\-=+\[\]\{\}_] N/A _load_stopwords N/A N/A self N/A N/A N/A stopwords N/A load_stopwords N/A self _stopwords_file N/A stopwords N/A N/A N/A self _stopwords N/A set N/A N/A stopwords splitlines N/A split_phrase N/A N/A self phrase N/A N/A N/A Split the document or search query into tokens. N/A N/A N/A N/A N/A N/A self _symbols_re sub N/A decode phrase split N/A stem N/A N/A self words N/A N/A N/A 
        Use the porter stemmer to generate consistent forms of
        words, e.g.::

            from walrus.search.utils import PorterStemmer
            stemmer = PorterStemmer()
            for word in ['faith', 'faiths', 'faithful']:
                print s.stem(word, 0, len(word) - 1)

            # Prints:
            # faith
            # faith
            # faith
         N/A stemmer N/A PorterStemmer N/A _stem N/A stemmer stem N/A word words N/A N/A N/A N/A _stem word 0 N/A N/A len word 1 N/A metaphone N/A N/A self words N/A N/A N/A 
        Apply the double metaphone algorithm to the given words.
        Using metaphone allows the search index to tolerate
        misspellings and small typos.

        Example::

            >>> from walrus.search.metaphone import dm as metaphone
            >>> print metaphone('walrus')
            ('ALRS', 'FLRS')

            >>> print metaphone('python')
            ('P0N', 'PTN')

            >>> print metaphone('pithonn')
            ('P0N', 'PTN')
         N/A word words N/A N/A r 0 N/A w N/A double_metaphone word N/A N/A w N/A N/A w N/A N/A w strip N/A w N/A N/A r 1 N/A N/A w N/A N/A r N/A N/A N/A word N/A filter_stop_words N/A N/A self words N/A N/A N/A Remove any stop-words from the collection of words. N/A N/A w N/A w words N/A w N/A self _stopwords N/A tokenize N/A N/A self value N/A N/A N/A 
        Split the incoming value into tokens and process each token,
        optionally stemming or running metaphone.

        :returns: A ``dict`` mapping token to score. The score is
            based on the relative frequency of the word in the
            document.
         N/A words N/A N/A self split_phrase N/A N/A value lower N/A words N/A N/A self filter_stop_words words N/A fraction N/A 1.0 N/A N/A len words 1 N/A N/A self _min_word_length N/A N/A words N/A w N/A w words N/A N/A len w N/A self _min_word_length N/A N/A self _stemmer N/A N/A words N/A N/A self stem words N/A N/A self _metaphone N/A N/A words N/A N/A self metaphone words N/A scores N/A N/A word words N/A N/A N/A N/A scores setdefault word 0 N/A N/A scores N/A word fraction N/A scores N/A get_key N/A N/A self value N/A N/A N/A key N/A N/A N/A self query_helper make_key N/A N/A self field name fts value N/A N/A N/A N/A self database ZSet key N/A store_instance N/A N/A self key instance value N/A N/A N/A hash_id N/A N/A instance get_hash_id N/A N/A word score N/A N/A N/A N/A self tokenize value items N/A N/A key N/A N/A self get_key word N/A N/A key N/A N/A N/A instance get_hash_id score N/A delete_instance N/A N/A self key instance value N/A N/A N/A hash_id N/A N/A instance get_hash_id N/A word N/A N/A self tokenize value N/A N/A key N/A N/A self get_key word N/A N/A key N/A N/A N/A instance get_hash_id N/A N/A N/A len key 0 N/A N/A N/A N/A key clear N/A N/A BaseModel N/A type N/A __new__ N/A N/A cls name bases attrs N/A N/A N/A N/A bases N/A N/A N/A N/A N/A super BaseModel cls __new__ cls name bases attrs N/A ignore N/A set N/A primary_key None N/A N/A key value N/A N/A attrs items N/A N/A N/A N/A isinstance value Field N/A value _primary_key N/A N/A primary_key N/A key value N/A base bases N/A N/A N/A key value N/A N/A N/A base __dict__ items N/A N/A N/A key attrs N/A N/A N/A N/A isinstance value Field N/A N/A N/A N/A value _primary_key primary_key N/A N/A N/A N/A ignore add key N/A N/A N/A value _primary_key N/A N/A primary_key N/A key value N/A N/A attrs N/A key N/A deepcopy value N/A N/A primary_key N/A N/A N/A attrs N/A _id N/A AutoIncrementField N/A primary_key N/A _id N/A attrs N/A _id N/A model_class N/A N/A N/A super BaseModel cls __new__ cls name bases attrs N/A N/A model_class _data None N/A defaults N/A N/A fields N/A N/A indexes N/A N/A N/A key value N/A N/A N/A model_class __dict__ items N/A N/A N/A N/A isinstance value Field N/A key ignore N/A N/A N/A N/A value add_to_class model_class key N/A N/A value _index N/A N/A N/A N/A indexes append value N/A N/A fields N/A key value N/A N/A N/A value _default None N/A N/A N/A defaults N/A key N/A value _default N/A N/A model_class _defaults defaults N/A N/A model_class _fields fields N/A N/A model_class _indexes indexes N/A N/A model_class _primary_key N/A primary_key N/A 0 N/A N/A model_class _query N/A Query model_class N/A model_class N/A N/A _with_metaclass N/A N/A meta base N/A object N/A N/A N/A meta NewBase N/A base N/A database namespace None None N/A Model N/A N/A _with_metaclass BaseModel N/A N/A 
    A collection of fields to be stored in the database. Walrus
    stores model instance data in hashes keyed by a combination of
    model name and primary key value. Instance attributes are
    automatically converted to values suitable for storage in Redis
    (i.e., datetime becomes timestamp), and vice-versa.

    Additionally, model fields can be ``indexed``, which allows
    filtering. There are three types of indexes:

    * Absolute
    * Scalar
    * Full-text search

    Absolute indexes are used for values like strings or UUIDs and
    support only equality and inequality checks.

    Scalar indexes are for numeric values as well as datetimes,
    and support equality, inequality, and greater or less-than.

    The final type of index, FullText, can only be used with the
    :py:class:`TextField`. FullText indexes allow search using
    the ``match()`` method. For more info, see :ref:`fts`.
     N/A database None N/A namespace None N/A index_separator . __init__ N/A N/A self N/A args kwargs N/A N/A N/A self _data N/A N/A N/A N/A self _load_default_dict N/A N/A k v N/A N/A kwargs items N/A N/A N/A setattr self k v N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s: %s> N/A N/A N/A type self __name__ N/A N/A self get_id N/A _load_default_dict N/A N/A self N/A N/A N/A N/A field_name default N/A N/A N/A self _defaults items N/A N/A N/A callable default N/A N/A default N/A default N/A N/A setattr self field_name default N/A incr N/A N/A self field incr_by N/A 1 N/A N/A 
        Increment the value stored in the given field by the specified
        amount. Any indexes will be updated at the time ``incr()`` is
        called.

        :param Field field: A field instance.
        :param incr_by: An ``int`` or ``float``.

        Example:

        .. code-block:: python

            # Retrieve a page counter object for the given URL.
            page_count = PageCounter.get(PageCounter.url == url)

            # Update the hit count, persisting to the database and
            # updating secondary indexes in one go.
            page_count.incr(PageCounter.hits)
         N/A model_hash N/A N/A self to_hash N/A index N/A N/A field get_indexes N/A N/A N/A N/A index remove self N/A N/A isinstance incr_by int N/A N/A new_val N/A N/A model_hash incr N/A field name incr_by N/A N/A new_val N/A N/A model_hash incr_float N/A field name incr_by N/A N/A setattr self N/A field name new_val N/A index N/A N/A field get_indexes N/A N/A N/A N/A index save self N/A new_val N/A get_id N/A N/A self N/A N/A N/A 
        Return the primary key for the model instance. If the
        model is unsaved, then this value will be ``None``.
         N/A N/A N/A N/A getattr self N/A self _primary_key N/A N/A N/A KeyError N/A N/A None N/A get_hash_id N/A N/A self N/A N/A N/A N/A N/A N/A self _query get_primary_hash_key N/A N/A self get_id N/A _get_data_dict N/A N/A self N/A N/A N/A data N/A N/A N/A name field N/A N/A N/A self _fields items N/A N/A N/A name N/A self _data N/A N/A N/A data N/A name N/A N/A field db_value N/A N/A self _data N/A name N/A data N/A to_hash N/A N/A self N/A N/A N/A 
        Return a :py:class:`Hash` instance corresponding to the
        raw model data.
         N/A N/A N/A N/A self database Hash N/A N/A self get_hash_id N/A create N/A N/A cls N/A kwargs N/A N/A 
        Create a new model instance and save it to the database.
        Values are passed in as keyword arguments.

        Example::

            user = User.create(first_name='Charlie', last_name='Leifer')
         N/A instance N/A cls kwargs N/A N/A N/A instance save N/A instance N/A classmethod all N/A N/A cls N/A N/A N/A 
        Return an iterator that successively yields saved model
        instances. Models are saved in an unordered :py:class:`Set`,
        so the iterator will return them in arbitrary order.

        Example::

            for note in Note.all():
                print note.content

        To return models in sorted order, see :py:meth:`Model.query`.
        Example returning all records, sorted newest to oldest::

            for note in Note.query(order_by=Note.timestamp.desc()):
                print note.timestamp, note.content
         N/A result N/A N/A N/A cls _query all_index N/A N/A N/A N/A N/A cls load result convert_key False N/A classmethod query N/A N/A cls expression order_by N/A None None N/A N/A 
        Return model instances matching the given expression (if
        specified). Additionally, matching instances can be returned
        sorted by field value.

        Example::

            # Get administrators sorted by username.
            admin_users = User.query(
                (User.admin == True),
                order_by=User.username)

            # List blog entries newest to oldest.
            entries = Entry.query(order_by=Entry.timestamp.desc())

            # Perform a complex filter.
            values = StatData.query(
                (StatData.timestamp < datetime.date.today()) &
                ((StatData.type == 'pv') | (StatData.type == 'cv')))

        :param expression: A boolean expression to filter by.
        :param order_by: A field whose value should be used to
            sort returned instances.
         N/A N/A expression None N/A N/A executor N/A Executor N/A cls database N/A result N/A N/A executor execute expression N/A N/A result N/A N/A N/A cls _query all_index N/A N/A order_by None N/A N/A desc False N/A N/A isinstance order_by Desc N/A N/A desc True N/A order_by N/A order_by node N/A alpha N/A N/A isinstance order_by _ScalarField N/A result N/A N/A N/A cls database sort N/A result key by N/A *->%s N/A order_by name alpha alpha desc desc N/A N/A N/A isinstance result ZSet N/A N/A result N/A N/A result iterator reverse True N/A hash_id result N/A N/A N/A N/A N/A cls load hash_id convert_key False N/A classmethod query_delete N/A N/A cls expression N/A None N/A N/A 
        Delete model instances matching the given expression (if
        specified). If no expression is provided, then all model instances
        will be deleted.

        :param expression: A boolean expression to filter by.
         N/A N/A expression None N/A N/A executor N/A Executor N/A cls database N/A result N/A N/A executor execute expression N/A N/A result N/A N/A N/A cls _query all_index N/A hash_id result N/A N/A N/A N/A N/A N/A cls load hash_id convert_key False delete N/A classmethod get N/A N/A cls expression N/A N/A N/A 
        Retrieve the model instance matching the given expression.
        If the number of matching results is not equal to one, then
        a ``ValueError`` will be raised.

        :param expression: A boolean expression to filter by.
        :returns: The matching :py:class:`Model` instance.
        :raises: ``ValueError`` if result set size is not 1.
         N/A executor N/A Executor N/A cls database N/A result N/A N/A executor execute expression N/A N/A N/A len result 1 N/A N/A N/A ValueError N/A Got %s results, expected 1. N/A len result N/A N/A N/A cls load N/A N/A result _first_or_any convert_key False N/A classmethod load N/A N/A cls primary_key convert_key N/A True N/A N/A 
        Retrieve a model instance by primary key.

        :param primary_key: The primary key of the model instance.
        :returns: Corresponding :py:class:`Model` instance.
        :raises: ``KeyError`` if object with given primary key does
            not exist.
         N/A convert_key N/A N/A primary_key N/A N/A N/A cls _query get_primary_hash_key primary_key N/A N/A N/A N/A N/A cls database hash_exists primary_key N/A N/A N/A KeyError Object not found. N/A raw_data N/A N/A N/A cls database hgetall primary_key N/A data N/A N/A N/A name field N/A N/A N/A cls _fields items N/A N/A N/A isinstance field _ContainerField N/A N/A N/A N/A N/A name raw_data N/A N/A N/A data N/A name N/A N/A field python_value N/A raw_data N/A name N/A N/A N/A PY3 N/A N/A encode name raw_data N/A N/A N/A data N/A name N/A N/A field python_value N/A raw_data N/A N/A encode name N/A N/A N/A data N/A name None N/A N/A cls data N/A classmethod count N/A N/A cls N/A N/A N/A 
        Return the number of objects in the given collection.
         N/A N/A len N/A N/A N/A cls _query all_index N/A classmethod delete N/A N/A self for_update N/A False N/A N/A 
        Delete the given model instance.
         N/A hash_key N/A N/A self get_hash_id N/A N/A N/A original_instance N/A N/A self load hash_key convert_key False N/A N/A N/A KeyError N/A N/A N/A all_index N/A N/A N/A self _query all_index N/A N/A N/A all_index remove hash_key N/A field N/A self _indexes N/A N/A index N/A N/A field get_indexes N/A N/A N/A N/A index remove original_instance N/A N/A for_update N/A N/A field N/A N/A N/A self _fields values N/A N/A N/A isinstance field _ContainerField N/A N/A N/A N/A field _delete self N/A N/A N/A N/A self database delete hash_key N/A save N/A N/A self N/A N/A N/A 
        Save the given model instance. If the model does not have
        a primary key value, Walrus will call the primary key field's
        ``generate_key()`` method to attempt to generate a suitable
        value.
         N/A pk_field N/A N/A self _fields N/A N/A self _primary_key N/A N/A N/A N/A N/A self _data get N/A self _primary_key N/A N/A N/A setattr self N/A self _primary_key N/A N/A pk_field _generate_key N/A require_delete False N/A N/A require_delete True N/A require_delete N/A N/A N/A N/A self delete for_update True N/A data N/A N/A self _get_data_dict N/A hash_obj N/A N/A self to_hash N/A N/A N/A hash_obj clear N/A N/A N/A hash_obj update data N/A all_index N/A N/A N/A self _query all_index N/A N/A N/A all_index add N/A N/A self get_hash_id N/A field N/A self _indexes N/A N/A index N/A N/A field get_indexes N/A N/A N/A N/A index save self N/A N/A