Skip to main content

c2pip

c2pip is Buildozer for C -> pip. It takes any C header or source file, automatically generates the CPython wrapper boilerplate (PyArg_ParseTuple, PyMethodDef), sets up a robust pyproject.toml with zero PyPI validation headaches, compiles native wheels, and uploads them straight to PyPI.


The 3-Step Flow

c2pip init _math.h --name dan-pyda --author "Sampath"
c2pip build
c2pip publish

Features

Automated C Parsing & Wrapper Generation: Scans C headers/functions and constructs _wrapper.c natively. PyPI Proofing: Enforces strict metadata formatting (license = {text="MIT"}, proper classifiers, URLs, and a mandatory README.md) so you never fight a PyPI validation error again. Buildozer Simplicity: One tool to initialize, compile binary wheels, and publish.

Download files

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

Source Distribution

c2pip-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file c2pip-0.1.0.tar.gz.

File metadata

  • Download URL: c2pip-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for c2pip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1f3d598f4f4e6d2c97b67851731d3256ea6288a3685d503c4d0ece2985183cae
MD5 83322364edb89019007dbeb6754d8086
BLAKE2b-256 44ab28acb03ea5ea377fee44312690123c1037d579515a4c0074fbc9c9b0a30c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

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