Skip to content

medavox/pytokot

Repository files navigation

pytokot

A semi-automatic1 Python-to-Kotlin converter.

As-yet unfinished: still under heavy development.

See these comments for a list of planned-but-unimplemented features, as of 3 June 2020.

  • online
  • commandline app
  • local webpage
As a local webpage

To build it:

./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:

./gradlew shadowJar

to run it:

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

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Then add this library to your project:

gradle

dependencies {
    implementation 'com.github.medavox:IPA-Transcribers:v0.3'
}

maven

<dependency>
    <groupId>com.github.medavox</groupId>
    <artifactId>IPA-Transcribers</artifactId>
    <version>v0.3</version>
</dependency>

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.

About

semi-automatic python to kotlin converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published