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


Release history Release notifications

This version
History Node

0.0.1

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 Nov 19, 2015
inline-0.0.1.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None Nov 19, 2015

Supported by

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