Skip to main content

Python Client for Connecting to BGPStuff.net

Project description

python-bgpstuff.net

python-bgpstuff.net is a Python library that can access the farious 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 permananly ban your source IPs.

Documentation

Documentation for installation and all the methods can be found at https://dev.bgpstuff.net/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bgpstuff-1.0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

bgpstuff-1.0.1-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page