Nim extension for Python, example project
Project description
nym
Nim extension for Python using nimporter, example project.
Free software: MIT license
Documentation: https://nym.readthedocs.io.
Usage
To install nym, run this command in your terminal:
$ pip install nym
To install from source:
$ git clone git@github.com:gmagno/nym.git && cd nym
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -U pip && pip install -r requirements_dev.txt
$ python -m nym.cli
To build:
$ make dist
To use nym:
from nym import fast, slow
start = time.time()
python_ret = slow.fib(33)
python_time = time.time() - start
restart = time.time()
nim_ret = fast.fib(33)
nim_time = time.time() - restart
print(f"python ret: {python_ret}")
print(f"python elapsed time: {python_time}")
print(f"nim ret: {nim_ret}")
print(f"nim elapsed time: {nim_time}")
History
0.1.1 (2022-05-14)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nym-0.1.1.tar.gz
(933.3 kB
view hashes)
Built Distribution
Close
Hashes for nym-0.1.1-cp310-cp310-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c224d3fb49e47f966771fdfc20a927340e67d9fa853ed06ab2d83b7942aecd35 |
|
MD5 | 7aa22bc93498a47bd5f1dbc8a7231ae1 |
|
BLAKE2b-256 | 889961693121509c59cc29d36ae6507a5fdf285be52461c20f7ef62166a1c7a3 |