Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

embed inline C / C++ source codes in Python

Project description

Travis CI PyPI Version Python Versions

Embed inline C / C++ source codes in Python.


import inline
c = inline.c(r'''
int add(int a, int b) {
    return a + b;
c.add(40, 2)
import inline
cxx = inline.cxx(r'''
extern "C" {
    int add(int a, int b) {
        return a + b;
cxx.add(40, 2)


pip install inline
git clone
cd inline
python install

Project details

Release history Release notifications

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
inline-0.0.1.linux-x86_64.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Dumb Binary any
inline-0.0.1.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

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