{"id":29692197,"url":"https://github.com/rsc-dev/loophole","last_synced_at":"2025-07-23T07:34:31.207Z","repository":{"id":62576892,"uuid":"50019628","full_name":"rsc-dev/loophole","owner":"rsc-dev","description":"Polar devices Python API and CLI.","archived":false,"fork":false,"pushed_at":"2021-01-12T17:34:33.000Z","size":186,"stargazers_count":147,"open_issues_count":4,"forks_count":16,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-07-02T23:57:03.068Z","etag":null,"topics":["api","cli","polar","polar-devices","python","reverse-engineering"],"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/rsc-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"rsc-dev"}},"created_at":"2016-01-20T09:33:47.000Z","updated_at":"2025-04-07T12:13:13.000Z","dependencies_parsed_at":"2022-11-03T19:11:06.421Z","dependency_job_id":null,"html_url":"https://github.com/rsc-dev/loophole","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rsc-dev/loophole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Floophole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Floophole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Floophole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Floophole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsc-dev","download_url":"https://codeload.github.com/rsc-dev/loophole/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Floophole/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266473609,"owners_count":23934500,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","cli","polar","polar-devices","python","reverse-engineering"],"created_at":"2025-07-23T07:34:30.641Z","updated_at":"2025-07-23T07:34:31.195Z","avatar_url":"https://github.com/rsc-dev.png","language":"Python","funding_links":["https://github.com/sponsors/rsc-dev"],"categories":[],"sub_categories":[],"readme":"# loophole - Polar devices API\n\n[![PyPI](https://img.shields.io/pypi/v/loophole.svg)](https://pypi.python.org/pypi/loophole)\n[![Join the chat at https://gitter.im/rsc-dev/loophole](https://badges.gitter.im/rsc-dev/loophole.svg)](https://gitter.im/rsc-dev/loophole?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## About\nPython API for Polar devices. Command line interface included.\n\nTested with:\n* A360\n* Loop\n* M400\n\n## Installation\n```sh\npip install loophole\n```\nor\n```sh\npython setup.py install\n```\n\n## Usage\n### CLI\nInvoke CLI:\n```bash\npython __main__.py\n```\n\nType '?' or 'help' to see available commands.\n```python\n _|                                _|                  _|\n _|    _|_|      _|_|    _|_|_|    _|_|_|      _|_|    _|    _|_|\n _|  _|    _|  _|    _|  _|    _|  _|    _|  _|    _|  _|  _|_|_|_|\n _|  _|    _|  _|    _|  _|    _|  _|    _|  _|    _|  _|  _|\n _|    _|_|      _|_|    _|_|_|    _|    _|    _|_|    _|    _|_|_|\n                         _|\n                         _|\n                                                           ver. 0.3\n\nloophole(no device)\u003e?\n\nDocumented commands (type help \u003ctopic\u003e):\n========================================\nconnect  disconnect  exit  help  info  list  walk\n```\n\n\n| Command | Description |\n| --- | --- |\n| connect \\\u003cdev_no\\\u003e | Connect Polar device. Run 'list' to see available devices. |\n| disconnect | Disconnect Polar device. |\n| dump \\\u003cdest\\\u003e | Dump device memory. |\n| get \\\u003csrc\\\u003e \\\u003cdest\\\u003e| Read file from device. |\n| exit | Quit. |\n| help | List available commands with \"help\" or detailed help with \"help cmd\". |\n| info | Print connected device info. |\n| list | List available Polar devices. |\n| walk [path] | Walk file system. Default path is root path (\\\\). |\n\n### permissions\n\nNote: You need the right permission to access the USB device. Otherwise you will get the error: `The device has no langid`\n\ne.g.: run as root via sudo:\n\n```bash\nsudo python __main__.py\n```\n\nOr create udev role.\n\n```bash\ncat - \u003e /etc/udev/rules.d/40-Polar_A360.rules \u003c\u003c EOF\n#Polar A360 permissions granted to users group\nSUBSYSTEM==\"usb\", ATTRS{idProduct}==\"0008\", ATTRS{idVendor}==\"0da4\", MODE=\"0660\", GROUP=\"plugdev\"\nSUBSYSTEMS==\"usb-serial\", MODE=\"0660\", GROUP=\"plugdev\"\nEOF\n\nudevadm control --reload-rules \u0026\u0026 udevadm trigger\n```\n\n### Dependencies\n* [protobuf](https://pypi.python.org/pypi/protobuf/3.0.0b2) \n* [pywinusb](https://pypi.python.org/pypi/pywinusb/) (Windows)\n* [pyusb] (https://github.com/walac/pyusb) (Linux, \u003e 1.0.0rc1)\n\n#### for debian/ubuntu:\n```bash\nsudo apt install python-protobuf python-usb\n```\n\n## Changelog\n[Here](https://github.com/rsc-dev/loophole/blob/master/CHANGELOG.md).\n\n## License\nCode is released under [MIT license](https://github.com/rsc-dev/loophole/blob/master/LICENSE.md) © [Radoslaw '[rsc]' Matusiak](https://rm2084.blogspot.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsc-dev%2Floophole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsc-dev%2Floophole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsc-dev%2Floophole/lists"}