Skip to main content

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

tywrap-ir is versioned independently from the tywrap npm package. Install the latest published release of each package unless you need to pin them explicitly.

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

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.3.0.tar.gz (14.1 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.3.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tywrap_ir-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c393f83aaf93ac534888adcbe2b07faca31dbcc3f4233a4d075020b673c71f09
MD5 ef1eaed9d4ae0b177a197ae74b3bca9b
BLAKE2b-256 21e5c98bc1f5c9c16486f63f2e814b5979e14c03ce00e9718d68ffa2f36f48bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for tywrap_ir-0.3.0.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.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for tywrap_ir-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71ad9c72719d64e84367f91e0c5939f2f015d1c3640215d95f8af357be6f0798
MD5 950fa88a6e2f9bef8542eba6e5b0ed96
BLAKE2b-256 30b44d7bbfb3d72f271e7a90a69ee6dc3127e124e2252416a45d14021152edb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tywrap_ir-0.3.0-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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page