adguardhome
Asynchronous Python client for the AdGuard Home API.
What it is and what it does
This package provides an async Python interface to AdGuard Home, a network-wide DNS filtering and ad-blocking service. It lets you query the status of an AdGuard Home instance and control its protection settings programmatically—checking whether protection is enabled, toggling it on or off, and retrieving version information. The library is built on aiohttp for non-blocking network I/O, making it suitable for integration into automation frameworks and home-automation platforms.
The primary use case is enabling third-party applications to automate AdGuard Home behavior based on events or conditions—for example, automatically enabling parental controls when children arrive home, or disabling protection during maintenance windows. It abstracts away the HTTP API details, offering a clean async/await interface for developers building integrations.
Use it for:
- Automate parental controls in AdGuard Home based on time-of-day or presence detection events.
- Monitor AdGuard Home protection status and alert when DNS filtering is disabled.
- Integrate AdGuard Home control into home-automation platforms like Home Assistant.
- Programmatically toggle protection on or off based on network conditions or user actions.
- Query AdGuard Home version and status as part of a network health-check routine.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous Python client library for controlling and monitoring AdGuard Home instances via its API, enabling programmatic automation of DNS filtering and protection settings.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and fills a specific need for AdGuard Home automation. It is suitable for anyone building integrations with AdGuard Home or home-automation workflows. No known security vulnerabilities.
Install
adguardhome on PyPI
pip
pip install adguardhomeuv
uv add adguardhomepoetry
poetry add adguardhomeInstalling adguardhome
Before you install
Low friction installation with only two runtime dependencies (aiohttp and yarl). Actively maintained as of 2025-11-16 with recent commits; supports current Python versions (3.11+).
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install adguardhome
from adguardhome import AdGuardHome
import asyncio
async def main():
async with AdGuardHome("192.168.1.2") as adguard:
version = await adguard.version()
print("AdGuard version:", version)
active = await adguard.protection_enabled()
if not active:
await adguard.enable_protection()
asyncio.run(main())
Requires Python 3.11 or later; AdGuard Home instance must be accessible at the provided network address.
Verify before relying
- Whether authentication (username/password or API key) is required to connect to AdGuard Home instances.
- Full scope of available API methods beyond version(), protection_enabled(), and enable_protection().
- Whether the client supports AdGuard Home's DNS filtering rules, blocklists, or custom filtering configuration.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — aiohttp, yarl |
| Maintenance | actively maintained — 271 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,081/month — #14,877 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: adguardhome-0.8.1-py3-none-any.whl
Keywords: adguard home, adguard, api, async, client
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
wledAn asynchronous Python client library for…
permissive · top 15,000 on PyPI
python-bsblanAsynchronous Python client for controlling and…
permissive · top 15,000 on PyPI
gotailwindAsynchronous Python client for controlling and…
permissive · top 15,000 on PyPI
vultrA Python client library for the Vultr.com API,…
permissive · top 15,000 on PyPI
pysmartthingsAsynchronous Python client for fetching data…
permissive · top 15,000 on PyPI
tailscaleAsynchronous Python client for querying and…
permissive · top 15,000 on PyPI
p1monitorAsynchronous Python client library for reading…
permissive · top 15,000 on PyPI
psutil-home-assistantWraps psutil to allow multiple independent…
permissive · top 15,000 on PyPI
elgatoAsynchronous Python client for controlling and…
permissive · top 15,000 on PyPI
aiowithingsAsynchronous Python client for fetching data…
permissive · top 15,000 on PyPI