Skip to main content

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 .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmero-2.0.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmero-2.0.0-cp312-cp312-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file cmero-2.0.0.tar.gz.

File metadata

  • Download URL: cmero-2.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

Hashes for cmero-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d9c5fcb57205bc7046a48a5127cf052a700b131c719c2f914588b2b4953222e6
MD5 558c16c7b8783f04aaa7d1f0d2b66ce2
BLAKE2b-256 da8ba800caa78d934b32104b2b7d5500c83938f86e20d54ad17b2984a457c32f

See more details on using hashes here.

File details

Details for the file cmero-2.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: cmero-2.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.8 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

Hashes for cmero-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3460858fb7e48c4a03529fe7a9af6aa65c7b6b77083297300800a45e4308b3dd
MD5 3813275a9dd320a3a9da9b43c9764a65
BLAKE2b-256 a7aea5ff64ba89bbdf58d625690ce17b611ca957a018c8a5da111b4e5050673b

See more details on using hashes here.

Supported by

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