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

Uploaded Source

Built Distributions

swig-4.0.2-py2.py3-none-win_amd64.whl (2.3 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

swig-4.0.2-py2.py3-none-win32.whl (2.3 MB view details)

Uploaded Python 2 Python 3 Windows x86

swig-4.0.2-py2.py3-none-musllinux_1_1_x86_64.whl (6.1 MB view details)

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

swig-4.0.2-py2.py3-none-musllinux_1_1_s390x.whl (6.2 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ s390x

swig-4.0.2-py2.py3-none-musllinux_1_1_ppc64le.whl (6.1 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ppc64le

swig-4.0.2-py2.py3-none-musllinux_1_1_i686.whl (5.6 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ i686

swig-4.0.2-py2.py3-none-musllinux_1_1_aarch64.whl (6.0 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ARM64

swig-4.0.2-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (4.7 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ s390x

swig-4.0.2-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (4.8 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ppc64le

swig-4.0.2-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ARM64

swig-4.0.2-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.7 MB view details)

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

swig-4.0.2-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl (3.6 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.5+ i686

swig-4.0.2-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.0.2-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.0.2.tar.gz.

File metadata

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

File hashes

Hashes for swig-4.0.2.tar.gz
Algorithm Hash digest
SHA256 3868be948fbd248bab2068b1e1066de5efa56c5a71eba9941cc60f77d3e176b7
MD5 1e03927e7cf627590f17baa4fe4e8e0f
BLAKE2b-256 d71e1660bc85a3e8a9e1695be12d3a14aee7afd15be24168c1dcf9705fb5c482

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for swig-4.0.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b5aec1cdf64765c31da72d6fb2d92230fbe087a8160a4573d53d7fda4818fc95
MD5 015b910bdf6e4d2a266525a209e90307
BLAKE2b-256 f94c9be0fc4ce01eb076fcdf359f715105e95d50d89945c8936ff19d78613e2b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for swig-4.0.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 9a48d596ed3e04b2311ca1bea9728d8baaa1b85e4803e7ecde42753f881c5656
MD5 38b327c57820b1e758f9b3e36dacf298
BLAKE2b-256 bd2479f72bc176df8c18135176207ff4a48979c969971d7d70c17999f76142d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c34367a96b31a58e97f6411203eee132060614ad198a4c2e2b3d73fbaeb6220d
MD5 1f66b5f687d10693ab3db69a91478137
BLAKE2b-256 5ddd26bbd1c612e19ad461e5e9e6d27f2a5200551288f49182823b796eca0aec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 cb7c9eb45a6516044d12b25c7c3c30d54986bb74f345ecfc860a72fc8f6427eb
MD5 04de16a13672bd177424aee42114d1f5
BLAKE2b-256 71bc5bc81d2a1af39eee0c036b10fa0793bdc1877efeebb16513e3089a7fb02c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 70034598862962f2b99b434f505d954cc9326bd15509430479db8013dbbeb5d7
MD5 19eb5698290ca941d614b6c3de56369a
BLAKE2b-256 5cac63eab11bbb9d84e60424a48600bf0014587498782e4db59125d69c823504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 9ed57acc8e181c6e04a4e3adec29b5e5831a34d2bdbc4996a992984c7b6ef59c
MD5 415d135ab602baf210522b2443c2317d
BLAKE2b-256 f1d1ecd8d2494927cd21036d3f047f9993f0a1ee7b182b78320a78364e3bcac0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 fb4cfa651da8f187217e15383438a09cc3a05d2b17da1ae4f1bd734bc6389861
MD5 ae02a8a113807238060a3fb9527834f3
BLAKE2b-256 9d2debd7a964831b62dde7c8da07b3eaab6d071719db424398e5e3b4b1ab95fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 9cd3321a997edad3ea9a1fc67eee5758fd615b12b3da684c1ded5683a38371f9
MD5 76f786d47b7cde670d98e24f9e38f564
BLAKE2b-256 60598bc03063a3b3dcad406099040f693fe5978fc737c66ed051e1172eff476e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 e3f2c8fe646f9094116ec012422b0ddc82aa1f7bbb8b2123003cdec02a9582c3
MD5 8a549057aade34823fa570d4f0b1cef5
BLAKE2b-256 30b154ae2e7e3e301a5025c8dcf92d02869afa682eb2812d7718e0b7311abef1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ed8f49783901924d794083cb8ee0d95dd09ab9b3eb9a8c2b75f785096ce60a3b
MD5 15f4b820d3977d9a47552ea6d912ec80
BLAKE2b-256 84693c45a76f50f34c4b3ac83982826d912c891450bf9abdf8d8eaca941ff59d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0ce44ba7551487da90b35ecd72d14cf46cfbeaa5e119c00b0cd1386246b249a7
MD5 34c8967706eec25ca7f33bd7d4c231b5
BLAKE2b-256 94bd334574be8ffed950dc5e2ffcac532e3cdc422b19e8c7e13a03c85462d1a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 2530b8b916e305a75de81c4bb0db7672a819fdd1ad5e108a3843a9e1063fb732
MD5 8e225040d2936016cd742779c06577e5
BLAKE2b-256 8e5afd8ffd66c77140be9214bd1c8620730b68011da9e350cab2000e66ddf4ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5b1949ef7b3db85ca0b61d2c32a00ae784994933e1c79d84456e11dc11ac1ed5
MD5 826aff9caa03f512204536e2da86a36d
BLAKE2b-256 a6c0816fa5dc4060d9c5c517ecda03e5d6c64a1d1b9dc29414572bbf45743de5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swig-4.0.2-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 512e584c0dabcb8a687d73c50fca912bc2b82d54921831bf910bd81dafe58c60
MD5 ad41694c093df415dd7afe34f784c985
BLAKE2b-256 1287ec1cc8a87f06a916ef8d79b49f59bc968805c9fb74650f592fd1e37d7c6d

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