coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
800 stars 138 forks source link

adds attributes 'quantity' 'unit' and 'short_name' to Entry class #47

Closed kittenwhisky closed 7 years ago

kittenwhisky commented 7 years ago

split out 'quantity' and 'measuring unit' from entry name

example: if entry.name is 'Alpro - Soy Milk: Unsweetened, 100 ml' returns the following:

entry.quantity = '100' entry.unit = 'ml' entry.short_name = 'Alpro - Soy Milk: Unsweetened'