An open API service indexing awesome lists of open source software.

https://github.com/federicostra/cython-package-example

Example of a package with Cython extensions.
https://github.com/federicostra/cython-package-example

cython cython-library example example-project package python python3

Last synced: about 1 month ago
JSON representation

Example of a package with Cython extensions.

Awesome Lists containing this project

README

        

Cython package example
======================

Purpose
-------

The purpose of this package is to demonstrate how to organize a project developed using Cython.
It shows a suitable folder structure according to the best practices, how to create extension modules with Cython, how to implement functions in C and make them available to Cython, how to include package data, how to write a `setup.py` script that allows users without Cython to install the package nonetheless.

Installation
------------

### From a repository checkout

```bash
make install
```
or
```bash
CYTHONIZE=1 pip install --user .
```

### From PyPi

```bash
pip install --user cython-package-example
```