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
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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file swig-4.2.1.post0.tar.gz
.
File metadata
- Download URL: swig-4.2.1.post0.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92c11267dd66ba5a3f3eab5d4a33f5b4766157b37898479ee2cfb352d9b71689 |
|
MD5 | d1b50f36d0d2723f45dab59c770322b7 |
|
BLAKE2b-256 | 7575a6a53f7ba9189de95f68702da9640198d051aea97643ca6fbad52f4d7977 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: swig-4.2.1.post0-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/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a234bbd400653faf4a742a6cbc40c993cb73bd493d7bd7783bbd428b32661a72 |
|
MD5 | fdc98db917e176ea9a45147dd8793b3e |
|
BLAKE2b-256 | 3a4c22107234973fe82572b515fc4a2857422d59772f88f136bd04b6726563af |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-win32.whl
.
File metadata
- Download URL: swig-4.2.1.post0-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/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c5865529061d48dc83a88d953ddc16515bb9083d5886e69547ef9a2c0df657 |
|
MD5 | fe93ca38f5834a5b9152ebd7be8417ac |
|
BLAKE2b-256 | a78c54cf297395d2c3ebcf584f06bf0562e357abb105c805031cc6fead74ad4b |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 2, Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82a0e0f85afef3db2f36ce02dbbb38e3797edf47091ca2941ee6325eb9fb693d |
|
MD5 | 4cdd8f417ac68e96f47540866ed566d1 |
|
BLAKE2b-256 | 7b2656035f8f44a03585a6b41a7d51ebea650cd29c9887b507fe77f1eb664708 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-musllinux_1_2_s390x.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-musllinux_1_2_s390x.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 2, Python 3, musllinux: musl 1.2+ s390x
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b86510c1de65c7029d1797c22ace20da0ec79c04908b8f7f38b60858fb5b48ac |
|
MD5 | 8c503475426c35a6b958abed348256cb |
|
BLAKE2b-256 | d50919d996f68cc55eafb28ea6b472e8e96c3872435d3393b6b2dbf2fae351cb |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-musllinux_1_2_ppc64le.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-musllinux_1_2_ppc64le.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 2, Python 3, musllinux: musl 1.2+ ppc64le
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1984af33541a967feb6c05409cfaf6a76fbd0c785cc68e2138696cded2fc156 |
|
MD5 | 23c29c33d37ec4daded1ea93fadf8a1e |
|
BLAKE2b-256 | 0ff64924387124f3428cb355f64e44737e9cec0fb46de3adf3ffebadb7400b22 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-musllinux_1_2_i686.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-musllinux_1_2_i686.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 2, Python 3, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebcc382cf1e276c3e88357689de51a7b088ac72a7b0db6c71edabab9aa91e0d8 |
|
MD5 | 30e63a672d8d2bfa9f3aafcff0ce109a |
|
BLAKE2b-256 | 056433e25e0fdfde53c017f0052e27f7f905970073d3cf8ada02d14e13e4da56 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-musllinux_1_2_armv7l.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 2, Python 3, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ebaf656ac7345dbf231d7019e9223619eeaf37885e8617afb01f6ceb746a125 |
|
MD5 | 5c131840ec7f14222e48c67a75e8aea5 |
|
BLAKE2b-256 | 204003233449e9e885f23074b6a3fbda076907ad4d7b5192f35b24878cb59136 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-musllinux_1_2_aarch64.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 2, Python 3, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4cace0447a70154fd0217b1fe85c835501ddc3f45fd60571a1c45fdca282891 |
|
MD5 | 8dc241172f5c615ddd4fd880624ee60d |
|
BLAKE2b-256 | a42073873cd67724a83e6898d6c72bb49383e938fd89972a427b3d75a5e62cc3 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63f5264b8381e30b61b8a4b4e0687826d2ec3bcfacbdec300eabf7d807eace44 |
|
MD5 | 3f6c675a5001bf507401e91c828e89b2 |
|
BLAKE2b-256 | 17f1ff3342a8371070d663b6071b6379e898bc5d8c8c00029fd43f40db93e19b |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb0f0e0d78fb5993d2765cc96b80fd66209ea43264836d5af5ecc82cdf8f992 |
|
MD5 | e19877657108249b7502af47fb905e7c |
|
BLAKE2b-256 | d8f3b3559e9ef3b9969978cf5689024b485860701099718f94d2f527e6c4e92e |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a124b2ea71e4986bde1b728497693ce709d9c949a3e9df8646a96e798ad72e54 |
|
MD5 | cc38bbd9974201910f60f740788ca39a |
|
BLAKE2b-256 | 847e975f290035b63aa2aceab2c67e33ee0bb0ef3d1c79d3e6a3613ef4ca6391 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf1d1887355b235e7e817b2c5f7195e5152c2355daa326a2b6e6e5e54bf47859 |
|
MD5 | 86df387abb4ea4619e94b5074dac34de |
|
BLAKE2b-256 | 1ef9b7608b87476cdfadb101ecbdc83f4aae4a418fac1f67f54d68b3d4af5770 |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ae629fcbb14ac6e00312fe19468e41fbbd7fa08398327db4543be2f05c2773 |
|
MD5 | 7287eb03a16b849e1ada5d47190066ab |
|
BLAKE2b-256 | 2954e5bb8a2d8ad353539390ccd2dc6484d64a8370157101d8d9c34441b2bf2c |
File details
Details for the file swig-4.2.1.post0-py2.py3-none-macosx_10_9_universal2.whl
.
File metadata
- Download URL: swig-4.2.1.post0-py2.py3-none-macosx_10_9_universal2.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 2, Python 3, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebb0bda0be53e58ccd3eaef1ea6bfb00fc645f590d4bc05157310414ea4f4824 |
|
MD5 | 8b4498637bb166e2ae9bd41ba4f642cc |
|
BLAKE2b-256 | 368b63339234bc1fba380a0acaec49942ae4c4956526be5411441825bb3c3403 |