Skip to main content

Module introspection

Module introspection 

Expand description

Introspection of the live embedded Python package.

StructsΒ§

Member πŸ”’
One member of a module or class.
ModuleSurface πŸ”’
One module’s public surface, as the live interpreter reports it.
Param πŸ”’
One parameter of a callable.

EnumsΒ§

MemberKind πŸ”’
The shapes a member can take.

FunctionsΒ§

callable_kind πŸ”’
Reads a callable’s __text_signature__.
canonicalize_aliases πŸ”’
Replaces duplicate public names for one live Python class with aliases.
class_kind πŸ”’
Reads a class’s bases and members.
code_span_labels πŸ”’
Puts the label of [label](rust::path) into a code span.
docstring πŸ”’
Reads __doc__, treating an empty string as absent.
enum_kind πŸ”’
Reads an enum class’s mixin type and its members.
introspect πŸ”’
Reads the four native surfaces and the inline-typed Python adapter.
is_descriptor πŸ”’
Whether value is one of the descriptor types pyo3 produces for a getter.
is_enum_class πŸ”’
Whether value is a subclass of enum.Enum.
literal πŸ”’
Accepts a default only if it is a plain Python literal or the stub placeholder.
module_surface πŸ”’
Reads one module’s surface.
parse_signature πŸ”’
Parses instance and class method signatures into parameters and receiver kind.
split_top_level πŸ”’
Splits on commas that are not inside a bracket or a quote.