Module Expr Str ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Break orelse Assign NameStore NameStore NameLoad If BoolOpAnd NameLoad BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg body FunctionDef arguments args NameParam defaults body For NameStore NameLoad body If CompareIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call Call NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A The inspection module provides the :func:`.inspect` function,
which delivers runtime information about a wide variety
of SQLAlchemy objects, both within the Core as well as the
ORM.

The :func:`.inspect` function is the entry point to SQLAlchemy's
public API for viewing the configuration and construction
of in-memory objects.   Depending on the type of object
passed to :func:`.inspect`, the return value will either be
a related object which provides a known interface, or in many
cases it will return the object itself.

The rationale for :func:`.inspect` is twofold.  One is that
it replaces the need to be aware of a large variety of "information
getting" functions in SQLAlchemy, such as :meth:`.Inspector.from_engine`,
:func:`.orm.attributes.instance_state`, :func:`.orm.class_mapper`,
and others.    The other is that the return value of :func:`.inspect`
is guaranteed to obey a documented API, thus allowing third party
tools which build on top of SQLAlchemy configurations to be constructed
in a forwards-compatible way.

.. versionadded:: 0.8 The :func:`.inspect` system is introduced
   as of version 0.8.

 N/A util exc N/A _registrars N/A N/A util defaultdict list inspect N/A N/A subject raiseerr N/A True N/A N/A Produce an inspection object for the given target.

    The returned value in some cases may be the
    same object as the one given, such as if a
    :class:`.Mapper` object is passed.   In other
    cases, it will be an instance of the registered
    inspection type for the given object, such as
    if an :class:`.engine.Engine` is passed, an
    :class:`.Inspector` object is returned.

    :param subject: the subject to be inspected.
    :param raiseerr: When ``True``, if the given subject
     does not
     correspond to a known SQLAlchemy inspected type,
     :class:`sqlalchemy.exc.NoInspectionAvailable`
     is raised.  If ``False``, ``None`` is returned.

      N/A type_ N/A type subject N/A cls N/A type_ __mro__ N/A N/A N/A cls _registrars N/A N/A reg N/A _registrars N/A cls N/A N/A reg True N/A N/A subject N/A ret N/A reg subject N/A N/A ret None N/A N/A N/A N/A reg ret None N/A N/A raiseerr N/A N/A reg None N/A ret None N/A N/A N/A N/A exc NoInspectionAvailable N/A No inspection system is available for object of type %s type_ N/A ret N/A _inspects N/A N/A N/A types N/A decorate N/A N/A fn_or_cls N/A N/A N/A type_ types N/A N/A N/A type_ _registrars N/A N/A N/A AssertionError N/A Type %s is already registered type_ N/A N/A _registrars N/A type_ fn_or_cls N/A fn_or_cls N/A N/A decorate N/A _self_inspects N/A N/A cls N/A N/A N/A N/A N/A _inspects cls True N/A cls N/A