API reference¶
PyBGPRanking¶
- class pybgpranking2.PyBGPRanking(root_url: str = 'https://bgpranking-ng.circl.lu/')¶
- asns_global_ranking(date: str = '2024-08-19', address_family: str = 'v4', limit: int = 100)¶
Get the top limit ASNs, from worse to best
- property is_up: bool¶
Test if the given instance is accessible
- query(asn: str, address_family: str = 'v4', date: str | None = None, source: list | str = '')¶
Launch a query. :param asn: ASN to lookup :param address_family: v4 or v6 :param date: Exact date to lookup. Fallback to most recent available. :param source: Source to query. Can be a list of sources.
- redis_up() dict[str, Any]¶
Check if redis is up and running