Skip to main content

'# cexec — The C Executor in Python

cexec is a lightweight Python library that allows you to compile and run C code on the fly directly from Python.

✨ Features

  • Zero Dependencies: Uses only the Python standard library.
  • On-the-fly Execution: Compile and run C code in a single function call.
  • Windows Support: Optimized for 64-bit Windows systems.

🚀 Quick Start

Make sure you have Python 3.6+ installed on Windows (this package currently supports only Windows).

import cexec

c_code = """
#include <stdio.h>

int main() {
    printf("Hello from C Executor!\\n");
    return 0;
}
"""

output = cexec.execute(c_code)
print(output)

⚠️ Important Notes

· Windows Only: This package uses tcc.exe, which is a Windows binary. It will not work on Linux, macOS, or Android.

📦 Installation

pip install cexec

📄 License

This project is distributed under the MIT License. See the LICENSE file for details.'

Metadata

Release files for cexec 1.0.6

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

Source distribution (sdist)

Source distribution for cexec 1.0.6
File Size Uploaded Provenance
cexec-1.0.6.tar.gz 537.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / cexec-1.0.6.tar.gz

Download URL cexec-1.0.6.tar.gz
Size 537.7 kB
Tags Source
SHA-256 checksum
How to use checksums
995df99c531fbe5f7cb5c5e47cac51a38db4f13d9bb5b35cb407a0bec005f498
BLAKE2b-256 checksum
How to use checksums
a9c37ac3bb75e7897172b8876b0322c9bee71ba4a69170cb7d1b45ec51b1150c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / cexec-1.0.6-py3-none-any.whl

Download URL cexec-1.0.6-py3-none-any.whl
Size 556.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f1c8854d330cb47fbe87149dc0d3c9b70f3d8f02dd1cf0e05e409ee708afa76
BLAKE2b-256 checksum
How to use checksums
03e147a7d63dae371fb832a40537e2e1c5c6533f7b4c12417747ba39b8f4062d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for cexec 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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