Skip to main content

The best toolkit to build, run or compile Kotlin appications.

Project description

Note: If you plan on making a big and serious project, Kotlyn is not the library you are looking for. For big projects you probably want to use gradle. While the kotlinc (the library which Kotlyn is based on) is pretty powerful, it's nowhere near as useful as gradle.


  _   __      _   _             
 | | / /     | | | |              💙💙💜💛💛💛
 | |/ /  ___ | |_| |_   _ _ __    🩵💙💛💛💛  
 |    \ / _ \| __| | | | | '_ \   🩷🧡💛💛    
 | |\  \ |_| | |_| | |_| | | | |  🩷🧡🧡💜    
 \_| \_/\___/ \__|_|\__, |_| |_|  🧡🧡🩵💙💜  
                     __/ |        🧡🩵🩵💙💙💜
                    |___/

Kotlyn

CURRENTLY WINDOWS ONLY!
If everything goes as planned the unix based version will be out by May 2024.

Kotlyn is a toolkit to build and run Kotlin appications from the command line. This "python package" hijacks the pypi package manager/distributor to install Kotlin's latest version on your system. Apart from installing JetBrain's kotlinc terminal tool, Kotlyn provides a ✨ new and shiny CLI ✨ to run and build kotlin files.

Installation Guide

It's really easy, don't worry!

  1. Make sure python 🐍 is installed
python --version
  1. Use pip to install the CLI
python -m pip install --upgrade kotlyn
  1. Run the setup
python -m kotlyn !setup
  1. Check if the installation is correct ✅
    Once the setup is installed, you can just use the kotlyn keyword to access the CLI.
kotlyn !version

Usage

CURRENTLY ALL .KT FILES IN THE ENTRY FILE'S DIR ARE LINKED & COMPILED
A fix/feature is on the way

After runing the setup command, you are able to use the shorthand kotlyn instead of python -m kotlyn.

Run a kotlin (.kt) file

This will build the .jar file in kotlyn's temp folder and will automatically delete it after the program has finished.

To run ▶️ the Main.kt just do

kotlyn Main.kt

Build the Main.jar file

This will build the Main.jar file in the same directory where your entry kotlin file is located.

To build 🛠️ the Main.kt into Main.jar just do

kotlyn --build Main.kt

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

kotlyn-0.5.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

kotlyn-0.5.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file kotlyn-0.5.3.tar.gz.

File metadata

  • Download URL: kotlyn-0.5.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for kotlyn-0.5.3.tar.gz
Algorithm Hash digest
SHA256 979ef327f4436c5d13e86d900251cc039cdb5362c0b927f583695f13358b8024
MD5 4e047adbb6c20bc27f51b554be5d385d
BLAKE2b-256 22363a3f5e8a3b2b21f31c4cd9b18fec2e12b37f6a70ff906fd4808ddaa59378

See more details on using hashes here.

File details

Details for the file kotlyn-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: kotlyn-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for kotlyn-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fea64c00b4a64d361f2164936862f3183f31be53e46c5525eb86305f39bba24d
MD5 e34faed324ff6aaff7a4b6f37a7ad8f8
BLAKE2b-256 20a11468eadda10e2d559173c777777014f8c49422183d10f8589f5198f6d79e

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