Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

cythonizer

Cythonize one step faster

https://img.shields.io/badge/build-beta-brightgreen https://img.shields.io/badge/license-MIT-green https://img.shields.io/static/v1?label=Created%20with%20%E2%9D%A4%EF%B8%8F%20by&message=TechLearners&color=red

Introduction

cythonizer.py is a script that will attempt to automatically convert one or more .py and .pyx files into the corresponding compiled .pyd | .so binary modules files. Example:

$ python cythonizer.py myext.pyx

pip install cythonizer will automatically create an executable script in your Scripts/ folder, so you should be able to simply:

$ cythonizer myext.py

or even:

$ cythonizer *.pyx

You can type:

$ cythonizer -h

to obtain the following CLI:

usage: cythonizer.py [-h] [--annotation] [--numpy-includes]
                     [--debugmode] filenames [filenames ...]

positional arguments:
filenames         .py and .pyx files only

optional arguments:
-h, --help        show this help message and exit
--annotation      (default: False)
--numpy-includes  (default: False)
--debugmode       (default: False)
  • --annotation will create the HTML Cython annotation file.

  • --numpy-includes will add the numpy headers to the build command.

  • Compiler flags -O2 -march=native are automatically passed to the compiler.

Release files for cythonizer 1.2.0b3

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

Source distribution (sdist)

Source distribution for cythonizer 1.2.0b3
File Size Uploaded
cythonizer-1.2.0b3.tar.gz 5.5 kB Details

Built distribution (wheel)

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

Total release size: 10.3 kB

Release files / cythonizer-1.2.0b3.tar.gz

Download URL cythonizer-1.2.0b3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
24cfd0ed809b331879e67c458992aec64ee662ca5df213acf5f4d070411d2e12
BLAKE2b-256 checksum
How to use checksums
7e565edd6cc453495828996609d89a5fc60963854ee32c807aa09244edc21d77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

Release files / cythonizer-1.2.0b3-py3-none-any.whl

Download URL cythonizer-1.2.0b3-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28e2f78c57d6f36f212ff463b6ab26470704d158f9d1309e920738268fcb1567
BLAKE2b-256 checksum
How to use checksums
be7ad588f8b724519486069d92b41189cfb8a7dca6b4542453a8cc8853ee7b4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.2.0b3 This release

2 release files

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