https://github.com/medavox/pytokot
semi-automatic python to kotlin converter
https://github.com/medavox/pytokot
Last synced: about 1 month ago
JSON representation
semi-automatic python to kotlin converter
- Host: GitHub
- URL: https://github.com/medavox/pytokot
- Owner: medavox
- License: gpl-3.0
- Created: 2020-05-11T14:08:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T17:04:20.000Z (almost 5 years ago)
- Last Synced: 2025-02-12T10:19:24.456Z (3 months ago)
- Language: Kotlin
- Size: 171 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytokot
A semi-automatic[1](#semiauto) Python-to-Kotlin converter.
As-yet unfinished: still under heavy development.
See [these comments](https://github.com/medavox/pytokot/blob/f6a1d2097bb47e8cfc983552fd1c709e606ef57e/src/commonMain/kotlin/com/github/medavox/pytokot/Pytokot.kt#L53) for a list of planned-but-unimplemented features, as of 3 June 2020.
* [online](https://kotlinguistics.github.io/pytokot)
* commandline app
* local webpageAs a local webpage
To build it:
```shell script
./gradlew jsBrowserWebpack
./update-site.sh # or manually copy the files specified in that script
```then open `./docs/index.html` in your browser.
As a Java desktop app
to build it:
```shell script
./gradlew shadowJar
```to run it:
```shell script
java -jar build/libs/IPA-transcribers-0.3-all.jar
```As a library in a Gradle/Maven project
First, add the jitpack repository to your repositories if you haven't already:
`gradle`
``` gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
````maven`
``` xml
jitpack.io
https://jitpack.io
```
Then add this library to your project:
`gradle`
``` gradle
dependencies {
implementation 'com.github.medavox:IPA-Transcribers:v0.3'
}
````maven`
``` xmlcom.github.medavox
IPA-Transcribers
v0.3```
1: pytokot does as much as it can for you, vastly reducing the work necessary to manually convert a Python file Kotlin.
But there will always need to be some editing by hand; custom libraries cannot be predicted and matched to Kotlin equivalents.