Parse strings of ingredients to their name, unit, quantity and optional comments.
Project description
parse-ingredients
Parse strings of ingredients to their name, unit, quantity and optional comments.
To install
pip install parse-ingredients
To use
from recipe_searchers import search_recipe
result = search_recipe("12 ounces lean ground beef, preferably 85 percent lean")
print(f"Found results: \n {result}")
search_recipe()
returns an object in the form of:
{
"name": "lean ground beef",
"quantity": 12,
"unit": "oz",
"comment": "preferably 85 percent lean",
"original_string": "12 ounces lean ground beef, preferably 85 percent lean"
}
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
Built Distribution
Close
Hashes for parse_ingredients-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74e365a795a0fd2c98e395b412bd46bfe09a2266d145bea533f639243b0510c |
|
MD5 | 83b65c3037eb3105ac26a6a95ce0643b |
|
BLAKE2b-256 | 9cb035045098d0470f44647cc0db0073b49d461e93330a248ba02e95e37163c8 |