digaws
The digaws lookup tool displays information for a given IP address (both v4 and v6) or a CIDR, sourced from the AWS official IP ranges. In order to save bandwidth and time this tool requests the AWS IP ranges and keeps a cached version until a new version is published.
Requirements
Python >= 3.10
Tests are verified on Linux, macos and Windows.
Install
Using uv (recommended)
# Install globally
uv tool install digaws
# Run directly
uv tool run digaws <ip_address>
Using pipx
pipx install digaws
Using pip
pip install digaws --user
Usage
usage: digaws [-h] [--output <plain|json>] [--output-fields [{prefix,region,service,network_border_group} ...]] [--debug] [--version] <ip address|cidr> [<ip address|cidr> ...]
Look up canonical information for AWS IP addresses and networks
positional arguments:
<ip address|cidr> CIDR or IP (v4 or v6) to look up
optional arguments:
-h, --help show this help message and exit
--output <plain|json>
Formatting style for command output, by default plain
--output-fields [{prefix,region,service,network_border_group} ...]
Print only the given fields
--debug Enable debug
--version show program's version number and exit
Examples
- look up an IPv4 address
~ » digaws 52.218.97.130
Prefix: 52.218.0.0/17
Region: eu-west-1
Service: AMAZON
Network border group: eu-west-1
Prefix: 52.218.0.0/17
Region: eu-west-1
Service: S3
Network border group: eu-west-1
- look up an IPv6 address
~ » digaws 2600:1f1e:fff:f810:a29b:cb50:2812:e2dc
IPv6 Prefix: 2600:1f1e::/36
Region: sa-east-1
Service: AMAZON
Network border group: sa-east-1
IPv6 Prefix: 2600:1f1e:fff:f800::/53
Region: sa-east-1
Service: ROUTE53_HEALTHCHECKS
Network border group: sa-east-1
IPv6 Prefix: 2600:1f1e::/36
Region: sa-east-1
Service: EC2
Network border group: sa-east-1
- look up several addresses and print output as json
~ » digaws 2600:1f14::/36 13.224.119.88 --output json
[
{
"ipv6_prefix": "2600:1f14::/35",
"region": "us-west-2",
"service": "AMAZON",
"network_border_group": "us-west-2"
},
{
"ipv6_prefix": "2600:1f14::/35",
"region": "us-west-2",
"service": "EC2",
"network_border_group": "us-west-2"
},
{
"ip_prefix": "13.224.0.0/14",
"region": "GLOBAL",
"service": "AMAZON",
"network_border_group": "GLOBAL"
},
{
"ip_prefix": "13.224.0.0/14",
"region": "GLOBAL",
"service": "CLOUDFRONT",
"network_border_group": "GLOBAL"
}
]
- Choose output fields
~ » digaws 34.255.166.63 --output-fields service
Service: AMAZON
Service: EC2
Metadata
Release files for digaws 1.0.8
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 |
|---|---|---|---|---|
| digaws-1.0.8.tar.gz | 49.6 kB | Without provenance | Details for digaws-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| digaws-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for digaws-1.0.8-py3-none-any.whl |
Total release size: 59.0 kB
Release files / digaws-1.0.8.tar.gz
| Download URL | digaws-1.0.8.tar.gz |
|---|---|
| Size | 49.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e42cdadd52113a41cded1f8daa16a3b7ae9615c9d2692ce34ea467a4ad9eddf
|
|
BLAKE2b-256 checksum How to use checksums |
09cbd6b22d0ac5713777565bc3ef1a44b35de467620551b641b01874ed4e801c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / digaws-1.0.8-py3-none-any.whl
| Download URL | digaws-1.0.8-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e1912867fb880e605c5f395e24715fe46379fa936211caa59ec52914d67fe86
|
|
BLAKE2b-256 checksum How to use checksums |
9ad510a5624bcd53b43b87da59d09974d927602c8879c4e03a209cc05dd5cf74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for digaws 1.0.8
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.