Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typtr-0.1.0.tar.gz (27.2 kB view hashes)

Uploaded Source

Built Distribution

typtr-0.1.0-py3-none-any.whl (30.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page