Python Client for Connecting to BGPStuff.net
Project description
python-bgpstuff.net
python-bgpstuff.net is a Python library that can access the various functions on bgpstuff.net.
Requirements
pip install bgpstuff
Simple demo
>>> import bgpstuff
>>> q = bgpstuff.Client()
>>> q.get_route("4.2.2.1")
>>> print(f"The route for 4.2.2.1 is {q.route}")
>>> The route for 4.2.2.1 is 4.0.0.0/9
Notes
The library has a built in rate limiter to limit 30 requests per minute. If you go over this limit the application will sleep until there is more available requests.
While you could change this in the code, if you do that I'll permanently ban your source IPs.
Documentation
Documentation for installation and all the methods can be found at https://dev.bgpstuff.net/
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 bgpstuff-1.1.2.tar.gz.
File metadata
- Download URL: bgpstuff-1.1.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a3eb58f2bcc95bc485cac23c587a80ee9659b37f71dc93386183fd02c39482b
|
|
| MD5 |
c108dc76594efd32811150adf86c3ee7
|
|
| BLAKE2b-256 |
ab4400114a55047d11796f9ee4fa055009f08520862b715991b277e30d06d2fe
|
File details
Details for the file bgpstuff-1.1.2-py3-none-any.whl.
File metadata
- Download URL: bgpstuff-1.1.2-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c78a35a0e65b6deb5038a670190f968f0bb18ccb0a0bac6914e589e15d76a5ea
|
|
| MD5 |
513170b3fc024dfdbdd517ff959c0c57
|
|
| BLAKE2b-256 |
d9ee90cf5a28f499dcf6e47cdb25bdca08642682710e0753249e9ad23a50dac0
|