Skip to main content

Call nim functions from Python.

Project description

A wrapper to allow nim functions to be called in Python.

It requires a nim package (also called PyNimFFI) to be installed, through nimble.

It uses cffi, and has some performance overhead, but has a reasonable number of features.

Ints, cstrings, and floats can be sent natively.

Exceptions are wrapped, and propagated back to Python.

Opaque types can be wrapped as subclasses of a “NimBase” class, and have a delete method created (which decrements the nim ref count - allowing garbage collection to happen correctly).

Note, there is apparently another nim / python bridge in the works, and may turn out to be better.

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyNimFFI, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size PyNimFFI-0.1.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page