Skip to main content

A Python package for executing C code

Project description

My C Library

My C Library is a Python package that allows you to execute C code from within Python. It uses a C extension to provide fast execution of C code, making it suitable for performance-critical applications. Url code: https://github.com/hqmdokkai/cpylib.git

Features

  • Execute arbitrary C code from Python.
  • Lightweight and easy to use.
  • Fast execution due to native C performance.

Installation

You can install the package using pip:

pip install cpylib

Usage Here's a quick example of how to use the library:

import cpylib

#Execute C code to print the sum of 5 and 1
cpylib.c("printf(\"%d\\n\", 5 + 1);")

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

cpylib-0.2.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

cpylib-0.2.0-cp38-cp38-macosx_13_0_x86_64.whl (6.3 kB view details)

Uploaded CPython 3.8macOS 13.0+ x86-64

File details

Details for the file cpylib-0.2.0.tar.gz.

File metadata

  • Download URL: cpylib-0.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cpylib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a0c725c6210c1556c8f8084b37eacb65e312033a3dff3a334417761720dd814c
MD5 bee6ecb0153332cd985d7e6c84a83f1b
BLAKE2b-256 d5e6ece0aa9da2427291fd224be0cee3b6d1816fa027a19b685fec7caaf39f61

See more details on using hashes here.

File details

Details for the file cpylib-0.2.0-cp38-cp38-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for cpylib-0.2.0-cp38-cp38-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ea5fff2641726ab3b3f70933aee39cc2f7732f6c135173e3bcd9de93da27dedd
MD5 4cbd47321212a55fff34c42ee3a769fe
BLAKE2b-256 ec4cf8183555028e31d9232d9f859d1b3b63c5695c05659b309bbcf7d294141e

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