Skip to main content

CythonBuilder; automated compiling and packaging of Cython code

Project description

CythonBuilder

CythonBuilder; automated compiling and packaging of Cython code

Version version
Package PythonVersion Platform License implementation
Status status DependencyStatus CoverageStatus
Stats DownloadsCount
Social tweet twitterfollow

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

  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
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
  1. 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)
  1. 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'])
  1. 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


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.19.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

cythonbuilder-0.1.19-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file cythonbuilder-0.1.19.tar.gz.

File metadata

  • Download URL: cythonbuilder-0.1.19.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.1 Windows/10

File hashes

Hashes for cythonbuilder-0.1.19.tar.gz
Algorithm Hash digest
SHA256 ecaf7c98f743a4e2831d893d550400e32cbac3f964b8ea3e3a37f80350d707d2
MD5 00b0edf4bd1c2799cf5387987350288f
BLAKE2b-256 29ec312b2ca88dddf42052adfe88f69df6691c6f817aa031dbc15fc9267771fa

See more details on using hashes here.

File details

Details for the file cythonbuilder-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: cythonbuilder-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.1 Windows/10

File hashes

Hashes for cythonbuilder-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 ac05c94dfa0bc92271b9fc86d48f38d43c5d39e9bcd7ab1f102b98355ead5bd2
MD5 2fc3aae53c129fdb2ebdc0ede6142f34
BLAKE2b-256 0fd53d1356b1ba6cb999d972d3935522f4d1a4aadbef7d2e71eab0b96ac80505

See more details on using hashes here.

Supported by

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