Save data from MyFitnessPal to a SQLite database
Project description
myfitnesspal-to-sqlite
Save data from MyFitnessPal to a SQLite database.
Installation
Install this tool using pip
:
$ pip install myfitnesspal-to-sqlite
Authentication
This tool relies on python-myfitnesspal
, which allows authentication via the system keyring.
Install python-myfitnesspal
using pip
:
$ pip install myfitnesspal
Store your MyFitnessPal password in the system keyring:
$ myfitnesspal store_password my_user
Note that all commands assume that your password is stored in the system keyring.
Fetching diary entries
The diary
command retrieves food, exercise, goal and measurement entries for a given user and date.
$ myfitnesspal-to-sqlite diary myfitnesspal.db my_user 2021-07-14
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd myfitnesspal-to-sqlite
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
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
Hashes for myfitnesspal-to-sqlite-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0456bce580aa734225068750fbb051e3587b65f60090d94870fa70a99415bd25 |
|
MD5 | 229db5695fd063d5ea265ff1f083c23b |
|
BLAKE2b-256 | 9832f0b49ddaffe2c67adcd6a3f0d155f8dddc75182d0e53041490caaf160813 |
Hashes for myfitnesspal_to_sqlite-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 273dec19c8132862a73d551a9d18b4e5674fbeae8a43e990bb4121fac17037fd |
|
MD5 | e3eb0baa7c3634fb9f1643a8e85846ca |
|
BLAKE2b-256 | 94f9d31651595cd8c8a04a0dac047cf6f10541d7ac89cc9a02c368f53de28d8f |