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.

Source Distribution

inline-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

inline-0.0.1.linux-x86_64.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file inline-0.0.1.tar.gz.

File metadata

  • Download URL: inline-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for inline-0.0.1.tar.gz
Algorithm Hash digest
SHA256 824991800a5205f3036369dc8acd226f76109368fe35070a4aa8488b991b9709
MD5 861ed47a9d55cdefb439819e6abab74b
BLAKE2b-256 e15a5a500177bedd3a610c022c1a9e5d14979163a030f87ece1383076b0f00c3

See more details on using hashes here.

File details

Details for the file inline-0.0.1.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for inline-0.0.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 1ee74b061e029236874c72fd7b83f9a9794c214a65bb2b14f30f46b7e7498b0b
MD5 8109c8381c0e573b8c947f5832f775a7
BLAKE2b-256 73c7b0fa21f2a653dcb6fd393f4d52a267562bc368206d24fa78fab0d5fe5882

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page