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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73084dfeadcdac24e0c3e6138f8ad549b87de24ec3fe05d802c9aba75b2be847 |
|
MD5 | b0a7d3dc75160dc0e39b3ff5263fc5ad |
|
BLAKE2b-256 | 558be5925f4428751567391d6f41da330dd51e23498e4796fa2b9880f36b3ed3 |