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))
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
pydbuilder-1.0.16.tar.gz
(2.6 kB
view details)
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.16.tar.gz.
File metadata
- Download URL: pydbuilder-1.0.16.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
440b1b298216129f87df4f2fa3ef467c02293cfa93b2833509c375feb1e35b15
|
|
| MD5 |
d08007b0862da5abf5c2cc106fa74654
|
|
| BLAKE2b-256 |
4ad2a7bbbc6e8dd94cc8dc5914e9011f478339cb21bd160047873a758fbe2295
|
File details
Details for the file pydbuilder-1.0.16-py3-none-any.whl.
File metadata
- Download URL: pydbuilder-1.0.16-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
57641164e1b334d8cb950bacc50501f885f91c3c0de9a785140ae6429cc5a101
|
|
| MD5 |
4fdc341bb10255a278bb14f44bdebd30
|
|
| BLAKE2b-256 |
e15575cf56af780af8a2a804eb9c54327704ac3ec4c0626042ed3d32bd88b062
|