All Projects → rsc-dev → Loophole

rsc-dev / Loophole

Licence: mit
Polar devices Python API and CLI.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Loophole

Run
⚡The resource runtime
Stars: ✭ 90 (-33.82%)
Mutual labels:  api, cli
N26
API and CLI to get information of your N26 account
Stars: ✭ 107 (-21.32%)
Mutual labels:  api, cli
Rundeck Cli
CLI tool for Rundeck
Stars: ✭ 98 (-27.94%)
Mutual labels:  api, cli
Hopp Doc Gen
📔 API documentation generator CLI for https://hoppscotch.io
Stars: ✭ 70 (-48.53%)
Mutual labels:  api, cli
Novagram
An Object-Oriented PHP library for Telegram Bots
Stars: ✭ 112 (-17.65%)
Mutual labels:  api, cli
Mojo Weixin
使用Perl语言(不会没关系)编写的个人账号微信/weixin/wechat客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,181 (+768.38%)
Mutual labels:  api, cli
Schema Registry
A CLI and Go client for Kafka Schema Registry
Stars: ✭ 105 (-22.79%)
Mutual labels:  api, cli
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+6024.26%)
Mutual labels:  api, cli
Httpcat
httpcat is a simple utility for constructing raw HTTP requests on the command line.
Stars: ✭ 109 (-19.85%)
Mutual labels:  api, cli
Src Cli
Sourcegraph CLI
Stars: ✭ 108 (-20.59%)
Mutual labels:  api, cli
Cross Platform Node Guide
📗 How to write cross-platform Node.js code
Stars: ✭ 1,161 (+753.68%)
Mutual labels:  api, cli
Freenom Dns Updater
A tool to update freenom's dns records
Stars: ✭ 117 (-13.97%)
Mutual labels:  api, cli
Mattersend
Library and CLI utility to send messages to mattermost's incoming webhooks
Stars: ✭ 68 (-50%)
Mutual labels:  api, cli
Pypistats
Command-line interface to PyPI Stats API to get download stats for Python packages
Stars: ✭ 86 (-36.76%)
Mutual labels:  api, cli
Cloudflare Cli
CLI utility managing CloudFlare services using CloudFlare API
Stars: ✭ 61 (-55.15%)
Mutual labels:  api, cli
Cryptocurrency Cli
💰 Cryptocurrency Portfolio On The Command Line 💰
Stars: ✭ 99 (-27.21%)
Mutual labels:  api, cli
Cli
GraphQL back-end framework with first-class Typescript support
Stars: ✭ 37 (-72.79%)
Mutual labels:  api, cli
Nodejs
Everything related to the Node.js ecosystem for the commercetools platform.
Stars: ✭ 47 (-65.44%)
Mutual labels:  api, cli
Cjstoesm
A tool that can transform CommonJS to ESM
Stars: ✭ 109 (-19.85%)
Mutual labels:  api, cli
Python N26
💵 Unofficial Python client for n26 (Number 26) - https://n26.com/
Stars: ✭ 116 (-14.71%)
Mutual labels:  api, cli

loophole - Polar devices API

PyPI Join the chat at https://gitter.im/rsc-dev/loophole

About

Python API for Polar devices. Command line interface included.

Tested with:

  • A360
  • Loop
  • M400

Installation

pip install loophole

or

python setup.py install

Usage

CLI

Invoke CLI:

python __main__.py

Type '?' or 'help' to see available commands.

 _|                                _|                  _|
 _|    _|_|      _|_|    _|_|_|    _|_|_|      _|_|    _|    _|_|
 _|  _|    _|  _|    _|  _|    _|  _|    _|  _|    _|  _|  _|_|_|_|
 _|  _|    _|  _|    _|  _|    _|  _|    _|  _|    _|  _|  _|
 _|    _|_|      _|_|    _|_|_|    _|    _|    _|_|    _|    _|_|_|
                         _|
                         _|
                                                           ver. 0.3

loophole(no device)>?

Documented commands (type help <topic>):
========================================
connect  disconnect  exit  help  info  list  walk
Command Description
connect <dev_no> Connect Polar device. Run 'list' to see available devices.
disconnect Disconnect Polar device.
dump <dest> Dump device memory.
get <src> <dest> Read file from device.
exit Quit.
help List available commands with "help" or detailed help with "help cmd".
info Print connected device info.
list List available Polar devices.
walk [path] Walk file system. Default path is root path (\).

permissions

Note: You need the right permission to access the USB device. Otherwise you will get the error: The device has no langid

e.g.: run as root via sudo:

sudo python __main__.py

Or create udev role.

cat - > /etc/udev/rules.d/40-Polar_A360.rules << EOF
#Polar A360 permissions granted to users group
SUBSYSTEM=="usb", ATTRS{idProduct}=="0008", ATTRS{idVendor}=="0da4", MODE="0660", GROUP="plugdev"
SUBSYSTEMS=="usb-serial", MODE="0660", GROUP="plugdev"
EOF

udevadm control --reload-rules && udevadm trigger

Dependencies

for debian/ubuntu:

sudo apt install python-protobuf python-usb

Changelog

Here.

License

Code is released under MIT license © Radoslaw '[rsc]' Matusiak.

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].