skillfed

django-peeringdb

PeeringDB Django models

django-peeringdb v3.7.0 87.0K downloads/30d#13,819 on PyPI22
Permissive license BSD-2-Clause Active released

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-peeringdb

uv

uv add django-peeringdb

poetry

poetry add django-peeringdb

Installing 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

Development Status :: 5 - Production/StableFramework :: Django :: 3.1Framework :: Django :: 3.2Framework :: Django :: 4.0Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: InternetTopic :: Software Development :: Libraries :: Python Modules

Tags

django peeringdb modelspeering database django ormpeeringdb data accessdjango internet exchange modelsnetwork peering data django
peering-networksdjango-models

More Python Modules packages