All Projects → frenck → Python Adguardhome

frenck / Python Adguardhome

Licence: mit
Asynchronous Python client for the AdGuard Home API

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Python Adguardhome

Kubernetes Client
Simplified Kubernetes API client for Node.js.
Stars: ✭ 874 (+2913.79%)
Mutual labels:  api-client
Hashapi Lib Node
Tierion Hash API client library for Node.js
Stars: ✭ 20 (-31.03%)
Mutual labels:  api-client
Tk Listen
A library that allows to listen network sockets with proper resource limits and error handling
Stars: ✭ 27 (-6.9%)
Mutual labels:  asynchronous
Curlie
The power of curl, the ease of use of httpie.
Stars: ✭ 877 (+2924.14%)
Mutual labels:  api-client
Netty Websocket Spring Boot Starter
🚀 lightweight high-performance WebSocket framework ( 轻量级、高性能的WebSocket框架)
Stars: ✭ 885 (+2951.72%)
Mutual labels:  asynchronous
Pornlist
Ad-blocking porn websites filter list for Adblock Plus and uBlock Origin.
Stars: ✭ 21 (-27.59%)
Mutual labels:  adblock
Shrine Transloadit
Transloadit integration for Shrine
Stars: ✭ 12 (-58.62%)
Mutual labels:  asynchronous
Checkout Sdk Node
Checkout.com SDK for Node.js. Documentation here:
Stars: ✭ 28 (-3.45%)
Mutual labels:  api-client
Sense Client
Quick and dirty Ruby client for the Hello Sense sleep tracker. Based on http://jeffhuang.com/extracting_my_data_from_the_hello_sense.html
Stars: ✭ 20 (-31.03%)
Mutual labels:  api-client
Elasticsearch Java Rest
Elasticsearch Java Rest 手册
Stars: ✭ 27 (-6.9%)
Mutual labels:  api-client
Supervisord
Async first supervisord HTTP API Client for PHP 7
Stars: ✭ 14 (-51.72%)
Mutual labels:  api-client
Nba api
An API Client package to access the APIs for NBA.com
Stars: ✭ 881 (+2937.93%)
Mutual labels:  api-client
Bitmovin Php
DEPRECATED: PHP client for the Bitmovin API, see https://github.com/bitmovin/bitmovin-api-sdk-php
Stars: ✭ 21 (-27.59%)
Mutual labels:  api-client
Read Multiple Files
Read multiple files Observable way
Stars: ✭ 13 (-55.17%)
Mutual labels:  asynchronous
Sevenbridges R
Seven Bridges API Client, CWL Schema, Meta Schema, and SDK Helper in R
Stars: ✭ 27 (-6.9%)
Mutual labels:  api-client
Asynchronous
Implementation-agnostic asynchronous code
Stars: ✭ 13 (-55.17%)
Mutual labels:  asynchronous
Iguazu Rest
✨ Iguazu REST is a plugin for the Iguazu ecosystem that allows for pre-built async calls for REST with smart caching.
Stars: ✭ 21 (-27.59%)
Mutual labels:  asynchronous
App Search Node
Elastic App Search Official Node.js Client
Stars: ✭ 29 (+0%)
Mutual labels:  api-client
Franticapparatus
Type and memory safe promises for Swift, supports cancellation
Stars: ✭ 27 (-6.9%)
Mutual labels:  asynchronous
Hoppscotch
👽 Open source API development ecosystem https://hoppscotch.io
Stars: ✭ 34,569 (+119103.45%)
Mutual labels:  api-client

Python: AdGuard Home API Client

GitHub Release Python Versions Project Stage Project Maintenance License

Build Status Code Coverage Code Quality Deepcode.ai

Sponsor Frenck via GitHub Sponsors

Support Frenck on Patreon

Asynchronous Python client for the AdGuard Home API.

About

This package allows you to control and monitor an AdGuard Home instance programmatically. It is mainly created to allow third-party programs to automate the behavior of AdGuard.

An excellent example of this might be Home Assistant, which allows you to write automations, to turn on parental controls when the kids get home.

Installation

pip install adguardhome

Usage

from adguardhome import AdGuardHome

import asyncio


async def main():
    """Show example how to get status of your AdGuard Home instance."""
    async with AdGuardHome("192.168.1.2") as adguard:
        version = await adguard.version()
        print("AdGuard version:", version)

        active = await adguard.protection_enabled()
        active = "Yes" if active else "No"
        print("Protection enabled?", active)

        if not active:
            print("AdGuard Home protection disabled. Enabling...")
            await adguard.enable_protection()


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Changelog & Releases

This repository keeps a change log using GitHub's releases functionality. The format of the log is based on Keep a Changelog.

Releases are based on Semantic Versioning, and use the format of MAJOR.MINOR.PATCH. In a nutshell, the version will be incremented based on the following:

  • MAJOR: Incompatible or major changes.
  • MINOR: Backwards-compatible new features and enhancements.
  • PATCH: Backwards-compatible bugfixes and package updates.

Contributing

This is an active open-source project. We are always open to people who want to use the code or contribute to it.

We've set up a separate document for our contribution guidelines.

Thank you for being involved! 😍

Setting up development environment

This Python project is fully managed using the Poetry dependency manager. But also relies on the use of NodeJS for certain checks during development.

You need at least:

  • Python 3.7+
  • Poetry
  • NodeJS 12+ (including NPM)

To install all packages, including all development requirements:

npm install
poetry install

As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

poetry run pre-commit run --all-files

To run just the Python tests:

poetry run pytest

Authors & contributors

The original setup of this repository is by Franck Nijhof.

For a full list of all authors and contributors, check the contributor's page.

License

MIT License

Copyright (c) 2019-2021 Franck Nijhof

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].