semvec/pypi-packages huggingface dataset:
ebike-dl 0.3.3
Bosch eBike Connect Activity Downloader
License: MIT
Requires Python: >=3.10,<4.0

[![PyPI version](https://badge.fury.io/py/ebike-dl.svg)](https://badge.fury.io/py/ebike-dl)

# ebike-downloader

Bosch eBike Connect Activity Downloader (https://www.ebike-connect.com/dashboard)
Fetch activities by dates and download a copy of the rides.

## Install

ebike-downloader uses [poetry](https://python-poetry.org/).

You can easily run it using

```bash
pipx install ebike-dl
```

## Run

```
ebike-dl fetch --since 2022-06-15 --out-dir out --login=foo --password=bar
```

where login passwords are from the ebike-connect.com portal.

You'll then get the downloaded files (1per ride) in the folder ./out
(you can also use env variable to provide login, password, ... see --help)

## To GPX

You have the ability to download GPX on Bosch's portal, but those do not contain any additional info like power, cadence or heart_rate.
by using `to-gpx` you can get a gpx with all those things (in gpx extension it might not be supported by the average gpx reader...)

```
ebike-dl to-gpx --file out/myid.json
# output out/myid.pgx
```

Used extensions:

    gpxtpx http://www.garmin.com/xmlschemas/TrackPointExtension/v2
    pwr http://www.garmin.com/xmlschemas/PowerExtension/v1

## To KML 2.2

there is also the ability to transform those to KML (ofc some info will be lost)

```
ebike-dl to-kml --file out/myid.json
# output out/myid.kml
```

## Acknowledgements

- [Cycliste Urbain](https://gitlab.com/cycliste-urbain/resources)

## Authors

- [@eMerzh](https://www.github.com/eMerzh)
pykvs-lite 0.1.8
Simple and convenient Key-value Store Library
License: MIT

# pykvs_lite

Key-Value Store for Python

## Features

- Simple and convenient Key-value Store Library
- Easy to install (Use SQLite for the back end)

## Installation

```
$ python3 -m pip install pykvs_lite
```

## Repository

- [GitHub](https://github.com/kujirahand/pykvs_lite)


## Simple sample

The pykvs has set and get method.
However, you need to connect to the file before you use it.

```simple.py
import pykvs_lite as kvs

# connect to KVS
kvs.connect('test.db')

# set
kvs.set('hoge', 1234)

# get
print(kvs.get('hoge'))
# get default value
print(kvs.get('hoge_1st', 'not exists'))

# close
kvs.close()
```

## Enum keys

```sample.py
import pykvs_lite as kvs
import json

# connect and set
kvs.connect('test.db')
kvs.set('hoge', 1234)
kvs.set('fuga', 'いろは')
kvs.set('foo', [1,2,3])

# enums
for key in kvs.keys():
    print(key, '=', json.dumps(kvs.get(key), ensure_ascii=False))

# dump to json
print(kvs.dump_json())
kvs.close()
```

## Use Multi tables

It can use multi tables.

```multi_table.py
import pykvs_lite as kvs

# set table_name
kvs.connect('test.db', table_name='no1')
kvs.set('hoge', 123)

# change table_name
kvs.connect('test.db', table_name='no2')
print(kvs.get('hoge', 'not_exists')) # show 'not_exists'
```

## only memory

```memory.py
import pykvs_lite as kvs

# set table_name
kvs.connect()
kvs.set('hoge', 123)
print(kvs.get('hoge'))
```