https://github.com/half2me/libant
Python Ant+ Library
https://github.com/half2me/libant
Last synced: 9 months ago
JSON representation
Python Ant+ Library
- Host: GitHub
- URL: https://github.com/half2me/libant
- Owner: half2me
- License: mit
- Created: 2016-08-18T18:03:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T11:09:37.000Z (about 6 years ago)
- Last Synced: 2024-12-06T21:55:08.485Z (over 1 year ago)
- Language: Python
- Size: 143 KB
- Stars: 27
- Watchers: 8
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LibAnt
[](https://travis-ci.org/half2me/libant)
[](https://scrutinizer-ci.com/g/half2me/libant/?branch=master)
[](https://raw.githubusercontent.com/half2me/libant/master/LICENSE)
[](https://gitter.im/libant/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
A Python implementation of the ANT+ Protocol
The goal of this project is to provide a clean, Python-only implementation of the [ANT+ Protocol](https://www.thisisant.com). Usage of the library should require little to no knowledge of the ANT+ Protocol internals. It should be easy to use, easy to read, and have proper error handling.
This project was born when I decided to completely rewrite the [python-ant library](https://github.com/mvillalba/python-ant) from scratch, after not finding a fork that suited my needs. There were so many different forks of the original project, each with their own patches, but not a properly useable one. Because of this, there may be parts of the code which look similar to the python-ant library, as I have their code as a reference.
## Installing
For the stable version: `pip3 install antlib`
For the latest clone the repo and do `./setup.py install` under UNIX systems or `python setup.py install` on windows (Make sure to use python3)
## Usage
See usage examples in the `demos` folder.
If you want to use the serial driver under linux, either run the script as root, or add your user to the `dialout` group with:
```bash
sudo adduser yourusername dialout
```
## Known bugs
The usb driver has a bug which requires you to replug your ANT+ stick every time you run a demo script. So until we get that fixed, I suggest you stick to the serial driver, which is stable.