Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 720 Bytes

File metadata and controls

25 lines (17 loc) · 720 Bytes

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.