tywrap-ir
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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tywrap_ir-0.3.1.tar.gz | 14.1 kB | With provenance | Details for tywrap_ir-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tywrap_ir-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for tywrap_ir-0.3.1-py3-none-any.whl |
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 logRelease 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 logSecurity for tywrap-ir 0.3.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tywrap_ir-0.3.1.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.