Module introspection
Expand description
Introspection of the live embedded Python package.
StructsΒ§
- Member π
- One member of a module or class.
- Module
Surface π - One moduleβs public surface, as the live interpreter reports it.
- Param π
- One parameter of a callable.
EnumsΒ§
- Member
Kind π - 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
valueis one of the descriptor types pyo3 produces for a getter. - is_
enum_ πclass - Whether
valueis a subclass ofenum.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.