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.2.tar.gz
.
File metadata
- Download URL: myfitnesspal-to-sqlite-0.2.2.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8939b69271a041d1a544cf15c3e8cb96e5d226e2154ab444525fea45167af55d |
|
MD5 | cd5a6f9a0a8dd351e25d1db657522436 |
|
BLAKE2b-256 | feff3e997f166b5cdb9a81e41c1701b0221b8a4e74284cdb47023025d9bc05cb |
File details
Details for the file myfitnesspal_to_sqlite-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: myfitnesspal_to_sqlite-0.2.2-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5fe723bd67764dd9b6f92be7e7e772734d4747a7ee30afd768d931e0d86d6a |
|
MD5 | 91cec97c5947d0a36a337af685232dd1 |
|
BLAKE2b-256 | 8926943fc4337a9f71521830f9ce30c1cdeaa8ccb6c8d2014d73f16d0eb3c3f4 |