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 food, exercise, and goal diary entries for a user

The diary command retrieves food, exercise, and goal diary entries for a given user and date.

$ myfitnesspal-to-sqlite diary myfitnesspal.db my_user 2021-07-14

Fetching measurements for a user

The measurements command fetches a given measurement's values between two dates (inclusive).

$ myfitnesspal-to-sqlite measurements myfitnesspal.db my_user Weight 2021-07-14 2021-07-21

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.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

myfitnesspal_to_sqlite-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myfitnesspal-to-sqlite-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 73d373210131db1585955df5b58816060ab8d030622b7b630e0ef345f303a4a6
MD5 177b068be9712d97bf2687f3622a68bb
BLAKE2b-256 4ccddc8e1d9b2a3f42887fe250a4329fc6020c84a1fcf2d5dbfec1eddc1f3222

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myfitnesspal_to_sqlite-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 167cd20b0e155b393d0411490924aebde54c53741bf1b9ceccab940123502015
MD5 66c30738e7e2d8eabacd6701c9850e4a
BLAKE2b-256 055888110d8e377994a56448c4d1c00405274b2c7e12f440537aacb192a48575

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