Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydbuilder-1.0.16-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for pydbuilder-1.0.16.tar.gz
Algorithm Hash digest
SHA256 440b1b298216129f87df4f2fa3ef467c02293cfa93b2833509c375feb1e35b15
MD5 d08007b0862da5abf5c2cc106fa74654
BLAKE2b-256 4ad2a7bbbc6e8dd94cc8dc5914e9011f478339cb21bd160047873a758fbe2295

See more details on using hashes here.

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

Hashes for pydbuilder-1.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 57641164e1b334d8cb950bacc50501f885f91c3c0de9a785140ae6429cc5a101
MD5 4fdc341bb10255a278bb14f44bdebd30
BLAKE2b-256 e15575cf56af780af8a2a804eb9c54327704ac3ec4c0626042ed3d32bd88b062

See more details on using hashes here.

Supported by

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