autopxd2-2.3.0
توضیحات
Automatically generate Cython pxd files from C headers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | autopxd2-2.3.0 |
| نام | autopxd2 |
| نسخه کتابخانه | 2.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Elijah Shaw-Rutschman |
| ایمیل نویسنده | elijahr+autopxd2@gmail.com |
| آدرس صفحه اصلی | https://github.com/elijahr/python-autopxd2 |
| آدرس اینترنتی | https://pypi.org/project/autopxd2/ |
| مجوز | MIT |
# 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.7
- Python 3.8
- Python 3.9
- Python 3.10
[](https://github.com/elijahr/python-autopxd2/actions/workflows/test.yml)
[](https://github.com/elijahr/python-autopxd2/actions/workflows/lint.yml)
### installation:
```shell
pip install autopxd2
```
### Usage:
```shell
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.3.0 - 2023-01-08
- Add: Support for const & volatile qualifiers from Emmanuel Leblond [#42](https://github.com/elijahr/python-autopxd2/pull/42)
#### v2.2.3 - 2022-10-04
- Move to https://github.com/elijahr/python-autopxd2
#### v2.2.0 - 2022-08-03
- Add: Microsoft Visual C++ support from Steve Dower [#40](https://github.com/elijahr/python-autopxd2/pull/40)
#### v2.1.1 - 2022-05-24
- Add: `--regex` for arbitrary conversions
- Fix: Various other fixes and improvements from Mads Ynddal in [#38](https://github.com/elijahr/python-autopxd2/pull/38)
#### v2.0.4 - 2021-11-23
- Fix: Windows CRLF issue ([#24](https://github.com/elijahr/python-autopxd2/pull/24))
#### v2.0.3 - 2021-10-08
- Fix: remove unnecessary `importlib_resources` from `install_requires`
#### v2.0.2 - 2021-10-07
- Migrate to [`setup.cfg`](https://docs.python.org/3/distutils/configfile.html)
#### v2.0.1 - 2021-10-06
- Add: `--compiler-directive` option to pass along to the compiler
- Add: some type annotations (`nodes.py`)
- Deprecation: Drop support for Python 2
- Add: linting, format with black
- Add: Migrate from Travis CI to Github Actions
#### v1.1.0 - 2020-01-03
- Add: Support for macOS
### 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.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4,>=3.6 | Python |
نحوه نصب
نصب پکیج whl autopxd2-2.3.0:
pip install autopxd2-2.3.0.whl
نصب پکیج tar.gz autopxd2-2.3.0:
pip install autopxd2-2.3.0.tar.gz