Pyhton library for Internet Health Report API
Project description
abondance: Python library for Internet Health Report API
Installation
Get the latest source files:
git clone git@github.com:InternetHealthReport/abondance.git
Install dependencies and install abondance:
cd abondance
sudo pip install -r requirements.txt
sudo python setup.py install
AS inter-dependency (AS hegemony)
Example: Retrieve dependencies for AS2501 on September 15th, 2018
from ihr.hegemony import Hegemony
hege = Hegemony(originasns=[2501], start="2018-09-15 00:00", end="2018-09-15 23:59")
for r in hege.get_results():
print(r)
Example: Retrieve dependents of AS2500 on September 15th, 2018
from ihr.hegemony import Hegemony
hege = Hegemony(asns=[2500], start="2018-09-15 00:00", end="2018-09-15 23:59")
for r in hege.get_results():
# Skip results from the global graph
if r["originasn"] == 0:
continue
print(r)
AS Delay
Example: Retrieve delay for AS7922 on September 15th, 2018
from ihr.delay import Delay
res = Delay(asns=[7922], start="2018-09-15 00:00", end="2018-9-15 23:59")
for r in res.get_results():
print(r)
AS Forwarding alarms
Example: Retrieve forwarding alarms for AS7922 on September 15th, 2018
from ihr.forwarding import Forwarding
res = Forwarding(asns=[7922], start="2018-09-15 00:00", end="2018-9-15 23:59")
for r in res.get_results():
print(r)
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
abondance-0.0.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
abondance-0.0.1-py3-none-any.whl
(22.5 kB
view hashes)
Close
Hashes for abondance-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6cb86d6679d8b4579f98486131aa6c3c4c57b9a50d297de7d37d2a16f99656 |
|
MD5 | 5cb2090114a2dfe8b4c9dbd691b23231 |
|
BLAKE2b-256 | 725067bf3baa07175ab3081f357f133229eddd13c45164f247975e537e7eae97 |