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.1.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

swig-4.1.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.1.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.1.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.1.0-py2.py3-none-musllinux_1_1_i686.whl (2.6 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ i686

swig-4.1.0-py2.py3-none-musllinux_1_1_aarch64.whl (2.4 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ARM64

swig-4.1.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.1.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.1.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.1.0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.8 MB view details)

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

swig-4.1.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.1.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.1.0-py2.py3-none-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

swig-4.1.0-py2.py3-none-macosx_10_9_universal2.whl (1.7 MB view details)

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

File details

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

File metadata

  • Download URL: swig-4.1.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for swig-4.1.0.tar.gz
Algorithm Hash digest
SHA256 597408250803c0ece10f33740fe747094de737923a63280f7a60579e548e56ed
MD5 d0462b17dde2587ef00a0ac6c200a4a1
BLAKE2b-256 dd1cafe56e40f0641893a311e6ad946c4e4b0fd00a4042990103533d1be838ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swig-4.1.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? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for swig-4.1.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b2967dceebcf8bc32f47af4f48b26663b5023f9f1f438de5a519f6766f2c6be1
MD5 950a5aef0deaff0dfec57e092a2e1b01
BLAKE2b-256 455379c415b855048e8c408444d70542a8ff0d2437f19171139cea3c55f5f33f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for swig-4.1.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 17c094114cb6680246acff364fafa332863206825ee66cf6c1587ea9bd3a7e30
MD5 e833012dfb053bbf82c23b619aaa01bc
BLAKE2b-256 73aa9c1da256b94852e778247d01fe1d1443a6117ae1e0d9120fb042d76137d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c531d3e0f578d03fe19d41197ac63929d395668cc6be31475ff9357c9498d9c2
MD5 c5585d3db697d5b96f88b7045deb61d6
BLAKE2b-256 60d302a880d94aaef3cf1009238963d08c94716615d1406969e824c88dbcf23e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 90400bb4eccdd6bdac94d5bd87d4e29646b15f2fca1a5a4bb62f7c5c9f156f65
MD5 a7640cd2921c9e9fe98a1621a8bcc2d7
BLAKE2b-256 c6ed0093cce441a00b59a39dbd443cd64b1efbfe7c40576495ec396cea606142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 8fe238631e20aba9b2b065ddfb77683f2277534a06e15daf5e59911292249cf7
MD5 340f1bf5beb79a9eac99ae6fc1275977
BLAKE2b-256 1a28d35bb7c1d34ca819285402aca5df8723310cb5ea9b7781b23897467f080d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 6f248264e75a37283cc54cd4fd680edae364941bc66ebcc10ae64416acecd310
MD5 8fa777097c4167d4a4216c67be384b90
BLAKE2b-256 c2554270b9f24e535b5c4913e7caa09eb855c3bdf99ed01648831238100ddb07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 f57c950280d71d4709da447676ad2e795ccc5ccb288941c4d635a63966777e3d
MD5 81cc7ca5589f6be4aa81aab21d264842
BLAKE2b-256 6b56d9c8b9c21df48fa3811875470ac297ffe602378b5396648dbe5c90563dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 74149f9c0011d77d510d85b0c7520d09d2f0bccf8a09723bb21ed9807789f9f6
MD5 fe7c6790d7ca25f0faed1f00774b65e6
BLAKE2b-256 716a845b24f119bfbc6029d26a27cf012fa0dcb9682a674f8d70f95c8860ccbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 36d2d522664f9dea673de70b0b0c278d48c4c9d1eeef761044862d27660f4d97
MD5 a6dad1e64c39d019709120c999734c60
BLAKE2b-256 2556aec0ca4808f25c88e4a13288c71594c772cdaa5c56ad82495a53218883da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8d32829152d2d0743d78e35f769cfd8e31a8c05f9070117136e39a4afdce3732
MD5 8c579637479a3dc517f9479bf43408b0
BLAKE2b-256 5d92b59696ffc904ffa203f562e1026a48ecee47c3e2481cbfd043437a1904ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1c9b5af2bc1b388e813c5dec595d9b8349898b69fdfb3ce915cea6c8e7b49e40
MD5 f5768539f44c5f155fac3c2a059ffc80
BLAKE2b-256 c84f4830f2d5a4f62a3d656f98b26f21a4399cdc16cb76e92e00bfc8394cd944

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 619b4825b87a80082a16be881633eb57d5d1b2ab73dfb8c85961029373283bf9
MD5 54f3c255eba2db52d488e15501dc3412
BLAKE2b-256 c7f8e0b9088df8c4e7002af75b0b03776072d29dedd2abca43414724b8044340

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b8ea353100cdbe0bf7ded7c4b25c2ef7837986792f7e5bf2d64540ff2dfeb27
MD5 faa2cc14224f07077bac921444a78e86
BLAKE2b-256 a7357b863e15430f8d515909898ab687ea876a66348b602ad7c3442db45cbab0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8ceaefea4efadf1240a667d663bf0b1fbe4ad25aeea54e469065fcad9ea4c1a4
MD5 12e3379d39bdf6a34f1a3d5ca7cc40fc
BLAKE2b-256 c2b757bac8f986bb21903be23c9a73aefbd27be9a3ba04df5a11c1c3248743a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.0-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8dbe67fffac71f916c6a7f2b7820a3270450ee4304fdb0de01c4c2e5edc6c7a1
MD5 6dbed6f1bbb357f708d8e2b25e41e940
BLAKE2b-256 29f74c509e98257f97ad626f0926f2b4357de5a22531e40d3a84cbcf15726944

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