Skip to main content

Python IR extractor for tywrap: emits versioned JSON IR for Python modules

Project description

tywrap-ir

PyPI version Python versions License: MIT

Python IR extractor for tywrap. Emits versioned JSON IR for Python modules using inspect/typing/importlib.

Installation

pip install tywrap-ir

Usage

# Extract IR for a module
python -m tywrap_ir --module math

# Or using the CLI
tywrap-ir --module math

# Output to file
tywrap-ir --module pandas --output pandas_ir.json

What is this?

This package is the Python component of tywrap, a TypeScript wrapper generator for Python libraries. It analyzes Python modules and extracts type information into a JSON intermediate representation (IR) that tywrap uses to generate TypeScript bindings.

You typically don't need to use this package directly - the tywrap npm package invokes it automatically during code generation.

Requirements

  • Python 3.10+

Related

  • tywrap - The main TypeScript package
  • GitHub - Source code and issues

License

MIT

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

tywrap_ir-0.1.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

tywrap_ir-0.1.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file tywrap_ir-0.1.2.tar.gz.

File metadata

  • Download URL: tywrap_ir-0.1.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tywrap_ir-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b4d5541433bb3b45c39ec60a8f8d09e92efc7dc24cf3debc176bbad6db15289f
MD5 4f581047876c60626f0fe5b9b50f36df
BLAKE2b-256 5ba29d1bd278daf23f1acf73c29a1e06856931c345fdd67f126e2f397b2a58bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for tywrap_ir-0.1.2.tar.gz:

Publisher: publish-pypi.yml on bbopen/tywrap

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

File details

Details for the file tywrap_ir-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tywrap_ir-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tywrap_ir-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d53560489c69c769f6ef0bdfe7a2bc5990557e328dd33e87b524e0b4e0545f
MD5 1a7ef71612f075c8fa2569e29270e0fd
BLAKE2b-256 fac83402e0831581bc85ab8fd0c16f443573b62abc5487f0c31327a979e5fe94

See more details on using hashes here.

Provenance

The following attestation bundles were made for tywrap_ir-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on bbopen/tywrap

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