Skip to content

API Documentation


Other Tools


spoc.frozendict

Immutable Dictionary

spoc.search_object(dotted_path)

Search for an object within a module using a dotted path notation.

Parameters:

  • dotted_path (str) –

    The dotted path string representing the object location.

Returns:

  • Any ( Any ) –

    The object found at the specified dotted path.

Example:

spoc.search_object("demo.middleware.on_event")

spoc.get_fields(obj)

Retrieve the non-dunder (non-magic) fields of an object.

Parameters:

  • obj (Any) –

    The object from which to retrieve fields.

Returns:

  • list ( list ) –

    A list of attribute names (fields) that do not start with double underscores (__).