Skip to main content

Example of a python module including cython and openmp

Project description


Simple template to implement an algorithm with cython and openmp. It implements simple examples to demonstrate the speed up obtained by using cython. The module must be compiled to be used inplace:

python build_ext --inplace

Generate the setup in subfolder dist:

python sdist

Generate the documentation in folder dist/html:

python -m sphinx -T -b html doc dist/html

Run the unit tests:

python -m unittest discover tests


python -m pytest

To check style:

python -m flake8 td3a_cpp tests examples

The function check or the command line python -m td3a_cpp check checks the module is properly installed and returns processing time for a couple of functions or simply:

import td3a_cpp

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for td3a_cpp, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size td3a_cpp-0.1.1.tar.gz (474.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page