--- id: peeringdb version: "2.5.0" license: BSD-2-Clause license_treatment: permissive maintenance: active --- # peeringdb — PeeringDB Python client and library License: permissive · Maintenance: active · Downloads: 86.9K/mo ## What it is and what it does peeringdb is a Python client for the PeeringDB API, which maintains a public database of internet peering information including autonomous systems (ASNs), networks, and internet exchange points. It wraps HTTP calls to PeeringDB's REST API through httpx and provides a Pythonic interface for developers to query peering infrastructure data programmatically. The package is aimed at network operators, system administrators, and developers working with BGP routing and internet peering. It depends on django-peeringdb, confu, munge, pyyaml, and twentyc-rpc to handle configuration, data transformation, and RPC communication. The library is actively maintained, supports Python 3.10 through 3.14, and carries no known security vulnerabilities. Use it for: - Query ASN details and network information for BGP route analysis and peering decisions. - Automate discovery of internet exchange points and peering facilities in a given region. - Build network topology tools that pull live peering data from PeeringDB. - Integrate peering information into network monitoring or configuration management systems. - Validate ASN and network ownership during network provisioning workflows. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A Python client library for querying and working with PeeringDB data, providing programmatic access to internet peering information including ASNs, networks, and exchange points. Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive BSD-2-Clause license. It is well-suited for network operators and developers who need programmatic access to PeeringDB. Install it if you work with BGP, peering infrastructure, or need to query internet exchange data. ## Install pip install peeringdb uv add peeringdb poetry add peeringdb ## Installing peeringdb Before you install: Low friction install with a pure-Python wheel. Actively maintained with a recent release 39 days ago and commits through 2026-08-14. Depends on six runtime packages including django-peeringdb, httpx, and pyyaml. License in practice: BSD-2-Clause permissive license allows broad use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects. Quickstart: pip install peeringdb import peeringdb # Query PeeringDB for network or ASN information result = peeringdb.query('asn', asn_number) Requires Python 3.10 or later; depends on httpx and other runtime packages for API communication. Verify before relying: - Whether the package requires PeeringDB API credentials or authentication for all queries. - Whether django-peeringdb is a required runtime or an optional integration for Django projects. - Performance characteristics and rate limits when querying large datasets. ## Package facts - License: BSD-2-Clause (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 86.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags peeringdb api client, asn lookup python, bgp peering data, internet exchange information, network peering database, peering point lookup, bgp network data, networking, bgp, asn-lookup [View on SkillFed](https://skillfed.io/packages/peeringdb) · [View on PyPI](https://pypi.org/project/peeringdb/)