Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alploskov/kithon
- Owner: alploskov
- License: mit
- Created: 2020-08-21T20:09:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-04T22:40:38.000Z (8 months ago)
- Last Synced: 2024-10-24T00:50:25.850Z (3 months ago)
- Topics: compiler, go, golang, javascript, js, lua, python, transpiler
- Language: Python
- Homepage: https://alploskov.github.io/kithon-site/demo/
- Size: 2.6 MB
- Stars: 48
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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) ![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
```