pybgpkit
BGPKIT tools Python bindings
Decision gist · record as of 2026-08-14
Yes. PyBGPKit is actively maintained, has low install friction, carries no known vulnerabilities, and offers a clean Python interface to production BGP data infrastructure. Install it if you work with BGP routing analysis, network security, or IP geolocation at scale. The MIT license and broad Python version support make it suitable for both research and commercial projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only two runtime dependencies (pybgpkit-parser and requests).
- Actively maintained with a recent release 43 days ago and continuous repository activity.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.
last release 2026-07-02 (43 days) · last repo commit 2026-07-02 · 19 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 103,322 downloads/mo, #12,813 on PyPI
Alternatives
Verify before relying
pip install pybgpkit
import pybgpkit
# Parse BGP updates from a remote source
parser = pybgpkit.Parser(url="https://spaces.bgpkit.org/parser/update-example")
for elem in parser:
print(elem)
# Query MRT archive
broker = pybgpkit.Broker()
items = broker.query(ts_start="2024-01-01T00:00:00Z", ts_end="2024-01-01T01:00:00Z")- Whether pybgpkit-parser is a compiled extension or pure Python (affects cross-platform reliability).
- Rate limits or authentication requirements for the public BGPKIT Broker and lookup services.
- Whether offline or local data sources are supported, or if all queries require network access.
What it is and what it does
PyBGPKit is a Python wrapper around BGPKIT, a suite of tools for working with Border Gateway Protocol (BGP) data. It provides bindings to parse BGP update messages from MRT files, query historical BGP data from public archives, and perform IP/ASN/ROAS lookups against BGP information sources. The package exposes several APIs: a full-featured Parser for detailed BGP element extraction with filtering, a faster RouteParser for route-level data, a Broker for searching and retrieving MRT files by time range and collector, and lookup classes for IP geolocation, ASN details, BGP communities, and RPKI ROAS validation.
The package is designed for network operators, security researchers, and BGP analysts who need programmatic access to BGP routing data. It depends on pybgpkit-parser and requests. With support for Python 3.9 through 3.13 and an MIT license, it is suitable for both research and production use.
Use it for
- Query historical BGP updates from a specific time window to analyze routing changes or detect anomalies.
- Look up the ASN, country, and organization details for an IP address to enrich network traffic logs.
- Validate RPKI ROAs for a given prefix to check BGPSEC compliance and detect route hijacks.
- Parse BGP community values and their meanings to understand routing policies in a network.
- Retrieve peer information and active collectors to build a map of BGP monitoring infrastructure.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyBGPKit is actively maintained, has low install friction, carries no known vulnerabilities, and offers a clean Python interface to production BGP data infrastructure. Install it if you work with BGP routing analysis, network security, or IP geolocation at scale. The MIT license and broad Python version support make it suitable for both research and commercial projects.
Install
pybgpkit on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (pybgpkit-parser and requests). Actively maintained with a recent release 43 days ago and continuous repository activity.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install pybgpkit
import pybgpkit
# Parse BGP updates from a remote source
parser = pybgpkit.Parser(url="https://spaces.bgpkit.org/parser/update-example")
for elem in parser:
print(elem)
# Query MRT archive
broker = pybgpkit.Broker()
items = broker.query(ts_start="2024-01-01T00:00:00Z", ts_end="2024-01-01T01:00:00Z")
Verify before relying
- Whether pybgpkit-parser is a compiled extension or pure Python (affects cross-platform reliability).
- Rate limits or authentication requirements for the public BGPKIT Broker and lookup services.
- Whether offline or local data sources are supported, or if all queries require network access.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespybgpkit-parserrequests |
| Maintenance | Actively maintained 43 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 103,322 / month, #12,813 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: pybgpkit-0.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “BGP data parsing python”
- pybgpkitPython bindings for BGPKIT tools that parse BGP data, query MRT…
- pybgpkit-parserParses BGP (Border Gateway Protocol) update and route data from…
- peeringdbA Python client library for querying and working with PeeringDB data,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also pybgpkit-parser · pyasn · peeringdb · ipwhois · netutils · ipinfo · whoisit · geoip2fast · IP2Location · ip3country