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
File details
Details for the file myfitnesspal-to-sqlite-0.2.1.tar.gz
.
File metadata
- Download URL: myfitnesspal-to-sqlite-0.2.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b4ace65b3146791176390eaf05d79a7558197fc820fdd5f7bf00d11d876f1c |
|
MD5 | 8ee8c269f9207bde3e6cb0b7cdff9dfc |
|
BLAKE2b-256 | 3401b26bce5b79cbf609d21f411b381973772b7c8844b7b032f6c98fa07af411 |
File details
Details for the file myfitnesspal_to_sqlite-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: myfitnesspal_to_sqlite-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46659cbbb4c27634af321647ecf51f6da2e899454efc78cb98f93d94809417e |
|
MD5 | 9423de964f8364aef3fa63b4b06087e2 |
|
BLAKE2b-256 | 280b4211f5bb1e503aeb8467b1e07cc88f58b5d889dec39204291fa7af6cc809 |