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.2.0.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.2.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tywrap_ir-0.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 4be5a949fdb94088bf0e1c2274f8ca71417ef16edbc6b8b972b7299ffd6af56b
MD5 7edd7d3b06b32a5281219b3b64de37cb
BLAKE2b-256 b9c40eb995f050a3f5ef6ccaccd199c8459915acdec8e204990d456c5fc45e7d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tywrap_ir-0.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c20745c021cdc7ef024590cc51fcd0d3a3492caf81c4ba88d016f914ae576029
MD5 d8c7ba058eb825fb67499d3c99d7d9ed
BLAKE2b-256 bb4c68690a094a48e2864e2a9891cc82b9912250a944ab41b5a39a98e6e23fbb

See more details on using hashes here.

Provenance

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

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