CythonBuilder; automated compiling and packaging of Cython code
Project description
CythonBuilder: automated compiling and packaging of Cython code
Testing | |
Package | |
Meta | |
Social |
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
- Listing files with and without filter
cybuilder list
cybuilder list --files file1 file2.pyx
- Build with and without optional build arguments
cybuilder build
cybuilder build --include-numpy --no-annotation --no-cleanup
- Clean
cybuilder clean
cybuilder clean --no-cleanup
With Python
- Listing files with and without filter
from cythonbuilderr import cythonbuilder as cybuilder
print(cybuilder.cy_list()) # without a filter
print(cybuilder.cy_list(target_files=['some_name.pyx'])) # with a filter
- Build with and without optional build arguments (cleans automatically afterwards)
from src import cythonbuilder as cybuilder
cybuilder.cy_build()
found_files = cybuilder.cy_build(target_files=['some_name'])
cybuilder.cy_build(target_files=found_files, include_numpy=False, create_annotations=False)
- Clean
from src import cythonbuilder as cybuilder
cybuilder.cy_clean()
found_files = cybuilder.cy_build(target_files=['some_name'])
cybuilder.cy_clean(target_files=['some_name'])
- Setting debug level for verbose logging
from cythonbuilderr import logger
from cythonbuilderr import set_logger_debug_mode
set_logger_debug_mode(logger=logger)
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:
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
cythonbuilder-0.1.22.tar.gz
(12.7 kB
view details)
Built Distribution
File details
Details for the file cythonbuilder-0.1.22.tar.gz
.
File metadata
- Download URL: cythonbuilder-0.1.22.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.1.0-26-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5121abc6643746c62bf256f5068b378b0f29301343a5ce9fedd74f1cd8f6724e |
|
MD5 | b8f04db4c8fae67b34044c05478d7fd2 |
|
BLAKE2b-256 | 1bb053440f4ba09b77473abb4205aaeab2777008afb3d9f922c9ba25a6e471fb |
File details
Details for the file cythonbuilder-0.1.22-py3-none-any.whl
.
File metadata
- Download URL: cythonbuilder-0.1.22-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.1.0-26-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4d4cbf18c2fad1bd2c16f959167db254a6914d0e6f838f7ed2f8006d8d553e3 |
|
MD5 | 10b956e56158547a78c01e82ea573d07 |
|
BLAKE2b-256 | dadab03e8328afcaa6ea100528db957e82ae885eff762978ade3968b47246d1c |