Skip to main content

transpiler python into other language

Project description

Kithon is a project that provides the ability to translate python and python-family language such as hy-lang and coconut into human-readable code in any other programming languages.

Try out the web demo

For what?

For use python where we can't. For example in browser(js), embedded scripting(mostly lua). Or make python program faster by translating to go, c++, rust, nim or julia. Also for supporting program written on in unpopular programming languages (very new or vice versa)

How it works?

Kithon uses a dsl based on yaml and jinja to apply the rules described on it to the nodes of the ast tree. Using this dsl you can add new languages or extensions to those already added.

Status

The project is under active development. Now the ability to add translation of basic python constructs into any other language(in this repo js and go only) is supported.

There are plans to develop a number of supported languages and expand support for python syntax

Similar projects

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

kithon-0.0.1.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kithon-0.0.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file kithon-0.0.1.tar.gz.

File metadata

  • Download URL: kithon-0.0.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.4.164-1-MANJARO

File hashes

Hashes for kithon-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bd7e8537231bd73bce3e5fc5e115f2375827532e0c2fc110b51b71dd34ec9a7e
MD5 11423bc027483a62af0bb181785b4158
BLAKE2b-256 ce6a564cc8dd9b10301709cfe3df94cd9891f2bd66148c13440674d49aef27df

See more details on using hashes here.

File details

Details for the file kithon-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kithon-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.4.164-1-MANJARO

File hashes

Hashes for kithon-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61b98f073ad4df787d844c6b9f9486a45083c509bb2e1d145126f22ab08993e8
MD5 721c2eee8ac01459dc2738a3a425c06c
BLAKE2b-256 35d77b792d9d104f9768ca91b5b86ceebbcd4335999803aad2f9ac3bf11b21da

See more details on using hashes here.

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