A CLI and Python tool for downloading Fitbit data
Project description
fitbit-downloader
Overview
A CLI and Python tool for downloading Fitbit data
Getting Started
Install fitbit-downloader
:
pip install fitbit-downloader
A simple example:
import fitbit_downloader
# Do something with fitbit_downloader
See a more in-depth tutorial here.
Development Status
This project is currently in early-stage development. There may be breaking changes often. While the major version is 0, minor version upgrades will often have breaking changes.
Developing
First, you need a couple global dependencies installed, see their documentation for details:
Then clone the repo and run npm install
and mvenv sync dev
. Make your changes and then run just
to run formatting,
linting, and tests.
Develop documentation by running just docs
to start up a dev server.
To run tests only, run just test
. You can pass additional arguments to pytest,
e.g. just test -k test_something
.
Prior to committing, you can run just
with no arguments to run all the checks.
Download Sample Responses
Run python -m fitbit_downloader.download_samples
to output JSON files
with the responses.
Generate Response Models
Note: There are currently some manual modifications to the generated files. They are all marked with TODO so that we can work them into the generation. If you re-run the generation, you will need to manually update the files to make the same changes.
Run python -m fitbit_downloader.gen_models
to output response models
in fitbit_downloader.models
from the sample responses.
Author
Created by Nick DeRobertis. MIT License.
Links
See the documentation here.
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 fitbit-downloader-0.3.0.tar.gz
.
File metadata
- Download URL: fitbit-downloader-0.3.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9672451a58473be48efad0abc59d1fa7124da3e11c72a215551f499be3e576b7 |
|
MD5 | 646853d7ee65201348dcf4ee98232470 |
|
BLAKE2b-256 | 754a3456a05ee3189664068f44756e5cfb763f956ebcaf2b4035ddfd9c54c637 |
File details
Details for the file fitbit_downloader-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: fitbit_downloader-0.3.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a2d5440950f6a9ceb4f7be701b1ff212c009a96e164ae5d02d8d3f48400d5e |
|
MD5 | d621641dabb11a6bcd63be085b86af77 |
|
BLAKE2b-256 | 5e8a02ae101f663937bcfa29954f17f51200bf17357eb11c9b6ab4d802ec3327 |