#bgp #bgpkit #path #macos #uploader #asninfo

app asninfo

A utility tool to export ASN information to JSON files

3 unstable releases

new 0.2.1 Apr 4, 2025
0.2.0 Feb 25, 2025
0.1.0 Feb 21, 2025

#363 in Network programming

Download history 122/week @ 2025-02-18 156/week @ 2025-02-25 15/week @ 2025-03-04 1/week @ 2025-03-11 133/week @ 2025-04-01

134 downloads per month

MIT license

23KB
160 lines

ASN Information Data Uploader

This script fetches the most up-to-date ASN information and saves as JSON or JSONL file and may upload to S3/R2 bucket if environment variables are set.

Install

Using cargo

cargo install asninfo

Using homebrew on macOS

brew install bgpkit/tap/asninfo

Using cargo-binstall

Install cargo-binstall first:

cargo install cargo-binstall

Then install asninfo using cargo binstall

cargo binstall asninfo

Usage

A utility tool to export ASN information to JSON files.


Usage: asninfo [OPTIONS] [PATH]

Arguments:
  [PATH]  Export data path [default: ./asninfo.jsonl]

Options:
  -u, --upload      Flag to enable upload to S3-compatible object storage
  -s, --simplified  Simplified format
  -h, --help        Print help
  -V, --version     Print version

S3 upload environment variables

  • AWS_REGION
  • AWS_ENDPOINT
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • ASNINFO_UPLOAD_PATH: full path with s3 or r2 prefix, such as r2://spaces/broker/asninfo.jsonl

Built with ❤️ by BGPKIT Team

https://bgpkit.com/favicon.ico

Dependencies

~23–39MB
~731K SLoC