matkuki / python3

Python 3 wrapper for Nim
17 stars 1 forks source link
nim python3 wrapper

Python 3 wrapper for Nim nimble

These are raw Python 3 bindings which are used the same as you would in C! If you are looking for a seamless integration between Pyhon 3 and Nim, check out yglukhov's excellent library *nimpy*.

New static/dynamic functionality incorporated into the wrapper. Please report any bugs!

Description:

Nim wrapper for the Python 3 programming language.
Can be used to link either statically or dynamically to the Python 3 interpreter.

Usage:

There are now three new flags that are used to select the binding type:

Flags py3_static and py3_dynamic are mutually exclusive!

An example of building a static module for importing into Python:
nim c my_py3_module.nim -d:py3_version:3.5 -d:py3_static

Notes:

Compatible with Python 3.1 to 3.6 (Examples tested with Python 3.4).