Skip to main content

CythonBuilder: automated compiling and packaging of Cython code

coverage Tests version dependencies PyPI Downloads versions
tweet xfollow

CythonBuilder makes it easy to use Cython in your Python project by automating the building process. You can use CythonBuilder from the commandline or import it as a package in Python. Generated files can be imported in Python directly

pip install cythonbuilder

Normal

Add -v (verbose) for more information

  1. Listing files with and without filter
cybuilder list
cybuilder list --files file1 file2.pyx
  1. Build with and without optional build arguments
cybuilder build
cybuilder build --include-numpy --no-annotation --no-cleanup
  1. Clean
cybuilder clean 
cybuilder clean --no-cleanup

With Python

  1. Listing files with and without filter
import cythonbuilder

print(cythonbuilder.cy_list())  # without a filter
print(cythonbuilder.cy_list(target_files=['some_name.pyx']))  # with a filter
  1. Build with and without optional build arguments (cleans automatically afterwards)
import cythonbuilder

cythonbuilder.cy_build()

found_files = cythonbuilder.cy_build(target_files=['some_name'])
cythonbuilder.cy_build(target_files=found_files, include_numpy=False, create_annotations=False)
  1. Clean
import cythonbuilder

cythonbuilder.cy_clean()

found_files = cythonbuilder.cy_build(target_files=['some_name'])
cythonbuilder.cy_clean(target_files=['some_name'])
  1. Setting debug level for verbose logging
import logging
from . import logger

logger.setLevel(logging.DEBUG)

In-depth, step by step Explanation

I've written a few articles that explain why Python is slow, why Cython can be a solution and how CythonBuilder helps us develop fast code easily:

Release files for cythonbuilder 0.1.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cythonbuilder 0.1.24
File Size Uploaded
cythonbuilder-0.1.24.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cythonbuilder 0.1.24
File Interpreter ABI Platform
cythonbuilder-0.1.24-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / cythonbuilder-0.1.24.tar.gz

Download URL cythonbuilder-0.1.24.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d740d7efbc4f8f0612e64dfadf1a4e99a7031a43dbecfa6de054ffaaef1fbc92
BLAKE2b-256 checksum
How to use checksums
30a7f8cd045f2245267624d9c8e9321c4445865fda3740d38ca66069824b4494
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.29

Release files / cythonbuilder-0.1.24-py3-none-any.whl

Download URL cythonbuilder-0.1.24-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa5e7a697be568c0f072039904ed39536b0e7d69074151e069f086be7fc06318
BLAKE2b-256 checksum
How to use checksums
2aeebf9d8ff26e22b4b05515f9143ee36f4b2fe7e6202e645b392c1f9500f9c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.29

Release history Release notifications | RSS feed

This release

0.1.24 This release

2 release files

0.1.20

2 release files

0.1.16

2 release files

0.1.15

1 release file

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page