Skip to content
/ C-Python Public

Calling Python from C with pure CPython api.

Notifications You must be signed in to change notification settings

Ergus/C-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

Simple test to call python function in module from C.

There is a test included from cmake which executes:

./main mylib multiply 4 5

and tests the output. The multiply function is defined in the python module.

Build

Just follow the standard cmake steps.

mkdir build

cd build

cmake ..

make

make test

About

Calling Python from C with pure CPython api.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published