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

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

SciTeX

IPython-style introspection for any Python package — `q`, `qq`, `dir`, signatures, source.

Full Documentation · pip install scitex-introspect


Installation

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

Quick Start

import scitex_introspect as ix

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

2 Interfaces

Python API
import scitex_introspect as ix

# IPython-style shortcuts
ix.q(my_func)        # Signature with type hints
ix.qq(my_func)       # Full source code
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)
ix.call_graph(my_func)
ix.class_hierarchy(MyClass)
ix.examples(my_func)
ix.resolve("scitex.io.save")
MCP Server — for AI Agents

Install with pip install "scitex-introspect[mcp]" and the package exposes async handlers for IPython-style introspection over MCP — agents can ask "what's the signature of X?" or "show me the source of Y" without running Python themselves.

Status

Standalone fork of scitex.introspect. Pure stdlib core — zero runtime deps. The umbrella package's scitex.introspect import path is preserved via a sys.modules-alias bridge.

Part of SciTeX

scitex-introspect is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0-only (see LICENSE).


SciTeX

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.5.tar.gz (32.1 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.5-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_introspect-0.1.5.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_introspect-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7e04b6a301ecdcfd4c0f4e6001ebd1d60b860015fec441c1816b93fccc3853ab
MD5 09c9dcc4a7aeecc2bd8551943f03cc5e
BLAKE2b-256 38189295939906ef4b19a0e6fb4a846f7ea9d7214f141331c0b0fb93e8ecb897

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_introspect-0.1.5.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-introspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for scitex_introspect-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1a30edf0a55c75168b3445dfd7edf37f1815cebba0872a6cd644356063461e15
MD5 bb4a3c51f6437ca34c49d5238b3829bc
BLAKE2b-256 a51805cb927ddb69096210ef906837a168c62e5a5d39e22659e1e60a2f046f3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_introspect-0.1.5-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-introspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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