Skip to main content

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++.

Author

SIP is copyright (c) Riverbank Computing Limited. Its homepage is https://www.riverbankcomputing.com/software/sip/.

Support may be obtained from the PyQt mailing list at https://www.riverbankcomputing.com/mailman/listinfo/pyqt/.

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

sip-4.19.7-cp37-none-win_amd64.whl (51.3 kB view details)

Uploaded CPython 3.7 Windows x86-64

sip-4.19.7-cp37-none-win32.whl (42.7 kB view details)

Uploaded CPython 3.7 Windows x86

sip-4.19.7-cp37-cp37m-manylinux1_x86_64.whl (66.4 kB view details)

Uploaded CPython 3.7m

sip-4.19.7-cp37-cp37m-macosx_10_6_intel.whl (51.2 kB view details)

Uploaded CPython 3.7m macOS 10.6+ intel

sip-4.19.7-cp36-none-win_amd64.whl (51.2 kB view details)

Uploaded CPython 3.6 Windows x86-64

sip-4.19.7-cp36-none-win32.whl (42.7 kB view details)

Uploaded CPython 3.6 Windows x86

sip-4.19.7-cp36-cp36m-manylinux1_x86_64.whl (66.3 kB view details)

Uploaded CPython 3.6m

sip-4.19.7-cp36-cp36m-macosx_10_6_intel.whl (51.2 kB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

sip-4.19.7-cp35-none-win_amd64.whl (51.3 kB view details)

Uploaded CPython 3.5 Windows x86-64

sip-4.19.7-cp35-none-win32.whl (42.7 kB view details)

Uploaded CPython 3.5 Windows x86

sip-4.19.7-cp35-cp35m-manylinux1_x86_64.whl (66.3 kB view details)

Uploaded CPython 3.5m

sip-4.19.7-cp35-cp35m-macosx_10_6_intel.whl (51.2 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

File details

Details for the file sip-4.19.7-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 92413edcb4fea75ebd1f8142c882dc5db398025eb8a0a273385838fd791de73c
MD5 3e6fd8dd9f67f993fd599ab5e5dd76c3
BLAKE2b-256 6813f6c0712578ed53298bd95e8441fe94b609f5e0972b1bc2175ca619a2d372

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp37-none-win32.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp37-none-win32.whl
Algorithm Hash digest
SHA256 18350ebf82beaef6a73d2c14320f19961242ed424670407df6fd5a9b65f0e7fc
MD5 bec03361e91142df6f466878afd91c73
BLAKE2b-256 ded59ba3d7e06ffae9bae831da6275c99efcdc8f39dcfdd9f6264c4b3029f549

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2120e9d713120687558b6699cf5ff6a8f7b070776b19d6c7fc96fc64ea8ca056
MD5 2c29713b74336b06bd8dc6fe5ce35e19
BLAKE2b-256 1e90ee7959af131a4507f3e83ff66778f812f415df7fe3c234c4ad610f999e57

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp37-cp37m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3b45eecf6f68a29f5629dc064079e919987b030628bb6614da7f4eefedbe145e
MD5 e19c9241dd30e97a0ecc5c4c1aee0e12
BLAKE2b-256 3ee406cbc790385c1606d511a6de783cf1a0f7664bb103330e52ba3df7b4599f

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp36-none-win_amd64.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 2db24e65c99b7d20a67fa461f6bc2e15bddb6cd5fde52e37d6609566d79a69a1
MD5 82526206ddbd9a82025d28c80decf991
BLAKE2b-256 c8ed13dfbd4bd9f173ff1e2037a77e9dd737e6ca9da00cbea96f86eba30650da

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp36-none-win32.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp36-none-win32.whl
Algorithm Hash digest
SHA256 ebea4619e9626e2eb197835049807c8173f11e2023b05140cbee4b274a91ef5e
MD5 b4564559f09682cadb0f8b41679a960f
BLAKE2b-256 a6e0014bc4c05153530a6659bb8b667e5c629c70ffc7c957f289899ae77b0bc1

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ab338095e32ebb2047b6184f1383c667c47b9822d7320fdfb93870567a972343
MD5 c70a5fee2f6766d20da89cb4452214cf
BLAKE2b-256 c0d639b2834458a79712c3423a8cf9c494ea90cb920747fcba347a6959c5fb96

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 248ecca386d4832138f6a044dceb0bfc38fb8503b7ffbfeb474073f56930144b
MD5 40a97cda57f8d1d947658f5e7f223aa9
BLAKE2b-256 f1e272b1a811bb4ae61978f60923833d23b544a3ca1f55b877a9de12a0a8d0fb

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 1c5a1ad409e97833a4a873fae5bcd7a365651f7372806992d03891082821bc41
MD5 4e5f7deb6cd52a08fc4df9a67de8d119
BLAKE2b-256 84e22b9f64e4dc25b0533b60c6e973fe3b4ed3725d77d7c96d92f66207e711b3

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp35-none-win32.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp35-none-win32.whl
Algorithm Hash digest
SHA256 beac2bc1b9457a693fb3122c797cad5678a168ecff6ccbad4aa3a9f1ff1a2d86
MD5 431e92019b89cfd738ccebfe7f153942
BLAKE2b-256 8c548a25e999ef9d388abaf88cabdcaac5d8c4b9a912834ec1c615d11c942790

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 776e169da554729f80337070348db49a6742d8aa317aec931a4d0f47b7ef535d
MD5 18ff4cb0a8268228e17c8667132d1534
BLAKE2b-256 65aa0ecb10b41090b2cd1a910d168aca4808f73b9c65d2ea7c25c852b942b2a0

See more details on using hashes here.

File details

Details for the file sip-4.19.7-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for sip-4.19.7-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 f31bb63e63a958f65887ae27f06e62af9f9cb818ba7456a99f78a5ec3082d3dd
MD5 c5c5aa0889f8fa6d9ef771e0d62adbb3
BLAKE2b-256 bf95cf8ccaffcb7fce73677e0cd0b84f74354fcda9842a591e7e710c5d1406c4

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