mirror of
https://github.com/dcarrillo/digaws.git
synced 2025-07-05 13:49:26 +00:00
Compare commits
6 Commits
61970f6679
...
1.0.5
Author | SHA1 | Date | |
---|---|---|---|
b657c4a4d3
|
|||
87618a960d
|
|||
b1f48d5534
|
|||
ca98c678b2 | |||
5b58df2b3a
|
|||
ad80450442
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: [3.7, 3.8, 3.9]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
16
README.md
16
README.md
@ -1,11 +1,11 @@
|
||||
# digaws
|
||||
|
||||
The digaws lookup tool displays information for a given IP address (v4 o v6) or a CIDR, sourced from the AWS official IP ranges.
|
||||
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](https://ip-ranges.amazonaws.com/ip-ranges.json) and keeps
|
||||
a cached version until a new version is published.
|
||||
|
||||

|
||||

|
||||
[](https://pypi.org/project/digaws/)
|
||||
[](https://github.com/dcarrillo/digaws/actions)
|
||||
|
||||
## Requirements
|
||||
|
||||
@ -15,8 +15,16 @@ Tests are verified on Linux, macos and Windows.
|
||||
|
||||
## Install
|
||||
|
||||
### Using [pipx](https://pypa.github.io/pipx/#install-pipx) (this is the preferred way)
|
||||
|
||||
```bash
|
||||
pip install digaws
|
||||
pipx install digaws
|
||||
```
|
||||
|
||||
### Using pip
|
||||
|
||||
```bash
|
||||
pip install digaws --user
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -1,2 +1,2 @@
|
||||
__version__ = '1.0.4'
|
||||
__version__ = '1.0.5'
|
||||
__description__ = 'Look up canonical information for AWS IP addresses and networks'
|
||||
|
@ -181,7 +181,7 @@ class DigAWS():
|
||||
data = [prefix for prefix in self.ipv6_prefixes
|
||||
if addr.subnet_of(prefix['ipv6_prefix'])]
|
||||
except (ipaddress.AddressValueError, ValueError):
|
||||
raise(ValueError(f'Wrong IP or CIDR format: {address}'))
|
||||
raise ValueError(f'Wrong IP or CIDR format: {address}')
|
||||
|
||||
return data
|
||||
|
||||
|
Reference in New Issue
Block a user