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.1.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.1.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.1.0.tar.gz.

File metadata

  • Download URL: cpylib-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 ee2ae480956dc1f97d81d891de1a427029282841b5c1b3ee4fb7c04a55bf78f3
MD5 4c3d75525f33d91b7a10eee61888c4f0
BLAKE2b-256 a2523f72941882ec082b38e4e317019e94a330d0a417e2c1634b5802805d9427

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cpylib-0.1.0-cp38-cp38-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 be1a877cee30f738be29cf8c4c09ddd0214f2ded2c942c3b6aa150688caba927
MD5 300e5a35580dd80650c12520f4668dd8
BLAKE2b-256 34a378322ee64c8dac0279beb4ebb75f7a05f4776378e12784f85a499881d82e

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