Python extension module generator for C and C++ libraries
Project description
What is SIP?
One of the features of Python that makes it so powerful is the ability to take existing libraries, written in C or C++, and make them available as Python extension modules. Such extension modules are often called bindings for the library.
SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries. It was originally developed to create PyQt, the Python bindings for the Qt toolkit, but can be used to create bindings for any C or C++ library.
SIP comprises a code generator and a Python module. The code generator processes a set of specification files and generates C or C++ code which is then compiled to create the bindings extension module. The sip Python module provides support functions to the automatically generated code.
The specification files contain a description of the interface of the C or C++ library, i.e. the classes, methods, functions and variables. The format of a specification file is almost identical to a C or C++ header file, so much so that the easiest way of creating a specification file is to edit the corresponding header file.
SIP makes it easy to exploit existing C or C++ libraries in a productive interpretive programming environment. SIP also makes it easy to take a Python application (maybe a prototype) and selectively implement parts of the application (maybe for performance reasons) in C or C++.
License
SIP is released under the GPL v2, GPL v3 licenses, and under a license similar to the BSD license.
Installation
SIP source packages, and Linux 64-bit wheels, can be dowloaded from https://www.riverbankcomputing.com/software/sip/download/.
Wheels for 32 and 64-bit Windows, 64-bit OS X and 64-bit Linux can be installed from PyPI:
pip3 install sip
All wheels include the sip extension module but do not include the code generator.
Documentation
The documentation for the latest release can be found here.
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 Distributions
Built Distributions
File details
Details for the file sip-4.19.2-cp36-none-win_amd64.whl
.
File metadata
- Download URL: sip-4.19.2-cp36-none-win_amd64.whl
- Upload date:
- Size: 49.4 kB
- Tags: CPython 3.6, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f63534e80b803e5fb3bb236a26596453c8daf2d9a8b9bfb0b4d1b02f43de59ab |
|
MD5 | 524c49ffb1d8c0ee1eeb591e8bce27b6 |
|
BLAKE2b-256 | db07d17e08b8e18e021e6614622ef73d6907cc272f053373e6719e2dc1a2b7c4 |
File details
Details for the file sip-4.19.2-cp36-none-win32.whl
.
File metadata
- Download URL: sip-4.19.2-cp36-none-win32.whl
- Upload date:
- Size: 41.0 kB
- Tags: CPython 3.6, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b532f9dee0f485b7024faa2e7029406cbb5b16b07f0cd05ab09dd4ebd6220a7 |
|
MD5 | d591b1f5e3c40dd850b046ebce98103c |
|
BLAKE2b-256 | 53e917b568b0b8cc388fe2987d8ad2904d39b06be66f069043c8c1b080d53896 |
File details
Details for the file sip-4.19.2-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: sip-4.19.2-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb6ba712350dc13de1ebfdc795a1e558fec5aab0e55801f35f3823ff31814a8 |
|
MD5 | 9b698fc5e19adeafabdbfc2a05e4d196 |
|
BLAKE2b-256 | 7e55903260dab5a0bd60e43377f9da9df8ad952684aa75a74c85d16ca1bdc1c4 |
File details
Details for the file sip-4.19.2-cp36-cp36m-macosx_10_6_intel.whl
.
File metadata
- Download URL: sip-4.19.2-cp36-cp36m-macosx_10_6_intel.whl
- Upload date:
- Size: 48.9 kB
- Tags: CPython 3.6m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8931137b1832f11ea1a7108289315e01080331d4bd2d3dd15b7d62e8a69b7c1a |
|
MD5 | 6d4fb4fd3ff4022a53b564b737462a26 |
|
BLAKE2b-256 | 22458af39cdd11fce2029c183caf0447d2c498aa6fe4bd0ade0cfc9297b5ae4f |
File details
Details for the file sip-4.19.2-cp35-none-win_amd64.whl
.
File metadata
- Download URL: sip-4.19.2-cp35-none-win_amd64.whl
- Upload date:
- Size: 49.5 kB
- Tags: CPython 3.5, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d11c922bded02fd669801ff8e66be522799d47205879d0e74df963dc779d26d5 |
|
MD5 | 15d337f6696b82543350afbc9ce831e1 |
|
BLAKE2b-256 | fb8982da2474d0e2183d77a87d217589b55366d60f1101ed9abbea5c0f8fc210 |
File details
Details for the file sip-4.19.2-cp35-none-win32.whl
.
File metadata
- Download URL: sip-4.19.2-cp35-none-win32.whl
- Upload date:
- Size: 41.0 kB
- Tags: CPython 3.5, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78561cde6bf71253a959f4c7da60800adfaf1172739c677e79e2a76a9862b2cb |
|
MD5 | ac81c46ada522c37d65b148824fdfa2a |
|
BLAKE2b-256 | 17ec8651ca0c24595761c9b25f9fee2f3487c836eee286093e33294cae6c9924 |
File details
Details for the file sip-4.19.2-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: sip-4.19.2-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b93329313ec0264a095d380a280b36e5739eabccb420610b705f25dd0c51d159 |
|
MD5 | ad58ce7890e12285077e928982b2c96a |
|
BLAKE2b-256 | 195ac50a0ccd211f864972da0f2e101722508ffb4e008347fd2a56a99beab9d0 |
File details
Details for the file sip-4.19.2-cp35-cp35m-macosx_10_6_intel.whl
.
File metadata
- Download URL: sip-4.19.2-cp35-cp35m-macosx_10_6_intel.whl
- Upload date:
- Size: 48.9 kB
- Tags: CPython 3.5m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34e0966ce35e90ced5ece96648646491012bb75f6212214930d110c2b9870856 |
|
MD5 | eb42e9975cae2b936ecc980b9a3266ed |
|
BLAKE2b-256 | f98c23d88c8e4d457031111b70ec25bf97844776ec16cfd4688f318dcaeba5d6 |