GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - matkuki/python3: Python 3 wrapper for Nim

This repository was archived by the owner on Nov 14, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
src
src
 
 
README.md
README.md
 
 
python3.nimble
python3.nimble
 
 

Repository files navigation

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:

  • py3_version: This is a required flag that selects the Python version you wish to compile for. Omitting this flag produces a compile time error.
  • py3_static: This flag selects the bindings to be compiled statically. Static bindings are usually used when you are creating a Nim module that will be imported in Python.
  • py3_dynamic: This flag selects the bindings to be compiled dynamically. Dynamic bindings are used when a Nim application wants to use Python functionality during runtime. A dynamic Python 3 shared library is required to be installed on the system to dynamic bindings (python3.dll on Windows or libpython3.X.so.1/libpython3.Xm.so.1 on Linux/MacOS).

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).

About

Python 3 wrapper for Nim

Topics

nimpython3wrapper

Resources

Readme
Activity

Stars

16 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.