Module Expr Str Import alias ImportFrom alias ImportFrom alias identifier alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Dict decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Dict decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return Dict decorator_list NameLoad FunctionDef arguments args defaults vararg kwarg body Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad TryExcept body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr GeneratorExp TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore TupleLoad Str Str Str Str Str Str Str Str Str CompareIn NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListComp TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore TupleLoad Str Str CompareIn NameLoad NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr attr body Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list orelse FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad For NameStore NameLoad body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot BinOpBitAnd NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr GeneratorExp NameLoad comprehension NameStore AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareIs NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Return If BoolOpOr CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body If NameLoad body If CompareIs NameLoad NameLoad body If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareNotIn NameLoad TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad If BoolOpOr BoolOpAnd AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpBitXor NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A Defines instrumentation of instances.

This module is usually not directly visible to user applications, but
defines a large part of the ORM's interactivity.

 N/A weakref N/A util N/A exc orm_exc interfaces path_registry PathRegistry base PASSIVE_NO_RESULT SQL_OK NEVER_SET ATTR_WAS_SET NO_VALUE PASSIVE_NO_INITIALIZE INIT_OK PASSIVE_OFF N/A base InstanceState N/A N/A interfaces _InspectionAttr N/A N/A tracks state information at the instance level.

    The :class:`.InstanceState` is a key object used by the
    SQLAlchemy ORM in order to track the state of an object;
    it is created the moment an object is instantiated, typically
    as a result of :term:`instrumentation` which SQLAlchemy applies
    to the ``__init__()`` method of the class.

    :class:`.InstanceState` is also a semi-public object,
    available for runtime inspection as to the state of a
    mapped instance, including information such as its current
    status within a particular :class:`.Session` and details
    about data on individual attributes.  The public API
    in order to acquire a :class:`.InstanceState` object
    is to use the :func:`.inspect` system::

        >>> from sqlalchemy import inspect
        >>> insp = inspect(some_mapped_object)

    .. seealso::

        :ref:`core_inspection_toplevel`

     N/A session_id None N/A key None N/A runid None N/A load_options N/A util EMPTY_SET N/A load_path N/A N/A insert_order None N/A _strong_obj None N/A modified False N/A expired False N/A deleted False N/A _load_pending False N/A is_instance True __init__ N/A N/A self obj manager N/A N/A N/A N/A self class_ N/A obj __class__ N/A N/A self manager manager N/A N/A self obj N/A N/A weakref ref obj N/A self _cleanup N/A N/A self callables N/A N/A N/A self committed_state N/A N/A attrs N/A N/A self N/A N/A N/A Return a namespace representing each attribute on
        the mapped object, including its current value
        and history.

        The returned object is an instance of :class:`.AttributeState`.
        This object allows inspection of the current data
        within an attribute as well as attribute history
        since the last flush.

         N/A N/A N/A util ImmutableProperties N/A dict N/A N/A key N/A AttributeState self key N/A key N/A self manager N/A N/A util memoized_property transient N/A N/A self N/A N/A N/A Return true if the object is :term:`transient`.

        .. seealso::

            :ref:`session_object_states`

         N/A N/A N/A N/A self key None N/A N/A self _attached N/A property pending N/A N/A self N/A N/A N/A Return true if the object is :term:`pending`.


        .. seealso::

            :ref:`session_object_states`

         N/A N/A N/A N/A self key None N/A self _attached N/A property persistent N/A N/A self N/A N/A N/A Return true if the object is :term:`persistent`.

        .. seealso::

            :ref:`session_object_states`

             N/A N/A N/A N/A self key None N/A self _attached N/A property detached N/A N/A self N/A N/A N/A Return true if the object is :term:`detached`.

        .. seealso::

            :ref:`session_object_states`

         N/A N/A N/A N/A self key None N/A N/A self _attached N/A property _attached N/A N/A self sessionlib N/A N/A N/A N/A N/A N/A self session_id None N/A N/A self session_id N/A sessionlib _sessions N/A property N/A N/A util dependencies sqlalchemy.orm.session session N/A N/A self sessionlib N/A N/A N/A Return the owning :class:`.Session` for this instance,
        or ``None`` if none available.

        Note that the result here can in some cases be *different*
        from that of ``obj in session``; an object that's been deleted
        will report as not ``in session``, however if the transaction is
        still in progress, this attribute will still refer to that session.
        Only when the transaction is completed does the object become
        fully detached under normal circumstances.

         N/A N/A N/A sessionlib _state_session self N/A property N/A N/A util dependencies sqlalchemy.orm.session object N/A N/A self N/A N/A N/A Return the mapped object represented by this
        :class:`.InstanceState`. N/A N/A N/A self obj N/A property identity N/A N/A self N/A N/A N/A Return the mapped identity of the mapped object.
        This is the primary key identity as persisted by the ORM
        which can always be passed directly to
        :meth:`.Query.get`.

        Returns ``None`` if the object has no primary key identity.

        .. note::
            An object which is transient or pending
            does **not** have a mapped identity until it is flushed,
            even if its attributes include primary key values.

         N/A N/A N/A self key None N/A N/A None N/A N/A N/A N/A self key N/A 1 N/A property identity_key N/A N/A self N/A N/A N/A Return the identity key for the mapped object.

        This is the key used to locate the object within
        the :attr:`.Session.identity_map` mapping.   It contains
        the identity as returned by :attr:`.identity` within it.


         N/A N/A self key N/A property parents N/A N/A self N/A N/A N/A N/A N/A N/A util memoized_property _pending_mutations N/A N/A self N/A N/A N/A N/A N/A N/A util memoized_property mapper N/A N/A self N/A N/A N/A Return the :class:`.Mapper` used for this mapepd object. N/A N/A N/A self manager mapper N/A N/A util memoized_property has_identity N/A N/A self N/A N/A N/A Return ``True`` if this object has an identity key.

        This should always have the same value as the
        expression ``state.persistent or state.detached``.

         N/A N/A bool N/A self key N/A property _detach N/A N/A self N/A N/A N/A N/A self session_id N/A self _strong_obj None N/A _dispose N/A N/A self N/A N/A N/A N/A N/A self _detach N/A N/A self obj N/A _cleanup N/A N/A self ref N/A N/A N/A instance_dict N/A N/A self _instance_dict N/A instance_dict N/A N/A N/A N/A instance_dict discard self N/A N/A self callables N/A N/A N/A self session_id N/A self _strong_obj None N/A N/A self obj N/A obj N/A N/A self N/A N/A N/A None N/A dict N/A N/A self N/A N/A N/A Return the instance dict used by the object.

        Under normal circumstances, this is always synonymous
        with the ``__dict__`` attribute of the mapped object,
        unless an alternative instrumentation system has been
        configured.

        In the case that the actual object has been garbage
        collected, this accessor returns a blank dictionary.

         N/A o N/A N/A self obj N/A N/A o None N/A N/A N/A N/A base instance_dict o N/A N/A N/A N/A property _initialize_instance N/A N/A N/A mixed kwargs N/A N/A N/A self instance args N/A N/A mixed N/A 0 N/A mixed N/A 1 N/A mixed N/A 2 N/A manager N/A self manager N/A N/A N/A N/A manager dispatch init self args kwargs N/A N/A N/A N/A N/A manager original_init N/A mixed N/A 1 kwargs N/A N/A N/A N/A N/A N/A N/A manager dispatch init_failure self args kwargs N/A N/A get_history N/A N/A self key passive N/A N/A N/A N/A N/A N/A N/A N/A self manager N/A key impl get_history self N/A self dict passive N/A get_impl N/A N/A self key N/A N/A N/A N/A N/A N/A self manager N/A key impl N/A _get_pending_mutation N/A N/A self key N/A N/A N/A N/A key N/A self _pending_mutations N/A N/A N/A N/A self _pending_mutations N/A key N/A PendingCollection N/A N/A N/A self _pending_mutations N/A key N/A __getstate__ N/A N/A self N/A N/A N/A state_dict N/A instance N/A N/A self obj N/A N/A N/A state_dict update N/A N/A k N/A N/A self __dict__ N/A k N/A k N/A committed_state _pending_mutations modified expired callables key parents load_options class_ N/A k N/A self __dict__ N/A N/A self load_path N/A N/A N/A state_dict N/A load_path N/A N/A N/A self load_path serialize N/A N/A state_dict N/A manager N/A N/A N/A self manager _serialize self state_dict N/A state_dict N/A __setstate__ N/A N/A self state_dict N/A N/A N/A inst N/A state_dict N/A instance N/A N/A inst None N/A N/A N/A self obj N/A N/A weakref ref inst N/A self _cleanup N/A N/A self class_ N/A inst __class__ N/A N/A N/A self obj None N/A N/A self class_ N/A state_dict N/A class_ N/A N/A self committed_state N/A N/A state_dict get committed_state N/A N/A N/A self _pending_mutations N/A N/A state_dict get _pending_mutations N/A N/A N/A self parents N/A N/A state_dict get parents N/A N/A N/A self modified N/A N/A state_dict get modified False N/A N/A self expired N/A N/A state_dict get expired False N/A N/A self callables N/A N/A state_dict get callables N/A N/A N/A N/A N/A self __dict__ update N/A N/A k N/A state_dict N/A k N/A k N/A key load_options N/A k state_dict N/A N/A load_path state_dict N/A N/A N/A self load_path N/A N/A PathRegistry deserialize N/A state_dict N/A load_path N/A N/A N/A state_dict N/A manager self inst state_dict N/A _initialize N/A N/A self key N/A N/A N/A Set this attribute to an empty value or collection,
           based on the AttributeImpl in use. N/A N/A N/A N/A N/A N/A self manager get_impl key initialize self N/A self dict N/A _reset N/A N/A self dict_ key N/A N/A N/A Remove the given attribute and any
           callables associated with it. N/A old N/A N/A dict_ pop key None N/A N/A N/A old None N/A N/A N/A N/A self manager N/A key impl collection N/A N/A N/A N/A N/A N/A N/A self manager N/A key impl _invalidate_collection old N/A N/A N/A N/A self callables pop key None N/A _expire_attribute_pre_commit N/A N/A self dict_ key N/A N/A N/A a fast expire that can be called by column loaders during a load.

        The additional bookkeeping is finished up in commit_all().

        Should only be called for scalar attributes.

        This method is actually called a lot with joined-table
        loading, when the second table isn't present in the result.

         N/A N/A N/A dict_ pop key None N/A N/A N/A self callables N/A key self N/A _row_processor N/A N/A cls manager fn key N/A N/A N/A impl N/A N/A manager N/A key impl N/A N/A impl collection N/A _set_callable N/A N/A state dict_ row N/A N/A N/A old N/A N/A dict_ pop key None N/A N/A old None N/A N/A N/A N/A impl _invalidate_collection old N/A N/A N/A state callables N/A key fn N/A N/A _set_callable N/A N/A state dict_ row N/A N/A N/A N/A N/A state callables N/A key fn N/A N/A _set_callable N/A classmethod _expire N/A N/A self dict_ modified_set N/A N/A N/A N/A self expired True N/A N/A self modified N/A N/A N/A N/A modified_set discard self N/A N/A self modified False N/A N/A self _strong_obj None N/A N/A N/A N/A self committed_state clear N/A N/A N/A N/A InstanceState _pending_mutations _reset self N/A N/A N/A N/A InstanceState parents _reset self N/A key N/A self manager N/A N/A impl N/A N/A N/A self manager N/A key impl N/A N/A N/A impl accepts_scalar_loader N/A N/A impl expire_missing N/A key dict_ N/A N/A N/A N/A self callables N/A key self N/A old N/A N/A dict_ pop key None N/A N/A N/A impl collection N/A old None N/A N/A N/A N/A impl _invalidate_collection old N/A N/A N/A N/A N/A self manager dispatch expire self None N/A _expire_attributes N/A N/A self dict_ attribute_names N/A N/A N/A pending N/A N/A N/A self __dict__ get _pending_mutations None N/A key attribute_names N/A N/A impl N/A N/A N/A self manager N/A key impl N/A N/A impl accepts_scalar_loader N/A N/A N/A N/A self callables N/A key self N/A old N/A N/A dict_ pop key None N/A N/A N/A impl collection N/A old None N/A N/A N/A N/A impl _invalidate_collection old N/A N/A N/A N/A self committed_state pop key None N/A pending N/A N/A N/A N/A pending pop key None N/A N/A N/A N/A N/A self manager dispatch expire self attribute_names N/A __call__ N/A N/A self state passive N/A N/A N/A __call__ allows the InstanceState to act as a deferred
        callable for loading expired attributes, which is also
        serializable (picklable).

         N/A N/A N/A passive SQL_OK N/A N/A PASSIVE_NO_RESULT N/A toload N/A N/A N/A self expired_attributes intersection N/A self unmodified N/A N/A N/A N/A self manager deferred_scalar_loader self toload N/A k N/A N/A toload intersection N/A self callables N/A N/A N/A N/A self callables N/A k N/A ATTR_WAS_SET N/A unmodified N/A N/A self N/A N/A N/A Return the set of keys which have no uncommitted changes N/A N/A N/A N/A set N/A self manager difference N/A self committed_state N/A property unmodified_intersection N/A N/A self keys N/A N/A N/A Return self.unmodified.intersection(keys). N/A N/A N/A N/A N/A N/A set keys intersection N/A self manager difference N/A self committed_state N/A unloaded N/A N/A self N/A N/A N/A Return the set of keys which do not have a loaded value.

        This includes expired attributes and any other attribute that
        was never populated or modified.

         N/A N/A N/A N/A N/A N/A set N/A self manager difference N/A self committed_state difference N/A self dict N/A property _unloaded_non_object N/A N/A self N/A N/A N/A N/A N/A N/A self unloaded intersection N/A attr N/A attr N/A self manager N/A N/A N/A N/A self manager N/A attr impl accepts_scalar_loader N/A property expired_attributes N/A N/A self N/A N/A N/A Return the set of keys which are 'expired' to be loaded by
           the manager's deferred scalar loader, assuming no pending
           changes.

           see also the ``unmodified`` collection which is intersected
           against this set when a refresh operation occurs.

         N/A N/A set N/A k N/A N/A k v N/A N/A N/A self callables items N/A v self N/A property _instance_dict N/A N/A self N/A N/A N/A None N/A _modified_event N/A N/A self dict_ attr previous collection force N/A False False N/A N/A N/A N/A attr send_modified_events N/A N/A N/A N/A N/A N/A attr key N/A self committed_state force N/A N/A collection N/A N/A N/A previous NEVER_SET N/A N/A N/A N/A attr key dict_ N/A N/A previous N/A dict_ N/A N/A attr key N/A N/A previous N/A None NO_VALUE NEVER_SET N/A N/A previous N/A N/A attr copy previous N/A N/A N/A self committed_state N/A N/A attr key previous N/A N/A N/A N/A self session_id N/A N/A self _strong_obj None N/A N/A self modified N/A N/A instance_dict N/A N/A self _instance_dict N/A instance_dict N/A N/A N/A N/A N/A instance_dict _modified add self N/A inst N/A N/A self obj N/A N/A self session_id N/A N/A N/A self _strong_obj inst N/A N/A inst None N/A N/A N/A N/A orm_exc ObjectDereferencedError N/A Can't emit change event for attribute '%s' - parent object of type %s has been garbage collected. N/A N/A N/A self manager N/A N/A attr key N/A N/A base state_class_str self N/A N/A self modified True N/A _commit N/A N/A self dict_ keys N/A N/A N/A Commit attributes.

        This is used by a partial-attribute load operation to mark committed
        those attributes which were refreshed from the database.

        Attributes marked as "expired" can potentially remain "expired" after
        this step if a value was not populated in state.dict.

         N/A key keys N/A N/A N/A N/A N/A self committed_state pop key None N/A N/A self expired False N/A key N/A N/A N/A N/A N/A set N/A self callables intersection keys intersection dict_ N/A N/A N/A N/A self callables N/A key N/A _commit_all N/A N/A self dict_ instance_dict N/A None N/A N/A commit all attributes unconditionally.

        This is used after a flush() or a full load/refresh
        to remove all pending state from the instance.

         - all attributes are marked as "committed"
         - the "strong dirty reference" is removed
         - the "modified" flag is set to False
         - any "expired" markers/callables for attributes loaded are removed.

        Attributes marked as "expired" can potentially remain
        "expired" after this step if a value was not populated in state.dict.

         N/A N/A N/A self _commit_all_states N/A N/A self dict_ instance_dict N/A _commit_all_states N/A N/A self iter instance_dict N/A None N/A N/A Mass version of commit_all(). N/A N/A state dict_ iter N/A N/A N/A N/A N/A state committed_state clear N/A N/A N/A N/A InstanceState _pending_mutations _reset state N/A callables N/A state callables N/A key N/A list callables N/A N/A N/A N/A key dict_ N/A N/A callables N/A key state N/A N/A N/A callables N/A key N/A N/A instance_dict N/A state modified N/A N/A N/A N/A N/A instance_dict _modified discard state N/A N/A state modified N/A state expired False N/A N/A state _strong_obj None N/A classmethod N/A AttributeState N/A object N/A N/A Provide an inspection interface corresponding
    to a particular attribute on a particular mapped object.

    The :class:`.AttributeState` object is accessed
    via the :attr:`.InstanceState.attrs` collection
    of a particular :class:`.InstanceState`::

        from sqlalchemy import inspect

        insp = inspect(some_mapped_object)
        attr_state = insp.attrs.some_attribute

     __init__ N/A N/A self state key N/A N/A N/A N/A self state state N/A N/A self key key N/A loaded_value N/A N/A self N/A N/A N/A The current value of this attribute as loaded from the database.

        If the value has not been loaded, or is otherwise not present
        in the object's dictionary, returns NO_VALUE.

         N/A N/A N/A N/A N/A self state dict get N/A self key NO_VALUE N/A property value N/A N/A self N/A N/A N/A Return the value of this attribute.

        This operation is equivalent to accessing the object's
        attribute directly or via ``getattr()``, and will fire
        off any pending loader callables if needed.

         N/A N/A N/A N/A N/A N/A self state manager N/A N/A self key __get__ N/A N/A N/A self state obj N/A N/A self state class_ N/A property history N/A N/A self N/A N/A N/A Return the current pre-flush change history for
        this attribute, via the :class:`.History` interface.

        This method will **not** emit loader callables if the value of the
        attribute is unloaded.

        .. seealso::

            :meth:`.AttributeState.load_history` - retrieve history
            using loader callables if the value is not locally present.

            :func:`.attributes.get_history` - underlying function

         N/A N/A N/A N/A self state get_history N/A self key PASSIVE_NO_INITIALIZE N/A property load_history N/A N/A self N/A N/A N/A Return the current pre-flush change history for
        this attribute, via the :class:`.History` interface.

        This method **will** emit loader callables if the value of the
        attribute is unloaded.

        .. seealso::

            :attr:`.AttributeState.history`

            :func:`.attributes.get_history` - underlying function

        .. versionadded:: 0.9.0

         N/A N/A N/A N/A self state get_history N/A self key N/A PASSIVE_OFF INIT_OK N/A N/A PendingCollection N/A object N/A N/A A writable placeholder for an unloaded collection.

    Stores items appended to and removed from a collection that has not yet
    been loaded. When the collection is loaded, the changes stored in
    PendingCollection are applied to it to produce the final result.

     __init__ N/A N/A self N/A N/A N/A N/A self deleted_items N/A N/A util IdentitySet N/A N/A self added_items N/A N/A util OrderedIdentitySet N/A append N/A N/A self value N/A N/A N/A N/A value N/A self deleted_items N/A N/A N/A N/A N/A self deleted_items remove value N/A N/A N/A N/A N/A self added_items add value N/A remove N/A N/A self value N/A N/A N/A N/A value N/A self added_items N/A N/A N/A N/A N/A self added_items remove value N/A N/A N/A N/A N/A self deleted_items add value N/A N/A