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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3dc19b662bd4df74ff19d55f005a83bbbbb644ce6dc738d2f319c7e7db00891 |
|
MD5 | 979e6c44560bc6a5ebea829d8ed8545a |
|
BLAKE2b-256 | 0deac894137c64f08285e7ce31d6a41cad7be116b32e994b515771fb25504cde |