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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for myfitnesspal-to-sqlite-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8939b69271a041d1a544cf15c3e8cb96e5d226e2154ab444525fea45167af55d
MD5 cd5a6f9a0a8dd351e25d1db657522436
BLAKE2b-256 feff3e997f166b5cdb9a81e41c1701b0221b8a4e74284cdb47023025d9bc05cb

See more details on using hashes here.

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

Hashes for myfitnesspal_to_sqlite-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd5fe723bd67764dd9b6f92be7e7e772734d4747a7ee30afd768d931e0d86d6a
MD5 91cec97c5947d0a36a337af685232dd1
BLAKE2b-256 8926943fc4337a9f71521830f9ce30c1cdeaa8ccb6c8d2014d73f16d0eb3c3f4

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