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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

swig-4.1.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for swig-4.1.1.tar.gz
Algorithm Hash digest
SHA256 7507e9ccd394a84dc080896277f72fda8393fa122e2e194f47f32fbf3a4cd564
MD5 9993d279856e26e9ea71cc0f8c304e37
BLAKE2b-256 985b9e48efcb198880d482d109652e44a1d3fb30eb7db98dfb7d3dd5c36ed787

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swig-4.1.1-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.2 CPython/3.10.8

File hashes

Hashes for swig-4.1.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 20a00158ddea0c11ce3535f5b9ddd808acdeb4918c89884fba6a697a0e21c33f
MD5 e2f9387a16143adafab9eb00cfb676af
BLAKE2b-256 a124cd10c28d32f6d3248324e6a0644ddd5cd3a3c24ae852180e2ac4310dc016

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swig-4.1.1-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.2 CPython/3.10.8

File hashes

Hashes for swig-4.1.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 bc753a7417a0a232fc34add810d7e46e1c78f49342f704a1a38a5ac920de6ca0
MD5 209163f61a4b99cbe73d6ac97476a514
BLAKE2b-256 5fd66d1b6bc86965736110df7145d83191f2410fb7cd29978490d222937e13af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 5df85ef91652d928fa2c45c4956def2ae3beae0957013c559152bb0da6643f4b
MD5 799eef26cad10374f3b915e00d7062c9
BLAKE2b-256 bd461f3d8a2a1c1012d90ccab308796e1ff129dd60ad091814bf845154566436

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 32f91c83ed5cb09b80ef35c38aedbb80bd495d18716e6ca7ff2f9ec1f39ad8bc
MD5 8cc1a30199d9845cb13dbb7f9041c505
BLAKE2b-256 2520b22c4f6c782d7bcd92d9349fe46e7d0604c272c541f9231673edcc83f346

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 c51a5d9d6791151a42bcf5524ab33ace6c206d8fa874f75961e91649ba5adb16
MD5 004b5aeef118641d96629c95a6286bf5
BLAKE2b-256 587f419bd5b7b93a0e072d30ebf5a6cdbb7a49315d4b68418d28a7ece4c8a775

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 1f8d43e6b29d6024374c4bcafa88cb5149f3e335d13db2556829d94dad1178eb
MD5 98e10c728c56b609cba8d55fddb0d2f2
BLAKE2b-256 a6fd9f2229456367a702a4ac82fcbd4d7818262df9d78008121069cddea13c9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 326a1e68dc5531f1ccb16d314d33afb8c964294d14111912ef069e90573c0b2a
MD5 bcadbbef5c0de4533fd11619682e6ca5
BLAKE2b-256 3ba4c0d13c0f429a3e68ccd5f7d572a56f69a2d4b5a4507cb350061858a4dc8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 9ff3aa551c42aee4170d42667b11f55bdd2ec43532717b03e6a10b97604b438c
MD5 e1131b9cfb3ddbc9ec61ce41df043c59
BLAKE2b-256 6c405cbd83c56da4d5f5d17311d1141bddf1c1d3741d413174802b0be5a52809

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 d0bb43aecb5043be8cabd94e391b7c4eed2b900e2183b86be4f9d37da13dc43e
MD5 4164dbdcce07afb41ed3dff1dc33a7f2
BLAKE2b-256 4d17f7a7f6b1ba0048c76f8a80911d294966ae9c534ec8002f443b308aa02742

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6eb403545dbe2e16a612abc7cfce5e29da2ef9b2e81944fb7669fdd3a22810f4
MD5 6a204933f419c3c1f1822ec1eebfe303
BLAKE2b-256 ce48508d3555d9e0a37d312b9c177ed7d2a40084cc6f7ed31d4e4969cffb3b68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3f9da5564718bb81234dd497dc265025b0456c6c9378dfa8206cda56a7fa65ba
MD5 5fbc54318086954a15fde81de70963ae
BLAKE2b-256 c38aba4b178267a4557adde824a6e53b74006e7852ebba8b0fab9f31dcf1e30b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 e669f7d82e34a866aef1c7d7c2e9d05c5dad033fd7094c02898a85d1bc5905d7
MD5 c9af932a698fb481508208fa47b0c012
BLAKE2b-256 69bb115d49f76bb87849df11c3aa66b22f889b8d1ef940115c2a5ff457130eb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cee47d9f21bc34fcc0bcb529795313041e589bf4b69fc7bffa1ef325dae0972f
MD5 30d96f9dc2ccc83491ecad3cb7c0efdc
BLAKE2b-256 562e094303ec29243111a81b26bb91d0d2692db05159451416490acc8b33fca1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fe9b0a49190c484816a5ad020a88fa35b42628fb6c5f3d4a6f3da5f3bb70b31a
MD5 4fe7cc0cb0edf1705439d9ff852d480f
BLAKE2b-256 42895c9a68b6090d329bd200b0302cc955106ca098809c475c27a930903ad07e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.1.1-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 42c6c203dba1c1afa60c8e3c6a4da7f39ce95a44bf0bf5b0f5cb16aa6caa51fe
MD5 94b5a6aabbbdfbf5badd8536295a86c6
BLAKE2b-256 1ebaeade8b150839e2449bd1699f0ee24bd755abf12872a85c4855faf07df58a

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