Skip to main content

pymoof

ReadTheDocs PyPI version Tests

Connect to your Vanmoof S3 and X3 through bluetooth.

Installation

Install python 3.7+, then use pip to install pymoof. pip install pymoof

Usage

pymoof was tested to work on MacOS 12.1, Ubuntu 20.04.3 LTS, and a Raspberry Pi 3 b+ running Raspberry Pi OS (32-bit) / 2021-10-30.

from pymoof.clients.sx3 import SX3Client
import bleak

...

device = ...
encryption_key = ...
user_key_id = ...

async with bleak.BleakClient(device) as bleak_client:
	client = SX3Client(bleak_client, encryption_key, user_key_id)
	await client.authenticate()

You must have an instantiated bleak client that is connected to the bike. See pymoof.tools.discover_bike to determine which device is your bike and pymoof.tools.retrieve_encryption_key to connect to Vanmoof servers to get your encryption key.

See example.py for additional usage.

Contributing

Contributions are welcome and encouraged! Every bit helps and credit will be given.

Ways you can help:

Reporting Bugs

You can report bugs through the github issue tracker: https://github.com/quantsini/pymoof/issues

Useful information to include when reporting bugs:

  • Version of pymoof
  • The operating system where pymoof was used
  • What Vanmoof bike was used
  • Detailed steps on reproducing an issue

Help with reverse engineering

Vanmoof bikes communicate through Bluetooth Low Energy. I've tried my best to get all the BLE GATT UUIDs, however, some reverse engineering is needed to figure out what the payloads represent. I suggest using a packet sniffer like wireshark to analyze data from the official Vanmoof app and the bike.

Writing Documentation

Good documentation is always good!

Getting Started with Development

You want to contribute? Awesome! Here are some steps to get you up and running. This project uses Poetry for package and dependency management and tox for tests.

  1. Create a fork of the pymoof github repo.
  2. Clone it locally:
git clone git@github.com:<your username>/pymoof.git
  1. Get the latest version of poetry, a package and dependency management tool.
  2. Install dependencies
poetry install
  1. Activate your shell. This should put you in a virtualenv that allows you to run tests.
poetry shell
  1. You should now be able to run tests and make modifications. You can run tests by running tox under poetry
poetry run tox
  1. Go forth and make great changes!

Metadata

Release files for pymoof 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymoof 0.0.6
File Size Uploaded Provenance Actions
pymoof-0.0.6.tar.gz 9.6 kB Without provenance Details for pymoof-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymoof 0.0.6
File Interpreter ABI Platform Actions
pymoof-0.0.6-py3-none-any.whl Python 3 none any Details for pymoof-0.0.6-py3-none-any.whl

Total release size: 19.1 kB

Release files / pymoof-0.0.6.tar.gz

Download URL pymoof-0.0.6.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
82d81e18df00d7716efc9122123b78061afaa76fa73851833194d9005b149a43
BLAKE2b-256 checksum
How to use checksums
b1ebd7a2ccc60a538e5139cd1da8af2e5c340a66f739ed37f4450c0875a3d9ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.3.0

Release files / pymoof-0.0.6-py3-none-any.whl

Download URL pymoof-0.0.6-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7381129968ba5f2c957adfd52282eeb4762e9338df33f98f8a8b3e7d7ce9f11
BLAKE2b-256 checksum
How to use checksums
d7dacabf62685fe33a5a7c023f4665496584ede28024e80ee9cc48ad1641b449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.3.0

Security for pymoof 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page