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))

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


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.18.tar.gz (6.0 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.18-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for pydbuilder-1.0.18.tar.gz
Algorithm Hash digest
SHA256 de135807d83b36d8a31dc39b01ff68ea09691476e5635cf0b4dd137888784799
MD5 2a0b989d2120ebb46fe15ac4e17c16e7
BLAKE2b-256 5fb51b32d2de097c344b65efd046a1ffe791d0e3faccd8791c27dd94a24ff7db

See more details on using hashes here.

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

Hashes for pydbuilder-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 faad89aec718f2679b5330cc4676a6e949c3e2036b6ad73c3511a157907036bf
MD5 96d0a892023d5c832a9ee8318f079a6c
BLAKE2b-256 5ff4da73ad107e7c7b5489026a8818d462c5d20da9d85f6aae1066df5a075d1f

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