Skip to main content

Automatically generate Cython pxd files from C headers

Project description

python-autopxd2

A friendly fork of autopxd https://github.com/tarruda/python-autopxd

It allows to generate .pxd files automatically from .h files.

Tested against:

  • Python 2.7
  • Python 3.4
  • Python 3.6
  • PEP8

Build Status

installation:

pip install autopxd2

usage:

autopxd [OPTIONS] [INFILE] [OUTFILE]

  Generate a Cython pxd file from a C header file.

Options:
  --version                Print program version and exit.
  -I, --include-dir <dir>  Allow the C preprocessor to search for files in
                           <dir>.
  --debug / --no-debug     Dump preprocessor output to stderr.
  --help                   Show this message and exit.

release history:

v1.1.0 - 2020-01-03

  • Support for OSX

roadmap:

  • Refactoring of the code DONE
  • Adding tests for PEP8 DONE
  • Uploading to PyPi DONE
  • Check that the generated code is correct by comparing it to the libc in Cython
  • More tests
  • Merge it into Cython so that the .pxd files aren't necessary anymore? Maybe.

Please raise an issue if the generated code isn't correct.

It's difficult to catch all the corner cases.

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 autopxd2, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size autopxd2-1.1.0.tar.gz (37.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page