embed inline C / C++ source codes in Python
Project description
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inline-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for inline-0.0.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ee74b061e029236874c72fd7b83f9a9794c214a65bb2b14f30f46b7e7498b0b |
|
MD5 | 8109c8381c0e573b8c947f5832f775a7 |
|
BLAKE2b-256 | 73c7b0fa21f2a653dcb6fd393f4d52a267562bc368206d24fa78fab0d5fe5882 |