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 generates .pxd files automatically from .h files.

Tested against:

  • Python 3.6
  • Python 3.7
  • Python 3.8
  • Python 3.9
  • PEP8

Test Lint

installation:

pip install autopxd2

usage:

Usage: autopxd [OPTIONS] [INFILE] [OUTFILE]

  Generate a Cython pxd file from a C header file.

Options:
  -v, --version                   Print program version and exit.
  -I, --include-dir <dir>         Allow the C preprocessor to search for files
                                  in <dir>.

  -D, --compiler-directive <directive>
                                  Additional directives for the C compiler.
  --debug / --no-debug            Dump preprocessor output to stderr.
  -h, --help                      Show this message and exit.

release history:

v2.0.3 - 2021-10-08

  • fix: remove unnecessary importlib_resources from install_requires

v2.0.2 - 2021-10-07

v2.0.1 - 2021-10-06

  • Add --compiler-directive option to pass along to the compiler
  • Add some type annotations (nodes.py)
  • Drop support for Python 2
  • Add linting, format with black
  • Migrate from Travis CI to Github Actions

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-2.0.3.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

autopxd2-2.0.3-py3-none-any.whl (267.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autopxd2-2.0.3.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for autopxd2-2.0.3.tar.gz
Algorithm Hash digest
SHA256 823b72cbb3953bafd9c02b81d373e8ece937e0054f5cdf5be96b62a39d9ee91a
MD5 97ddd6d8777b126d3b891dc9734eced2
BLAKE2b-256 650863cd365e73742ec5e0a3859e6d5e60f1da790771a7a55d84b99ee9bcf6ec

See more details on using hashes here.

File details

Details for the file autopxd2-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: autopxd2-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 267.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for autopxd2-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 781a3fa3e59894eaf2b79401275580960ca3225819260d81f1be708292542ad1
MD5 cbac81918882b6d5477e4f72dd583361
BLAKE2b-256 944a0a67ed4b3ae2fcabce494d99865317d86ddd9f81d8e9a2936d8db28aed57

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