pykot

Porting some Python / Kotlin features to Nim

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install pykot
choosenim install pykot
git clone https://github.com/jabbalaci/nimpykot

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
pykot - - - - - - -

Source

Repository https://github.com/jabbalaci/nimpykot
Homepage https://github.com/jabbalaci/nimpykot
Documentation View Documentation
Registry Source nimble_official

README

NimPyKot

Build Status

Porting some Python / Kotlin features to Nim.

Installation

$ nimble install pykot

To install the latest development version, issue the following command:

$ nimble install "https://github.com/jabbalaci/nimpykot@#head"

With nimble uninstall pykot you can remove the package.

API Documentation

See here: https://jabbalaci.github.io/nimpykot/ .

Notes

Similar projects: https://github.com/search?q=nimpylib&type=repositories

Sample

Take an integer and reverse it. The result must also be an integer. Example: 1977 → 7791.

import unicode
import pykot/converters

proc reverse_number(n: int): int =
  n.toStr().reversed().toInt()

let n = 2018

echo n                    # 2018
echo reverse_number(n)    # 8102

See the samples/ directory for more examples.