Skip to main content

Save data from MyFitnessPal to a SQLite database

Project description

myfitnesspal-to-sqlite

PyPI Changelog Tests License

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

myfitnesspal-to-sqlite-0.2.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

myfitnesspal_to_sqlite-0.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file myfitnesspal-to-sqlite-0.2.0.tar.gz.

File metadata

  • Download URL: myfitnesspal-to-sqlite-0.2.0.tar.gz
  • Upload date:
  • Size: 8.9 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.9

File hashes

Hashes for myfitnesspal-to-sqlite-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0456bce580aa734225068750fbb051e3587b65f60090d94870fa70a99415bd25
MD5 229db5695fd063d5ea265ff1f083c23b
BLAKE2b-256 9832f0b49ddaffe2c67adcd6a3f0d155f8dddc75182d0e53041490caaf160813

See more details on using hashes here.

File details

Details for the file myfitnesspal_to_sqlite-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: myfitnesspal_to_sqlite-0.2.0-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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.9

File hashes

Hashes for myfitnesspal_to_sqlite-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 273dec19c8132862a73d551a9d18b4e5674fbeae8a43e990bb4121fac17037fd
MD5 e3eb0baa7c3634fb9f1643a8e85846ca
BLAKE2b-256 94f9d31651595cd8c8a04a0dac047cf6f10541d7ac89cc9a02c368f53de28d8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page