Skip to main content

TypTr

A transpiler for an idiomatic subset of typed Python into semantically similar object-oriented languages.

Details

Currently, TypTr can transpile carefully type-annotated Python into:

  • Java
  • Javascript

"Carefully" means a small (and somewhat redundantly cast) subset of type-annotated Python. This is not a generic transpiler. Python has too many features for that, and for this reason there exist various transpilers for various idiomatic selections of those. TypTr is but one such selection.

Installation

To keep up with ongoing development, clone this repo and run pip install -e . within it.

Usage

$ typtr -h

Dependencies

Mypy is recommended while working on a transpilable code base.

Supported Features

TypTr was originally a part of TRLD. The needs of that project pretty much dictates what features and idioms are supported by TypTr at this point.

Metadata

Release files for typtr 0.1.0

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

Source distribution (sdist)

Source distribution for typtr 0.1.0
File Size Uploaded Provenance
typtr-0.1.0.tar.gz 27.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for typtr 0.1.0
File Interpreter ABI Platform
typtr-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.8 kB

Release files / typtr-0.1.0.tar.gz

Download URL typtr-0.1.0.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
38fbbee0150120b56c0ba657f93950f146390d405d0e9c078c2331c5c2d66c28
BLAKE2b-256 checksum
How to use checksums
b7c1e09bc09238c1df803749a63a1595f1a0a35f4bad3d11eb446c73a7727b86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / typtr-0.1.0-py3-none-any.whl

Download URL typtr-0.1.0-py3-none-any.whl
Size 30.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
817bb1b4919533275563ad7ab95edf645bf3afe94e8396c80c10ef00955a13a3
BLAKE2b-256 checksum
How to use checksums
e5a5f16f36f6d6175e42fe941525ba9a26a28aab65d3db04694bc056ef0c96fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for typtr 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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