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.

Source Distribution

autopxd2-1.1.0.tar.gz (37.5 kB view details)

Uploaded Source

File details

Details for the file autopxd2-1.1.0.tar.gz.

File metadata

  • Download URL: autopxd2-1.1.0.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for autopxd2-1.1.0.tar.gz
Algorithm Hash digest
SHA256 faa4b7eeb6b1d7217c46d3660640d4a72fb5c86d4559017c1f58a55d34332b2a
MD5 1249c9a80b39418757ef4150fa6dabaa
BLAKE2b-256 aea88661f7591c9754a02e7b5e5a70f26499b6b18291e412a5dfc3ea1a6c44f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page