{"id":16884037,"url":"https://github.com/inverse/python-aiotomato","last_synced_at":"2025-04-05T12:25:29.500Z","repository":{"id":37978743,"uuid":"442897057","full_name":"inverse/python-aiotomato","owner":"inverse","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-16T08:05:15.000Z","size":102,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T23:41:46.463Z","etag":null,"topics":["client-sdk","python","router"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inverse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-29T21:42:15.000Z","updated_at":"2022-01-10T08:15:56.000Z","dependencies_parsed_at":"2023-02-10T01:45:39.552Z","dependency_job_id":null,"html_url":"https://github.com/inverse/python-aiotomato","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-aiotomato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-aiotomato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-aiotomato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-aiotomato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inverse","download_url":"https://codeload.github.com/inverse/python-aiotomato/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247334839,"owners_count":20922297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-sdk","python","router"],"created_at":"2024-10-13T16:16:13.535Z","updated_at":"2025-04-05T12:25:29.477Z","avatar_url":"https://github.com/inverse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AIOTomato\n\n![CI](https://github.com/inverse/python-aiotomato/workflows/CI/badge.svg)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nA simple and limited wrapper for Tomato based router firmwares such as [FreshTomato][0].\n\nIt's limited to only WIFI enabled devices due to what the API provides.\n\n## Usage\n\nBelow is an example of how it can be used to print out a list of devices and get their online status.\n\n```python\nimport os\n\nfrom aiotomato.client import Client\n\nclient = Client(\n    os.getenv(\"ROUTER_HOST\", \"\"),\n    os.getenv(\"ROUTER_USER\", \"\"),\n    os.getenv(\"ROUTER_PASS\", \"\"),\n    os.getenv(\"ROUTER_HTTP_ID\", \"\"),\n)\n\nfor device in client.fetch_devices():\n    print(f\"name: {device.name}\")\n    print(f\"ip: {device.ip}\")\n    print(f\"mac: {device.mac}\")\n    print(f\"is_online: {device.is_online}\")\n```\n\nWhere the HTTP ID can be obtained by inspecting the source code when logged into the admin inteface of the router searching for `http_id`.\n\n## Licence\n\nMIT\n\n[0]: https://freshtomato.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finverse%2Fpython-aiotomato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finverse%2Fpython-aiotomato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finverse%2Fpython-aiotomato/lists"}