This is a small python based tool to interact with IGD capable devices. IGD is protocol, usually supported by routers, that allows you to:
Learn the public (external) IP address
Enumerate existing port mappings
Add and remove port mappings
This tool aims to be simple, clean, easy to install, hackable tool. Hence, CI is enabled, test coverage should be kept to the maximum, code is linted, types are checked, open source liraries are reused, etc.
Sorry, no Python 2 support.
Install
$ pip3 install igd
or if you want to get latest development changes:
$ pip3 install git+https://github.com/povilasb/pyigd
Usage
igd aims for ergonomic usage with convenient defaults but also tries to give full control over how ports are mapped, listed and removed.
For more detailed description just use the –help option for each command:
$igd --help Usage: igd [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Commands: add Add new port mapping. ip Get external IP from IGD. ls Get all port mappings. rm Remove port mapping.
Other projects
Other quite usable projects that I found to work:
References
Metadata
Release files for igd 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| igd-0.1.1.tar.gz | 7.2 kB | Without provenance | Details for igd-0.1.1.tar.gz |
Release files / igd-0.1.1.tar.gz
| Download URL | igd-0.1.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0c1bf0f888457dfc3fd26ee9c5d74335f25e42b787acb1c90c6a1f12f174a50
|
|
BLAKE2b-256 checksum How to use checksums |
272bbc8245f65e2ed064a96d2f4b5e5b36ae3446d738cd368e941b4e560219dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for igd 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.