Skip to main content

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.

Project description

SWIG Python Distributions

PyPI

A project that packages SWIG as a Python package, enabling swig to be installed from PyPI:

pip install swig

or used as part of build-system.requires in a pyproject.toml file:

[build-system]
requires = ["swig"]

PyPI package versions will follow the major.minor.patch version numbers of SWIG releases.

Binary wheels for Windows, macOS, and Linux for most CPU architectures supported on PyPI are provided. ARM wheels for Raspberry Pi available at https://www.piwheels.org/project/swig/.

SWIG PyPI Package Homepage

SWIG Homepage

SWIG Source Code

SWIG License: GPL-3.0-or-later with portions under LICENSE-UNIVERSITIES (see LICENSE-SWIG for details)

Installing SWIG

SWIG can be installed by pip with:

pip install swig

or:

python -m pip install swig

Building from the source dist package requires internet access in order to download a copy of the SWIG source code.

Using with pipx

Using pipx run swig <args> will run SWIG without any install step, as long as the machine has pipx installed (which includes GitHub Actions runners).

Using with pyproject.toml

SWIG can be added to the build-system.requires key in a pyproject.toml file for building Python extensions that use SWIG to generate bindings.

[build-system]
requires = ["swig"]

License

The code for this project is covered by the Apache License, Version 2.0. Source distributions do not include a copy of the SWIG source code or binaries. Binary wheels are covered by the SWIG license (GPLv3), due to their inclusion of a compiled SWIG binary and library files.

SWIG is distributed under the GNU General Public License v3 or later with portions under the file LICENSE-UNIVERSITIES. For more information about SWIG, visit http://www.swig.org

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

swig-4.2.0.tar.gz (27.3 kB view details)

Uploaded Source

Built Distributions

swig-4.2.0-py2.py3-none-win_amd64.whl (2.5 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

swig-4.2.0-py2.py3-none-win32.whl (2.5 MB view details)

Uploaded Python 2 Python 3 Windows x86

swig-4.2.0-py2.py3-none-musllinux_1_1_x86_64.whl (2.5 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ x86-64

swig-4.2.0-py2.py3-none-musllinux_1_1_s390x.whl (2.5 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ s390x

swig-4.2.0-py2.py3-none-musllinux_1_1_ppc64le.whl (2.6 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ppc64le

swig-4.2.0-py2.py3-none-musllinux_1_1_i686.whl (2.7 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ i686

swig-4.2.0-py2.py3-none-musllinux_1_1_aarch64.whl (2.5 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ARM64

swig-4.2.0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.9 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ s390x

swig-4.2.0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.0 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ppc64le

swig-4.2.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ARM64

swig-4.2.0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.9 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.5+ x86-64

swig-4.2.0-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl (1.8 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.5+ i686

swig-4.2.0-py2.py3-none-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

swig-4.2.0-py2.py3-none-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

swig-4.2.0-py2.py3-none-macosx_10_9_universal2.whl (2.6 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file swig-4.2.0.tar.gz.

File metadata

  • Download URL: swig-4.2.0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for swig-4.2.0.tar.gz
Algorithm Hash digest
SHA256 aae1c50f3fcfdcd647dbbfdd49f2f8c416e3e8b573fb33002e8c64318cdab883
MD5 4078ce68f5b05b0735edbe58767542b8
BLAKE2b-256 65cca99b3fb039d7514997341856b0b696c1cf15f53289f0c6b43ba7b6361510

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: swig-4.2.0-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for swig-4.2.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 423daa17c9f9d83cafbfeeb7d7e99ac4c68bf4be8f138de9f7553ea3b57ba51d
MD5 fbd62a9998bba7ce4df40ad177689dac
BLAKE2b-256 44ff268ffa254e391886286b39c614132894894b4b8d2c70ddb83a2f339039ee

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-win32.whl.

File metadata

  • Download URL: swig-4.2.0-py2.py3-none-win32.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for swig-4.2.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 f9468a56baf775881f7f118ab374b8205ebb313648360badd0fdb525341f3b18
MD5 2d67c6a2e7402091074b2033f0976b00
BLAKE2b-256 a7283ea88779022fd1b7d66f20ff0061dd41530f60d3225cf05f2bc9ddfde255

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 835223ef2a01a1101d4ee2418bd8d6ca41871b3804dd15c1a80820d04b64f895
MD5 cdba274cbe9cfb567bc0c283103c4a7b
BLAKE2b-256 9d9aa9a3a08cec81c71962b4f548b0d81ec9ee1e406cd30107d387dbe75d450d

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-musllinux_1_1_s390x.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 0c017ec435b384fa835ab7ed5a9da3b0cd0028ca4d421cea6d8731c71336eaa0
MD5 2ecbc62204d57b4ecaa3b03c19e67201
BLAKE2b-256 a755e6180c9847cc6b328287c0c4bb54d4ccb88661c494dd6c54dd877e1532da

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-musllinux_1_1_ppc64le.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 f745434b8e6fdc53d064c579b712609324cbebff35af58dc35c7306491f06071
MD5 932991fe05e048f677e4eea807af2851
BLAKE2b-256 912becd780205731a5dde2f37a030256e1427787add956719d62805c56c275c0

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 7bd7341ee6d595b9b0fa5913acd0f01ad067ec674c008ca3d890de8be9744a90
MD5 a3f71f4d4826332964b969b10ab53bcb
BLAKE2b-256 d8008b9ef3b79b7c44bae4f1de8a787ccc0e3ca2aa7cb60cdb0732d4c4786017

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 5efa7a0c068a441d873ab9522b053a0f284b8beed1dfe94d6bdd2eed9f295439
MD5 57c786bb38806b8fe7f348e02b137ef4
BLAKE2b-256 608a9cc2ac8543256a5a7c7187fc76703882d99c588772b90b3ab4b6bf991303

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 1e930eecd1950291adbdb4a56436a9b37e0849c937ce20ee685db6b194e2415b
MD5 2f646d372435bb13a910941f4d2d671a
BLAKE2b-256 1fe273e438f5d281e85fa0de75c1d8275f0c5908e24b0aaa1e8379a2810e54a9

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 22f9d31ca1ce12332fba79365aa2584507aa5f679625b500a6cc1614589a9c28
MD5 b743d0ebb45bdbe5325d7953cd4f0b1b
BLAKE2b-256 4edc573b134cf249ed39af338ce13fb905b02501d0ec8dd63e79e7c491d70b14

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b0c9290a6387ae23f05c278a34b0b8c62989d78a399c12aa870f22ed872d1499
MD5 21f7298bb735ce009ac3c52cbfdcc082
BLAKE2b-256 a4ea93e18127f89ec0d5d985500adb081cc5a65f6542ef65f8e2531b74327c30

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 220f9a8dff867a5458996945d8f20d2c1714a24cc7f07b314868a6a3edd7fdfc
MD5 aed2ad6b214b7cb44832cdbf3c5567e9
BLAKE2b-256 8c3b48dac996bf5acedb5a7a88399e90fde20266c7a84cab9836d820d9588821

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 65beb63578bc14ae1055f3e9374657585cc0712a3ef482d62dba9af4cbbef0e8
MD5 0751076954b51ebf240fa11898b688eb
BLAKE2b-256 76c792a2d6a2b56e32b67c8127689bc1650ca921cf52cebafb6bdb282c9ff5e2

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bfc54dd408858bb8f509bf4360dabc00a50c7cf04db38a58235f0d61f665392
MD5 b0de586d8af07fe2d3945e197ec4bd76
BLAKE2b-256 8d234585a55ce170a8ce883171630b312c87f44d122f93eb22ed39ed5d613833

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 071c7a3af61c2c69d1e911c5428479a4536a8103623276847d8e55350da8cf05
MD5 060ca65b89e8531e9dabab8c64815c73
BLAKE2b-256 bcfd95ab95ada7a0b73972cf5ee52d9dbaa77018117d9033c17ae9238ee50a61

See more details on using hashes here.

File details

Details for the file swig-4.2.0-py2.py3-none-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for swig-4.2.0-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 71bf282fb30aa179b870e29c8f4fe16b3404e8562377061f85d57a2ec1571d7c
MD5 be714e731641e6f5068764d6c7c79019
BLAKE2b-256 09796c5bfaedf3c112c1bab3ff870dea89da653f13aef284178d97b15bd04570

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