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+
  • tywrap - The main TypeScript package
  • GitHub - Source code and issues

License

MIT

Metadata

Release files for tywrap-ir 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tywrap-ir 0.3.1
File Size Uploaded
tywrap_ir-0.3.1.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tywrap-ir 0.3.1
File Interpreter ABI Platform
tywrap_ir-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.7 kB

Release files / tywrap_ir-0.3.1.tar.gz

Download URL tywrap_ir-0.3.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b39666099720f230ca7f560a81b999eea0c6671b204e4bfdb61f4f6cd996b69
BLAKE2b-256 checksum
How to use checksums
9c5d848284b4f3c533d2ebc245cd54bf4c1383fdd98c689f8b7cfda17f8bebed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / tywrap_ir-0.3.1-py3-none-any.whl

Download URL tywrap_ir-0.3.1-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3942658ba0b3126091aebf51466f8cb7b566cdb37de2a34799526f0209a8c110
BLAKE2b-256 checksum
How to use checksums
f812b2f0e7d03ef35d678d1768d9554fe908e82fd645e582a81f66a5d03b2422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release 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