Python IR extractor for tywrap: emits versioned JSON IR for Python modules
Project description
tywrap-ir
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
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4d5541433bb3b45c39ec60a8f8d09e92efc7dc24cf3debc176bbad6db15289f
|
|
| MD5 |
4f581047876c60626f0fe5b9b50f36df
|
|
| BLAKE2b-256 |
5ba29d1bd278daf23f1acf73c29a1e06856931c345fdd67f126e2f397b2a58bd
|
Provenance
The following attestation bundles were made for tywrap_ir-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on bbopen/tywrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tywrap_ir-0.1.2.tar.gz -
Subject digest:
b4d5541433bb3b45c39ec60a8f8d09e92efc7dc24cf3debc176bbad6db15289f - Sigstore transparency entry: 835807824
- Sigstore integration time:
-
Permalink:
bbopen/tywrap@4994f06327cd7bc6acbf36bb90de852adf9d3ce9 -
Branch / Tag:
refs/tags/tywrap-ir-v0.1.2 - Owner: https://github.com/bbopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@4994f06327cd7bc6acbf36bb90de852adf9d3ce9 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4d53560489c69c769f6ef0bdfe7a2bc5990557e328dd33e87b524e0b4e0545f
|
|
| MD5 |
1a7ef71612f075c8fa2569e29270e0fd
|
|
| BLAKE2b-256 |
fac83402e0831581bc85ab8fd0c16f443573b62abc5487f0c31327a979e5fe94
|
Provenance
The following attestation bundles were made for tywrap_ir-0.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on bbopen/tywrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tywrap_ir-0.1.2-py3-none-any.whl -
Subject digest:
e4d53560489c69c769f6ef0bdfe7a2bc5990557e328dd33e87b524e0b4e0545f - Sigstore transparency entry: 835807826
- Sigstore integration time:
-
Permalink:
bbopen/tywrap@4994f06327cd7bc6acbf36bb90de852adf9d3ce9 -
Branch / Tag:
refs/tags/tywrap-ir-v0.1.2 - Owner: https://github.com/bbopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@4994f06327cd7bc6acbf36bb90de852adf9d3ce9 -
Trigger Event:
push
-
Statement type: