A transpiler for an idiomatic subset of typed Python into semantically similar object-oriented languages.
Project description
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.
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
File details
Details for the file typtr-0.1.0.tar.gz
.
File metadata
- Download URL: typtr-0.1.0.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38fbbee0150120b56c0ba657f93950f146390d405d0e9c078c2331c5c2d66c28 |
|
MD5 | 717fd9c885b750320ee441b70e7fced6 |
|
BLAKE2b-256 | b7c1e09bc09238c1df803749a63a1595f1a0a35f4bad3d11eb446c73a7727b86 |
File details
Details for the file typtr-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: typtr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817bb1b4919533275563ad7ab95edf645bf3afe94e8396c80c10ef00955a13a3 |
|
MD5 | e94658109a7c0c9c06e8d8e244923157 |
|
BLAKE2b-256 | e5a5f16f36f6d6175e42fe941525ba9a26a28aab65d3db04694bc056ef0c96fb |