A Python wrapper for Komoot APIs
Project description
Kompy
Overview
Kompy is a wrapper for Komoot APIs that allows you to download and upload your activities from Komoot.
A documentation can be found here.
Features
- Download Activities from Komoot: Download your activities from Komoot to GPX, FIT or Custom Object format.
- Upload Activities to Komoot: Upload your activities to Komoot from GPX, FIT files.
- Download Tours from Komoot: Download your tours from Komoot
Installation
To get started with the Kompy, follow these steps:
-
Ensure you have Python installed on your system. This app is compatible with Python 3.11 and above.
-
pip the package:
pip install kompy
-
Import the package to your project:
import kompy as kp
Usage
For a more detailed usage example, please check this notebook.
The most basic usage is:
- Create a connector:
from kompy import KomootConnector connector = KomootConnector(password=..., email=...)
- Fetch your activities:
tours_list = connector.get_tours(user_identifier=None)
Run the tests
To run the tests (locally), run:
pytest .
or
python -m unittest
Contributing
Contributions to Kompy are welcome! If you have a suggestion that would make this app better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Acknowledgements
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kompy-0.0.8.tar.gz
.
File metadata
- Download URL: kompy-0.0.8.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a18300f14fef683dee36c0d037899beb084270f1b23b6aac0d404e1db2dfda48 |
|
MD5 | 99617c7097ab303c259c381f8a8e681a |
|
BLAKE2b-256 | b5fd81898c97b2bc09367e71f1d5a443b05224b806ceb96d8af96a2433b80486 |
File details
Details for the file Kompy-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: Kompy-0.0.8-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 581b682133cc55792c8d63921c5291c3949c5b1ad3e8d322548f2d9ab1eacb28 |
|
MD5 | 745fb78ec59b3df715eb670793a53836 |
|
BLAKE2b-256 | 830366f5b81cb8cff5f7ee7c69acf1668133f8de04398c092ad493e05d09c16b |