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-cp36-none-win_amd64.whl (49.1 kB view details)

Uploaded CPython 3.6 Windows x86-64

sip-4.19-cp36-none-win32.whl (40.8 kB view details)

Uploaded CPython 3.6 Windows x86

sip-4.19-cp36-cp36m-manylinux1_x86_64.whl (62.6 kB view details)

Uploaded CPython 3.6m

sip-4.19-cp36-cp36m-macosx_10_6_intel.whl (48.6 kB view details)

Uploaded CPython 3.6m macOS 10.6+ Intel (x86-64, i386)

sip-4.19-cp35-none-win_amd64.whl (49.1 kB view details)

Uploaded CPython 3.5 Windows x86-64

sip-4.19-cp35-none-win32.whl (40.8 kB view details)

Uploaded CPython 3.5 Windows x86

sip-4.19-cp35-cp35m-manylinux1_x86_64.whl (62.6 kB view details)

Uploaded CPython 3.5m

sip-4.19-cp35-cp35m-macosx_10_6_intel.whl (48.6 kB view details)

Uploaded CPython 3.5m macOS 10.6+ Intel (x86-64, i386)

File details

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

File metadata

File hashes

Hashes for sip-4.19-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 91d55e8df8aae1aefc340a46540406ccffa3f1b9b240a3da46d11bdc8a705993
MD5 673497066d83c57c8ac08bd252592df5
BLAKE2b-256 4a3786cda76a49b767f3cf26a7b7fdb45e002d97a3ce4590e4f969b49d4eae92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sip-4.19-cp36-none-win32.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sip-4.19-cp36-none-win32.whl
Algorithm Hash digest
SHA256 2d313341fd7a3b066e7836d88bacd512ecc0450cc1373f670b2579cbb63173a3
MD5 b8744c002e0c10cca30679deddbe30ee
BLAKE2b-256 8ddbfe1df0c49ec794e4dab232142d835c1b57e2cf9f8ef101c34c840a420335

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sip-4.19-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 dc071ec30f8f90646b9ff150114d9ebb6df28f3018d01ff66fbd9f126b32c22f
MD5 e28fbe3b88e74571c8cef9ce0a4f13f5
BLAKE2b-256 b009c5cf0f69036909c11c4f6135295f1b3600578cd6fc65737eb66c0c88436d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sip-4.19-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 6b5ca1c2e498ee13ba26d2e6efc00cbff4c9bf01db949c1c4046e68c223b24a8
MD5 13ebef418c63b749f5754380c528cd40
BLAKE2b-256 516385c2fec6498e4fa792af2640598d2fc26c048274b8fa3735164bbdd2226f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sip-4.19-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 c2c44495e866ed87fb75289dea4589fd30b6b11af5e57512b55ee24eba843fa2
MD5 23c477a52b5ca5e0b5d27c61a49b59d8
BLAKE2b-256 c21e44017184f68c94d4fa3898ca15079868d083a05aac0d33f65cd8fed07dd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sip-4.19-cp35-none-win32.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: CPython 3.5, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sip-4.19-cp35-none-win32.whl
Algorithm Hash digest
SHA256 3718cf5b477318f59e1ff4b6ca105db3f6b0a1cc04d5ffea1bddbe7915418a76
MD5 bbdce529873b10204da7d9dd47281da5
BLAKE2b-256 4dbeb49d06739027998d06cf85c5e61cc6f87a6edd2c0ecf7496185f08f2730a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sip-4.19-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a215ae4714087f6538ba59ceb6ccab1dae252d193fa72adb88ac369ba747316e
MD5 66e157bcbc8ec92d6411d101209898fa
BLAKE2b-256 eecc6ebf2d859aa6f48e91ea6807d4b552135e03570b4ae8142d90d2dcb94405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sip-4.19-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 dcc4bfa88ae80147f5e2cdaacd7d5adae124ff1ea6eb8745031b1a40c82d5f07
MD5 a373aa77b45486eea34a6c3cbe97a18a
BLAKE2b-256 a1668aba2d5e0f8d6c7fc43a68d4d3b2971bb2228342d94e0516cd88ae5f0464

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page