Utility for creating pyd files using Cython
Project description
pydBuilder
pydBuilder is a simple utility for converting Python scripts to pyd files using Cython.
Installation
pip install pydbuilder
Using
Step 1: Create a Python script to compile using the module
def difference(a: int, b: int) -> str:
result = abs(a - b) / min(a, b)
result = result * 100
return f'{result:.2f}%'
Step 2: Use the module to automatically compile the script
pydbuilder difference.py
or
pydbuilder path/to/difference.py
Step 3: Use the compiled file in the code
from difference import difference
print(difference(3432, 2831))
Commands example
pydbuilder --help for view help message
pydbuilder -all -ext "py, pyw" <path/to/dir>
or
C:\path\to\dir> pydbuilder -all -ext pyx
pydbuilder --settings for change settings
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydbuilder-1.0.18.tar.gz.
File metadata
- Download URL: pydbuilder-1.0.18.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de135807d83b36d8a31dc39b01ff68ea09691476e5635cf0b4dd137888784799
|
|
| MD5 |
2a0b989d2120ebb46fe15ac4e17c16e7
|
|
| BLAKE2b-256 |
5fb51b32d2de097c344b65efd046a1ffe791d0e3faccd8791c27dd94a24ff7db
|
File details
Details for the file pydbuilder-1.0.18-py3-none-any.whl.
File metadata
- Download URL: pydbuilder-1.0.18-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faad89aec718f2679b5330cc4676a6e949c3e2036b6ad73c3511a157907036bf
|
|
| MD5 |
96d0a892023d5c832a9ee8318f079a6c
|
|
| BLAKE2b-256 |
5ff4da73ad107e7c7b5489026a8818d462c5d20da9d85f6aae1066df5a075d1f
|