Skip to main content

Compile and Link C-API modules on Import

Project description

🐚 About

c is a Python project providing an import metapath hook for loading C extension modules without prior compilation by a ‘’ script. It uses the sysconfig module to extract the necessary information for compiling an extension module.

Loadable modules are identified by the ‘.py.c’, ‘.py.m’, and ‘.py.c++’ suffix. Composition of multiple files is not directly supported, but preprocessor directives may be used in order to combine multiple files.


Typical usage:

import package.libfoo



Project details

Release history Release notifications

History Node


This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
c-0.5.0.tar.gz (6.0 kB) Copy SHA256 hash SHA256 Source None Aug 5, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page