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 - Ergus/C-Python: Calling Python from C with pure CPython api.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
Readme.md
Readme.md
 
 
main.c
main.c
 
 
mylib.py
mylib.py
 
 

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

ccmakecpython-apilearningpython

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
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.