https://github.com/acidvegas/manrs
Python Class for the MANRS API
https://github.com/acidvegas/manrs
bcp bcp38 best-practices manrs packet-filter packet-filtering packet-spoofing sav spoof spoofing
Last synced: over 1 year ago
JSON representation
Python Class for the MANRS API
- Host: GitHub
- URL: https://github.com/acidvegas/manrs
- Owner: acidvegas
- License: isc
- Created: 2023-10-09T20:40:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-20T23:24:24.000Z (over 2 years ago)
- Last Synced: 2025-01-21T15:21:37.832Z (over 1 year ago)
- Topics: bcp, bcp38, best-practices, manrs, packet-filter, packet-filtering, packet-spoofing, sav, spoof, spoofing
- Language: Python
- Homepage: https://manrs.org
- Size: 249 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MANRS API

This is a Python wrapper for the [MANRS](https://www.manrs.org/) API, designed to simplify the process of making requests to the MANRS Public API. This class assists in querying data related to routing security, such as ROAs by ASN or country, ASN info, IXP info, and conformance details for CDNs, IXPs, network operators, and equipment vendors.
The official documentation for the MANRS API can be found [here](https://manrs.stoplight.io/docs/manrs-public-api)
## Features:
- Query ROAs by ASN or country.
- Retrieve information about all known ASNs and their holders.
- Fetch data about Internet Exchange Points *(IXPs)*.
- Get conformance details for different entities participating in MANRS.
## How to Use:
**Note:** You must [request access](https://www.manrs.org/resources/api) to get an API key!
1. **Initialization**: Instantiate the `MANRS` class with your API key.
```python
import manrs
api = manrs.API('YOUR_API_KEY')
```
2. **Making Calls:** Use the provided methods to make calls to the MANRS API. For instance, to get ROAs by ASN:
```python
response = api.roa_by_asn('AS16661')
```
3. **Development Mode:** If you're working in a development environment, set the `dev` flag to `True` during initialization.
```
api = manrs.API('YOUR_API_KEY', dev=True)
```
___
###### Mirrors for this repository: [acid.vegas](https://git.acid.vegas/manrs) • [SuperNETs](https://git.supernets.org/acidvegas/manrs) • [GitHub](https://github.com/acidvegas/manrs) • [GitLab](https://gitlab.com/acidvegas/manrs) • [Codeberg](https://codeberg.org/acidvegas/manrs)