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.2.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

myfitnesspal_to_sqlite-0.2.2-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

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