{"id":34096708,"url":"https://github.com/linusgke/py2n","last_synced_at":"2026-02-25T22:05:11.958Z","repository":{"id":65145642,"uuid":"583715900","full_name":"linusgke/py2n","owner":"linusgke","description":"Python library for 2N® products","archived":false,"fork":false,"pushed_at":"2025-01-15T23:16:12.000Z","size":55,"stargazers_count":5,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-16T20:17:33.826Z","etag":null,"topics":["2n","intercom","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/py2n/","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/linusgke.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-30T17:10:58.000Z","updated_at":"2025-04-12T09:26:26.000Z","dependencies_parsed_at":"2023-02-01T03:10:11.993Z","dependency_job_id":"665e03e7-d708-4b8d-9f1d-3debd18075bf","html_url":"https://github.com/linusgke/py2n","commit_stats":null,"previous_names":["linusgke/py2n","elektr0nisch/py2n"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/linusgke/py2n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linusgke%2Fpy2n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linusgke%2Fpy2n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linusgke%2Fpy2n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linusgke%2Fpy2n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linusgke","download_url":"https://codeload.github.com/linusgke/py2n/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linusgke%2Fpy2n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29842926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T21:18:31.832Z","status":"ssl_error","status_checked_at":"2026-02-25T21:18:29.265Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["2n","intercom","python"],"created_at":"2025-12-14T15:41:22.328Z","updated_at":"2026-02-25T22:05:11.953Z","avatar_url":"https://github.com/linusgke.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Py2N\n\n\u003cimg src=\"https://user-images.githubusercontent.com/38865194/210242643-8f2cef4d-e426-4280-9263-63bee2b66eef.png\" width=20% height=20%\u003e\n\nAsynchronous library to control [2N Telekomunikace® devices](https://www.2n.com)\n\n**This library is under development**\n\n## Requirements\n\n- Python \u003e= 3.9\n- aiohttp \u003e= 3.12.0 \n\n## Install\n```bash\npip install py2n\n```\n\n## Example\n\n```python\nfrom py2n import Py2NDevice, Py2NConnectionData\n\nimport asyncio\nimport aiohttp\n\nasync def main():\n    \"\"\"Run with aiohttp ClientSession.\"\"\"\n    async with aiohttp.ClientSession() as session:\n        await run(session)\n\n\nasync def run(websession):\n    \"\"\"Use library.\"\"\"\n    device = await Py2NDevice.create(\n        websession,\n        Py2NConnectionData(\n            host=\"192.168.1.69\",\n            username=\"username\",\n            password=\"password\",\n            # auth_method=\"digest\", # default: \"basic\"\n            # protocol=\"https\", # default: \"http\"\n            # ssl_verify=True, # default: False\n        ),\n    )\n\n    await device.restart()\n\nasyncio.run(main())\n```\n\n`auth_method` controls HTTP auth scheme and supports `\"basic\"` (default) and `\"digest\"`. Digest auth relies on `aiohttp.DigestAuthMiddleware`. 2N recommends Digest Auth, especially if using plain HTTP instead of HTTPS.\n`ssl_verify` controls TLS certificate verification for HTTPS connections. Requires the device to present a trusted server certificate (e.g. Let's Encrypt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusgke%2Fpy2n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusgke%2Fpy2n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusgke%2Fpy2n/lists"}