https://github.com/bgpkit/as2org-rs
Rust library for accessing CAIDA AS to organization dataset
https://github.com/bgpkit/as2org-rs
Last synced: about 1 year ago
JSON representation
Rust library for accessing CAIDA AS to organization dataset
- Host: GitHub
- URL: https://github.com/bgpkit/as2org-rs
- Owner: bgpkit
- License: mit
- Created: 2024-06-24T19:48:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T19:42:07.000Z (about 1 year ago)
- Last Synced: 2025-04-04T19:50:37.982Z (about 1 year ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `as2org-rs`: utility crate for accessing CAIDA AS to organization mapping
*This readme is generated from the library's doc comments using [cargo-readme](https://github.com/livioribeiro/cargo-readme). Please refer to the Rust docs website for the full documentation*
[](https://crates.io/crates/as2org-rs)
[](https://docs.rs/as2org-rs)
[](https://raw.githubusercontent.com/bgpkit/as2org-rs/main/LICENSE)
## CAIDA as2org utility.
### Data source
* The CAIDA [AS Organizations Dataset](http://www.caida.org/data/as-organizations).
### Data structure
`As2orgAsInfo`:
* `asn`: the AS number
* `name`: the name provide for the individual AS number
* `country_code`: the country code of the organization's registration country
* `org_id`: maps to an organization entry
* `org_name`: the name of the organization
* `source`: the RIR or NIR database which was contained this entry
### Examples
```rust
use as2org_rs::As2org;
let as2org = As2org::new(None).unwrap();
dbg!(as2org.get_as_info(400644).unwrap());
dbg!(as2org.get_siblings(15169).unwrap());
assert!(as2org.are_siblings(15169, 36040));
```
## License
MIT