Skip to content

aochoae/python-extension-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extending Python with C

This repository is a ready-to-use template for creating Python extensions using C, ideal for developers who want to improve the performance of their Python projects with native code.

It includes a practical example: a method that sums a series of consecutive natural numbers. This example clearly demonstrates how to define functions in C and expose them for use in Python, serving as a starting point for creating your own native functions.

Getting Started

python setup.py install
python -m unittest tests/test_summation.py

License

Copyright 2025 Luis A. Ochoa

This project is licensed under the MIT license. See LICENSE for the full license text.

About

Extending Python with C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published