A command-line interface to query and explore IRR & BGP data from IRRexplorer.net
Project description
IRRexplorer CLI
A command-line interface to query and explore IRR & BGP data from IRRexplorer.net in real-time.
Overview
IRRexplorer CLI provides a simple way to access and analyze Internet Routing Registry (IRR) and BGP data through the command line. It interfaces with the IRRexplorer v2 service to help network operators and administrators debug routing data and verify filtering strategies.
Features
- Query prefix information
- Lookup ASN details
- Real-time data access from IRRexplorer.net
- Easy-to-use command-line interface
- Async support for efficient data retrieval
Installation
pip install irrexplorer-cli
Usage
Query Prefix Information
irrexplorer prefix 192.0.2.0/24
Query ASN Information
irrexplorer asn AS64496
The -f or --format flag allows you to specify the output format:
json: Output results in JSON formatcsv: Output results in CSV format- Default format is human-readable text
Requirements
- Python 3.13+
- httpx
- typer
- rich
Development
- Clone the repository:
git clone https://github.com/kiraum/irrexplorer-cli.git
- Create/activate venv:
python3 -m venv venv
. venv/bin/activate
- Install dependencies:
pip install --upgrade uv
uv pip sync requirements.lock
- Run pre-commit tests before to push:
pre-commit run --all-files
Data Sources
The CLI tool queries data from IRRexplorer.net, which includes:
- IRR objects and relations (route(6) and as-sets)
- RPKI ROAs and validation status
- BGP origins from DFZ
- RIRstats
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
See LICENSE file for details.
Credits
This tool interfaces with IRRexplorer v2, a project maintained by Stichting NLNOG and DashCare BV.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file irrexplorer_cli-0.0.2.tar.gz.
File metadata
- Download URL: irrexplorer_cli-0.0.2.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76f4d0099d706acae8782f104994e4050782bbda67c37bcffb18721d6167825
|
|
| MD5 |
4221a8e891322cfe3c5940a625fa19a7
|
|
| BLAKE2b-256 |
15fb661540797329b47fb5a1108cfa72d9890fd96594baf327d63d60d6e726a5
|
Provenance
The following attestation bundles were made for irrexplorer_cli-0.0.2.tar.gz:
Publisher:
build_and_publish.yml on kiraum/irrexplorer-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
irrexplorer_cli-0.0.2.tar.gz -
Subject digest:
e76f4d0099d706acae8782f104994e4050782bbda67c37bcffb18721d6167825 - Sigstore transparency entry: 157293169
- Sigstore integration time:
-
Permalink:
kiraum/irrexplorer-cli@a57a572244e7950d6fa64d26dfaf1a1dfab1ad7b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/kiraum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@a57a572244e7950d6fa64d26dfaf1a1dfab1ad7b -
Trigger Event:
push
-
Statement type:
File details
Details for the file irrexplorer_cli-0.0.2-py3-none-any.whl.
File metadata
- Download URL: irrexplorer_cli-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16b2904e8abeb4ec01148502346410ebdcc6a2ada1a12c85f900cce58793a159
|
|
| MD5 |
cd114b7a5df337ca9708370e9c2f769f
|
|
| BLAKE2b-256 |
9de8281d1122c28a1fe46835be5d1674895964072fed3e20bf0ae7347a21e80d
|
Provenance
The following attestation bundles were made for irrexplorer_cli-0.0.2-py3-none-any.whl:
Publisher:
build_and_publish.yml on kiraum/irrexplorer-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
irrexplorer_cli-0.0.2-py3-none-any.whl -
Subject digest:
16b2904e8abeb4ec01148502346410ebdcc6a2ada1a12c85f900cce58793a159 - Sigstore transparency entry: 157293170
- Sigstore integration time:
-
Permalink:
kiraum/irrexplorer-cli@a57a572244e7950d6fa64d26dfaf1a1dfab1ad7b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/kiraum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@a57a572244e7950d6fa64d26dfaf1a1dfab1ad7b -
Trigger Event:
push
-
Statement type: