Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alploskov/kithon

Python to any languages transpiler
https://github.com/alploskov/kithon

compiler go golang javascript js lua python transpiler

Last synced: 2 months ago
JSON representation

Python to any languages transpiler

Awesome Lists containing this project

README

        

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/alploskov/kithon/blob/master/LICENSE.txt) Package version ![lines of code](https://tokei.rs/b1/github/alploskov/kithon) [![Downloads](https://static.pepy.tech/badge/kithon)](https://pepy.tech/project/kithon)

**Kithon** is universal python transpiler for speedup python programs and use python in other platform, such as browser or game engines, it focused on generating human readable code and integration with tools of target languages including cli and libraries

**[Try out the web demo](https://alploskov.github.io/kithon-site/demo/)**

Quick start
------------
First, you install it:

```text
$ pip install kithon
```

Then, you translate your code to target language, in this example JavaSctipt

```text
$ kithon gen --to js hello_world.py
```

Or translate and run resulting code

```text
$ kithon run --to go hello_world.py
```
It should be clear what to do. If not, ask us in our [Telegram chat](https://t.me/kithon).

How to Contribute
-----------------

Follow these steps:

install `python>=3.9`, `poetry`

```
poetry install -E all --with docs --with test
```

```
pytest
```