A Python CLI tool to check service tags for Azure IPs
Project description
azureipcheck
A Python Typer-based CLI tool to check IP addresses against Azure services. It also uses Rich for some dope console output. Additionally, it makes use of Clumper for parsing through the Azure Service Tag JSON files.
Installation
The recommended method of installation is with pipx.
pipx install azureipcheck
However, you can install the normal way from PyPi with python3 -m pip install azureipcheck
.
Usage
You should first run azureipcheck update
to download the latest Service Tag JSON files. After downloading the files locally, you can run azureipcheck check <ip>
, where ip
can be a single address or CIDR (i.e., 51.8.227.233
or 51.8.227.233/24
).
Checking a CIDR does not check every IP in the network provided. It simply checks to see if the network is in a subnet of any of the Azure network ranges. Therefore 51.8.227.233/24
may return matches but 51.8.227.233/8
would not.
Built With
- Typer: https://github.com/tiangolo/typer
- Rich: https://github.com/willmcgugan/rich
- Clumper: https://github.com/koaning/clumper
- Gazpacho: https://github.com/maxhumber/gazpacho
- Cookiecutter-RichTyper: https://github.com/daddycocoaman/cookiecutter-richtyper
Inspired by https://github.com/deanobalino/azureip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file azureipcheck-1.0.1.tar.gz
.
File metadata
- Download URL: azureipcheck-1.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799c240b1ef095f54dd9873dde3b0da48c4ce6f5e888b1dcc8cb18ddb76de654 |
|
MD5 | dd56229d104e5b2d13c1555d938eaf9a |
|
BLAKE2b-256 | 27fe8306cfeeadcd15b194fdf08b365ca614828b0258c5c36688742a2fabf7f5 |
File details
Details for the file azureipcheck-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: azureipcheck-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab9de1de182f5793117f6d708aae780da99ab06a7f56815637b3893763b5280 |
|
MD5 | e1ba4a680077e381e477e22c17853434 |
|
BLAKE2b-256 | 97fc6f1662faa4821271aa59de913bf67226ab192d0a4bbdffbd9fbeaa1d8af4 |