CythonBuilder
CythonBuilder; automated compiling and packaging of Cython code
| Version |
|
|---|---|
| Package |
|
| Status |
|
| Stats |
|
| Social |
|
Installation
pip install cythonbuilder
How to use
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
With Commandline
Add -v (verbose) for more information
- Listing files with and without filter
cybuilder list
cybuilder list 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 src 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 src.cythonbuilder import logger
from src.cythonbuilder 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:
Release files for cythonbuilder 0.0.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cythonbuilder-0.0.19-py3-none-any.whl | Python 3 | none | any | Details |
Release files / cythonbuilder-0.0.19-py3-none-any.whl
| Download URL | cythonbuilder-0.0.19-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7a9579672da54d217d27eeae1c72fbb4b215932dfc2e0061496b57e3a1bc69c
|
|
BLAKE2b-256 checksum How to use checksums |
d0244b8c6015dc355f03b504d7cb4eaccec630e047ef7dfa8ed4a751b00f1943
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.1
|