No description
Find a file
2025-03-02 22:50:18 +01:00
docs * operator simplified 2025-03-02 22:50:18 +01:00
samples v0.2.0 2018-10-19 23:35:13 +02:00
src * operator simplified 2025-03-02 22:50:18 +01:00
tests * operator to repeat a string 2025-03-02 16:51:48 +01:00
.gitignore * operator to repeat a string 2025-03-02 16:51:48 +01:00
.travis.yml gh pages 2018-10-20 16:39:09 +02:00
build.py tried with Nim 2.2 2025-02-08 20:13:25 +01:00
config.nims v0.2.0 2018-10-19 23:35:13 +02:00
LICENSE Windows clipboard, Unicode support 2025-02-13 11:51:42 +01:00
pykot.nimble Windows clipboard, Unicode support 2025-02-13 11:51:42 +01:00
README.md README 2025-02-08 20:18:05 +01:00

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.