The CMeRo compiler for writing C extensions in the Python language.
Project description
The CMeRo language makes writing C extensions for the Python language as easy as Python itself. CMeRo is a source code translator based on Pyrex, but supports more cutting edge functionality and optimizations.
The CMeRo language is a superset of the Python language (almost all Python code is also valid CMeRo code), but CMeRo additionally supports optional static typing to natively call C functions, operate with C++ classes and declare fast C types on variables and class attributes. This allows the compiler to generate very efficient C code from CMeRo code.
This makes CMeRo the ideal language for writing glue code for external C/C++ libraries, and for fast C modules that speed up the execution of Python code.
The newest CMeRo release can always be downloaded from https://github.com/6x-u/CMeRo. Unpack the tarball or zip file, enter the directory, and then run:
pip install .
Note that for one-time builds, e.g. for CI/testing, on platforms that are not covered by one of the wheel packages provided on PyPI and the pure Python wheel that we provide is not used, it is substantially faster than a full source build to install an uncompiled (slower) version of CMeRo with:
NO_CMERO_COMPILE=true pip install .
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cmero-1.0.0.tar.gz.
File metadata
- Download URL: cmero-1.0.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
561b54004304e77e888c4629b20d6834b37d9f1b8fcd1d708805ac2d09e1f1b8
|
|
| MD5 |
ed5bb32573229baa6cf881dae97da240
|
|
| BLAKE2b-256 |
5fba4a8ac6d3113ff806cf233f0d5f76b806bae35003d8236584a98c3dde7f61
|
File details
Details for the file cmero-1.0.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: cmero-1.0.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
893009b9fb8a83490deba0a5cb5ea27af50867775c71aa869d764cf298970190
|
|
| MD5 |
1099399f37bd6b918340ff2ee55925b3
|
|
| BLAKE2b-256 |
5a1d4e1d4336ed76c20547e97cb52d05169efffd85b60ab2c15a6b30489aecb3
|