Skip to content

pvince/myfitnesspal-sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 setup 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

Releases

No releases published

Packages

No packages published