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

Uploaded Source

Built Distributions

swig-4.2.1-py2.py3-none-win_amd64.whl (2.6 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

swig-4.2.1-py2.py3-none-win32.whl (2.6 MB view details)

Uploaded Python 2 Python 3 Windows x86

swig-4.2.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.2.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.2.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.2.1-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.1-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.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.2.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.2.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.2.1-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.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.2.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.2.1-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.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for swig-4.2.1.tar.gz
Algorithm Hash digest
SHA256 cdbb1748132ce99defaf4ebf1736c457fb13788183264af28f17d0d477e109ba
MD5 b39362b201cf83274c2046775a248e51
BLAKE2b-256 c0e8cf1b7dd93e14ab4f82ca3d4a9cb66ac96f7410d0ed2f1518531001980269

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for swig-4.2.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2482156f6fba8a8a720246a95d203530834e3d8da981f904ef71c1a7e9d68efe
MD5 bcb946608d9a42fde3a0d06209039182
BLAKE2b-256 d0ef44fb7b4216530551460666286ec04424d34f4a25e8fba1cebe742a24e012

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for swig-4.2.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 41cbe797f6ba49fc600c629928e1afd2632be23bc7d1603543360234e1773dae
MD5 8ba59dd3b2b5048501357e9a0631aca5
BLAKE2b-256 2b8ba2c8fd13d3061c70bb01930da493b0fe554c996536984ef7a0090aae62f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 30bfb7d8f4bc6ae843c9f36825abfe1fbdadf0982cbb119af64da3f750c01620
MD5 8f34dfa538c030f56f60c9b473e92e57
BLAKE2b-256 b9a920252dd68e1d47431ea609169d1c7640bc853a5e9407640e1cf8649415b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 3b19337ab24aa5483bea5a36282e454c18ed03af1ada0efd92d02c1bea96dbd1
MD5 0b729f7a8ae41759a54dcbe518283243
BLAKE2b-256 e0bb33e71900440097054618aaae07777beb973da3c59d51628354e5ef440663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 23d2f90145b32e74f7386b5a99168ecd3000fad232530866c2b390325a39da19
MD5 c7ae56b68001c3cfa80fe21fb0d2e947
BLAKE2b-256 02d5913256f45b22cc9707ffa13d20162fbead02a46738a85bec2d4476c483a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 bfe68d1c8294632bc6e9a1be7abfb3daafce0794d8dfa94fbccd6326073124b8
MD5 f93d1c6888ba0266ba83709c23b16186
BLAKE2b-256 f6f1b55d122a279a5b4c724724a1f30ff5daea902a469e6c7dd8e223d67c5c3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 0cd1812ef95a806eec82ee74b601aa0afd616beffb4227afe090bdc12f690286
MD5 4e1bf5d20f29ad528e81d4ddcf9e1ad3
BLAKE2b-256 759baadca7f01912a62e04d07316ed443092610f57491c5c291cdba85d64fcfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 9f3482aadf1d6ce3122a84fcd854c32dd5031dd65dba5d5dd9f73deb7333c505
MD5 90072f2e9407a22cdf3c4d4d334135be
BLAKE2b-256 6d27a62e10d6ec982b694d554f3df1e5ce7e201025b01b1afc7f2ffc087bee8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 4f8931d0f33a91a611f084a26ecf1364845b5ff8b417db2b99cc8b8a4d8215e3
MD5 cfedbef0dd9c81d3d0ed39d6b3e25717
BLAKE2b-256 3038043059899e64cf7ddfa9eacb1336cc1e0c12ed36d3eba8c17f35a7ca73ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5c4d8e3c928d5efba698b4610a9292b51a0597958ced79506f76f102ac621184
MD5 e9bea5768dedbd7eeda322d23396b6cb
BLAKE2b-256 d0df6d4fe87a5cd07b31c064f0e3274b5688f94c5429d583bd4b7567cb1ea3a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c7b2db2ccff556dbfc88ef98773b3524b18bc4077ea1d7a5d7339c3a1f3f70dc
MD5 df51b406cde48e4da7443718b032af7d
BLAKE2b-256 2fdf11c14b2a71b0d94a226682cee3beaecf7cdb88cc20a4f276f5fc316b93e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 7ce1fd4518ca0a63b809177ed8e0ec11ab485f8ebb66752605c978b964e75b5b
MD5 2a03cad9e3b4c9a726a3ddd4da5b604d
BLAKE2b-256 34eb85f761d5be57261cd6a9baa593a4e682b30ff815082a181e1ec05d2b699d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f30b409d20b1e96f5432bf94e0106cf68596884b6da70323d5a21b8f43e3f3b
MD5 e929b6af7ae15b9b4e031f2f498f206b
BLAKE2b-256 63b1ec77501fc171c914207f7564292d597cd0de72546efe381f021423dff59e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5c8826b415d6feaca2bbf1f4bd0ff900d6dbb9ddd3b1850f95129b8aac1eb44b
MD5 b9d85b5c1e4a848222b62b87a823d4cb
BLAKE2b-256 c4be97195fd53bfb7780c75813b72e4f65a08a73ed32496804f4bb5dc2dbe4a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.2.1-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3b7389a1c86d39637b7364f11a1dd8cfb52b1ebba40a2356d2ded74498f4cff7
MD5 a33a0e811732997e12691048b55633d8
BLAKE2b-256 17e71834b83e9ef378a753109b716dfc8fdc6da2e42945ce86792b2ccebd9a80

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