Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PyNimFFI-0.1.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Aug 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting