How bieniu/nextdns works
nextdns is an asynchronous Python client for the NextDNS API. A caller supplies an aiohttp session and API key, creates a client, and uses it to retrieve profiles, profile settings, analytics, connection status, and logs, or to change settings and log options. The client sends authenticated HTTP requests and converts responses into typed models; constants define endpoint and setting mappings, while exceptions represent API and validation failures. The README and excerpts establish the main workflow and several capabilities; finer-grained method-to-method relationships are not mapped where the excerpts do not show them.
Main entry points: __init__.py NextDns client · model.py Response models · const.py API mappings · exceptions.py Client exceptions
Components 11
Client and transport
- NextDns client
nextdns/__init__.py - HTTP requests
nextdns/__init__.py
NextDNS capabilities
- Profiles and settings
nextdns/__init__.py - Analytics
nextdns/__init__.py - Logs management
nextdns/__init__.py - Connection status
nextdns/__init__.py
Types and configuration
- Response models
nextdns/model.py - API mappings
nextdns/const.py - Client exceptions
nextdns/exceptions.py
Other components
- Python caller
- NextDNS API
Connections 10
- Python caller → NextDns client: creates and uses
README.md - NextDns client → HTTP requests: sends requests
nextdns/__init__.py - HTTP requests → NextDNS API: HTTP requests
README.md - NextDns client → Profiles and settings: exposes operations
README.md - NextDns client → Analytics: exposes operations
README.md - NextDns client → Logs management: exposes operations
example.py - NextDns client → Connection status: exposes operation
example.py - NextDns client → API mappings: uses mappings
nextdns/__init__.py - NextDns client → Response models: returns typed data
nextdns/__init__.py - NextDns client → Client exceptions: raises API errors
nextdns/__init__.py