Skip to main content

embed inline C / C++ source codes in Python

Project description

Travis CI PyPI Version Python Versions

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

Usage

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)

Install

pip install inline
git clone https://github.com/manicmaniac/inline.git
cd inline
python setup.py install

Project details


Download files

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

Files for inline, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size inline-0.0.1.linux-x86_64.tar.gz (2.9 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size inline-0.0.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page