DEPRECATED
MyFitnessPal are moving to a new API protocol. This library implements the original V1 binary protocol - it’s unknown how long that API will be supported.
You may have better luck with this V2 library: https://github.com/coddingtonbear/python-myfitnesspal
mfpsync
MyFitnessPal sync API client. Consists of a program that outputs sync data as a JSON object, and a Python library for programmatic use.
Command-line:
$ pip install mfpsync
$ mfpsync USERNAME PASSWORD
[
...
{
"type": "Food",
"data": {
"original_master_id": 13599087,
"is_deleted": false,
"description": "Oats",
"nutrients": {
"calories": 371.0,
"fat": 8.0,
"protein": 12.0,
"carbohydrates": 59.0,
...
]
Python:
from mfpsync import Sync
for packet in Sync(username, password).get_packets():
print packet
Metadata
Release files for mfpsync 0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mfpsync-0.13.tar.gz | 10.6 kB | Without provenance | Details for mfpsync-0.13.tar.gz |
Release files / mfpsync-0.13.tar.gz
| Download URL | mfpsync-0.13.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c76e49204e186c4b0e0b189beddce4d94c70a4b70c4b4a85ed1f2a953c7e2e0f
|
|
BLAKE2b-256 checksum How to use checksums |
48550214e9ff8e7be8ab088abff15f7e05c891f388c7ed24c258458d309e9c32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mfpsync 0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.