{"id":26866427,"url":"https://github.com/silvestrinigor/axis_vapix","last_synced_at":"2025-07-04T13:04:42.476Z","repository":{"id":267854502,"uuid":"900486593","full_name":"silvestrinigor/axis_vapix","owner":"silvestrinigor","description":"Python-based API handler for interacting with Axis devices using the VAPIX APIs.","archived":false,"fork":false,"pushed_at":"2025-04-09T17:06:01.000Z","size":217,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T01:42:48.173Z","etag":null,"topics":["api","api-client","axis","camera","python","requests","vapix"],"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/silvestrinigor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-08T22:09:25.000Z","updated_at":"2025-04-09T17:06:06.000Z","dependencies_parsed_at":"2025-02-03T17:23:00.836Z","dependency_job_id":"52585f0e-0d6c-4491-87a5-5505350eca18","html_url":"https://github.com/silvestrinigor/axis_vapix","commit_stats":null,"previous_names":["silvestrinigor/axis_vapix_python_api_handler","silvestrinigor/axis_vapix_python","silvestrinigor/axis_vapix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/silvestrinigor/axis_vapix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvestrinigor%2Faxis_vapix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvestrinigor%2Faxis_vapix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvestrinigor%2Faxis_vapix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvestrinigor%2Faxis_vapix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silvestrinigor","download_url":"https://codeload.github.com/silvestrinigor/axis_vapix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvestrinigor%2Faxis_vapix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263548467,"owners_count":23478766,"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":["api","api-client","axis","camera","python","requests","vapix"],"created_at":"2025-03-31T04:54:36.772Z","updated_at":"2025-07-04T13:04:42.448Z","avatar_url":"https://github.com/silvestrinigor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Axis VAPIX Python API Handler\n\nThis project provides a Python-based API handler for interacting with [Axis](https://www.axis.com/) devices using the [VAPIX APIs](https://developer.axis.com/vapix).\n\n## Quick Start\n\nInstall the library:\n\n```bash\npip install git+https://github.com/silvestrinigor/axis_vapix\n```\n\n### Example: Get Basic Device Information\n\n```python\nfrom axis.vapix import basic_device_information\nimport requests\nimport requests.auth\n\nauth = requests.auth.HTTPDigestAuth(\"root\", \"pass\")\napi = basic_device_information.BasicDeviceInformationRequest(\"192.168.0.90\", 80, auth)\n\nrequest = api.getProperties([basic_device_information.DevicePropertyType.ARCHITECTURE, basic_device_information.DevicePropertyType.BRAND])\n\nwith requests.Session() as session:\n    response = session.send(request.prepare())\n    print(response.text)\n\n# Output\n{\"apiVersion\": \"1.3\", \"data\": {\"propertyList\": {\"Brand\": \"AXIS\", \"Architecture\": \"armv7hf\"}}}\n```\n\n---\n\n### Example: Set Time\n\n```python\nfrom axis.vapix import time_api\nimport requests\nimport requests.auth\nfrom datetime import datetime, timezone, timedelta\n\nauth = requests.auth.HTTPDigestAuth(\"root\", \"pass\")\napi = time_api.TimeApiRequest(\"192.168.0.90\", 80, auth)\n\ntime_now = datetime.now(timezone(timedelta(hours=-3)))\nrequest = api.setDateTime(time_now)\n\nwith requests.Session() as session:\n    response = session.send(request.prepare())\n    print(response.text)\n\n# Output\n{\n  \"apiVersion\": \"1.0\",\n  \"method\": \"setDateTime\",\n  \"data\": {\n    \"dateTime\": \"2025-04-09T15:51:39Z\"\n  }\n}\n```\n\n---\n\n### Example: Add Text Overlay\n\n```python\nfrom axis.vapix import overlay_api\nimport requests\nimport requests.auth\n\nauth = requests.auth.HTTPDigestAuth(\"root\", \"pass\")\napi = overlay_api.DynamicOverlayApiRequest(\"192.168.0.90\", 80, auth)\n\noverlay = overlay_api.TextOverlay(\n    camera=1,\n    text=r\"%d - %m - %Y - %X\",\n    textColor=overlay_api.OverlayColorType.RED.value\n)\nrequest = api.addText(overlay)\n\nwith requests.Session() as session:\n    response = session.send(request.prepare())\n    print(response.text)\n\n# Output\n{\n    \"apiVersion\": \"1.7\",\n    \"data\": {\n        \"camera\": 1,\n        \"identity\": 3\n    },\n    \"method\": \"addText\"\n}\n```\n\n---\n\n## Supported APIs:\n- Analytics Metadata Producer Configuration\n- API Discovery service\n- Basic device information\n- Capture mode\n- Firmware management API\n- Loitering guard\n- Network settings API\n- NTP API\n- AXIS Object analytics API\n- Dynamic overlay API\n- Time API\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n\n---\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request on the [GitHub repository](https://github.com/silvestrinigor/axis_vapix).\n\n---\n\n## Support\n\nFor any issues or questions, please file a ticket on the [GitHub Issues page](https://github.com/silvestrinigor/axis_vapix/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilvestrinigor%2Faxis_vapix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilvestrinigor%2Faxis_vapix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilvestrinigor%2Faxis_vapix/lists"}