Skip to main content

ebike-connect

Python library to get rides and trips from the Bosch eBike Connect platform.

GitHub Workflow Status PyPI PyPI - License PyPI - Downloads

Installation

The package is available on PyPI. Installation can be done with your favourite package manager. For example:

pip install ebike-connect

Usage

Initialize a client with your username and password:

from ebikeconnect.client import EBikeConnectClient


client = EBikeConnectClient.login("username", "password")

The eBike Connect api provides rides and trips, where a ride is a single uninterrupted ride, and a trip is a collection of rides (all rides on a single day?).

Rides and trips can be listed with the following methods:

def find_rides(
    self, from_datetime: datetime | None = None, to_datetime: datetime | None = None
) -> Iterable[EBikeConnectRide]

This returns an iterable of EBikeConnectRide dataclasses, which have the following fields:

    id: str
    start_time: datetime
    end_time: datetime
    driving_time: timedelta
    type: str
    status: int
    total_distance: float
    title: str
    calories: float
    avg_speed: float
    max_speed: float
def find_trips(
    self, from_datetime: datetime | None = None, to_datetime: datetime | None = None
) -> Iterable[EBikeConnectTrip]:

This returns an iterable of EBikeConnectTrip dataclasses, which have the following fields:

    id: str
    start_time: datetime
    end_time: datetime
    driving_time: timedelta
    type: str
    status: int
    total_distance: float
    ride_ids: list[str]

In addition, ride details (with many additional fields) can be obtained by calling:

def get_ride(self, id: str) -> EBikeConnectRideDetails

Metadata

Release files for ebike-connect 0.0.3

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

Source distribution (sdist)

Source distribution for ebike-connect 0.0.3
File Size Uploaded Provenance
ebike_connect-0.0.3.tar.gz 8.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ebike-connect 0.0.3
File Interpreter ABI Platform
ebike_connect-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / ebike_connect-0.0.3.tar.gz

Download URL ebike_connect-0.0.3.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b842f87fb6cd5d98c61648299ef8a62db21e8ff0f717f65addd4d31485ea9850
BLAKE2b-256 checksum
How to use checksums
cdf8d3281dd4aea0e767b805ea385ad9010e14aee7249149eb586dac62fba8da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ebike_connect-0.0.3-py3-none-any.whl

Download URL ebike_connect-0.0.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33fe3f25ffe05ae3023c4c706ae1deb6528863e3393dbc22094de756c45b6352
BLAKE2b-256 checksum
How to use checksums
a4027e18fe4fa40a99f3aa8ca5ae58b4d64cd9a03ec8602ab7b83e5b1ec1938b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for ebike-connect 0.0.3

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