Skip to main content

IPython-style introspection (signatures, docstrings, members, source, call graphs, class hierarchy) for any Python package — standalone module from the SciTeX ecosystem

Project description

scitex-introspect

IPython-style introspection for any Python package, extracted from the SciTeX ecosystem as a standalone, zero-dep package.

Install

pip install scitex-introspect
pip install "scitex-introspect[mcp]"   # + MCP server for AI agents

API

import scitex_introspect as ix

# IPython-style shortcuts
ix.q(my_func)        # Signature with type hints (like `my_func?`)
ix.qq(my_func)       # Full source code (like `my_func??`)
ix.dir(my_pkg)       # List attributes/methods
ix.list_api(my_pkg)  # Recursive module API tree

# Detailed inspection
ix.signature(my_func)
ix.docstring(my_func)
ix.source(my_func)
ix.members(my_pkg)

# Static analysis
ix.imports(file_path)        # Imports of a Python file
ix.call_graph(my_func)       # What functions does this call?
ix.class_hierarchy(MyClass)  # MRO + base classes
ix.examples(my_func)         # Doctest / docstring examples
ix.resolve("scitex.io.save") # Walk dotted path → object

Status

Standalone fork of scitex.introspect. Pure stdlib — zero deps. The umbrella package's scitex.introspect import path is preserved via a sys.modules-alias bridge. 76/77 tests pass (1 skipped).

License

AGPL-3.0-only (see LICENSE).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scitex_introspect-0.1.1.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_introspect-0.1.1-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file scitex_introspect-0.1.1.tar.gz.

File metadata

  • Download URL: scitex_introspect-0.1.1.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_introspect-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b8e5014f58b3e78a3b4002996d7dd64818d050c4fcd7579c7643599150cdea38
MD5 15eb1240d2f64e03d1a6c2f9b2416f82
BLAKE2b-256 f33b5603123071d09230ec2caf49add1e73eb392cfbfd7fbb0e7f9238d859218

See more details on using hashes here.

File details

Details for the file scitex_introspect-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scitex_introspect-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd7a0d57aa587c9d0ea02509c0abb035fa77d267ae885c72aed9b020244ada45
MD5 f59ddb24300c7d44cb469c9812bab001
BLAKE2b-256 1b25c4e4829287d120216008c5e025c6fabaf5565ab561ffa28f3b965634355c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page