Skip to content

HenriquesLab/pyx2pxd

Repository files navigation

pyx2pxd

Simple library to auto generate pxd files from pyx by extracting function and class signatures.
Initially developed to aid in the NanoPyx project.


Installation

You can install pyx2pxd via pip:

pip install pyx2pxd

To install latest development version :

pip install git+https://github.com/HenriquesLab/pyx2pxd.git

Usage

pyx2pxd folder_path_to_process

Note: pyx2pxd will only analyze pyx files that contain the comment # cython: autogen_pxd=True. For example:

# cython: infer_types=True, wraparound=False, nonecheck=False, boundscheck=False, cdivision=True, language_level=3, profile=True, autogen_pxd=True

from libc.math cimport fabs
...

License

Distributed under the terms of the [GNU GPL v2.0] license, "pyx2pxd" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.