django-peeringdb
PeeringDB Django models
What it is and what it does
django-peeringdb bridges PeeringDB—a public database of internet peering, networks, and exchanges—into Django applications by providing pre-built ORM models and admin UI support. Rather than building your own models or calling PeeringDB's API directly, you get Django-native access to peering, network, and internet exchange objects. The package is used by both the official PeeringDB web application and CLI client, so the models are battle-tested in production.
Data synchronization has been decoupled into a separate peeringdb CLI tool, which means your Django app stays lightweight and can sync data on its own schedule. You install django-peeringdb to get the models and admin interface, then use the external CLI tool to keep the database current. The package depends on Django, django-countries, django-handleref, django-inet, and asgiref—all standard Django ecosystem components.
Use it for:
- Build a network operations dashboard that queries PeeringDB peering and exchange data directly via Django ORM.
- Extend PeeringDB data with custom fields or relationships in your Django admin interface.
- Create a peering request or network lookup tool that combines PeeringDB models with your own application logic.
- Integrate PeeringDB information into a multi-tenant ISP or hosting platform's internal database.
- Generate reports on peering relationships and network topology using Django querysets.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Django ORM models and admin interface for PeeringDB data, enabling direct access to peering, network, and internet exchange information within Django applications.
Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive license, and solves a real problem for anyone building Django applications that need PeeringDB data. Install friction is low and the dependency tree is clean. Use it if your application needs to query or display peering, network, or internet exchange information.
Install
django-peeringdb on PyPI
pip
pip install django-peeringdbuv
uv add django-peeringdbpoetry
poetry add django-peeringdbInstalling django-peeringdb
Before you install
Low install friction with a wheel distribution. Actively maintained, with five straightforward runtime dependencies all within the Django ecosystem.
License in practice
BSD-2-Clause permissive license allows commercial and private use with minimal restrictions, requiring only preservation of copyright and license notices.
Quickstart
pip install django-peeringdb
from django_peeringdb.models import Network, InternetExchange
networks = Network.objects.all()
Requires Python 3.10 or later and Django 3.1+. Data synchronization requires the external peeringdb CLI tool.
Verify before relying
- Whether the package's models cover all current PeeringDB object types or if some require manual extension.
- Performance characteristics when querying large PeeringDB datasets through Django ORM.
- Whether data synchronization via the external peeringdb CLI tool is automatic or requires manual scheduling.
Package facts
| License | BSD-2-Clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — asgiref, django-countries, django-handleref, django-inet, django |
| Maintenance | actively maintained — 305 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,029/month — #13,819 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_peeringdb-3.7.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
peeringdbA Python client library for querying and…
permissive · top 15,000 on PyPI
django-modeltreeProvides a simplified interface for navigating…
permissive · top 15,000 on PyPI
dj-materialized-viewsManages PostgreSQL materialized views through a…
permissive · top 15,000 on PyPI
DjangoDjango is a high-level Python web framework for…
permissive · top 1,000 on PyPI
django-postgres-extraExtends Django's ORM to expose…
permissive · top 15,000 on PyPI
djfernetProvides Fernet symmetric encryption for Django…
permissive · top 15,000 on PyPI
django-taggitAdds simple tagging functionality to Django…
permissive · top 5,000 on PyPI
django-logentry-adminRegisters Django's built-in LogEntry model in…
permissive · top 15,000 on PyPI
django-data-browserProvides an interactive web interface for…
permissive · top 15,000 on PyPI