2.0.0 #29
strangetom
announced in
Announcements
2.0.0
#29
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
2.0.0
Caution
This release contains some breaking changes
ParsedIngredient.nameis now a list ofIngredientTextobjects, or an empty list no name is identified.The
quantity_fractionsoptional keyword argument has been removed.IngredientAmount.quantityandIngredientAmount.quantity_maxreturnfractions.Fractionobjects. Conversion tofloatcan be achieved by e.g.:New dependency: floret.
Processing
Identify where multiple alternative ingredients are given for the stated amount. For example
This is enabled by default, but can be disabled by setting
separate_ingredients=Falseinparse_ingredient. If disabled, theParsedIngredient.namefield will be listing containing a singleIngredientTextobject.Set
PREPARED_INGREDIENTflag on amounts in cases likeAdd
convert_to(...)function toIngredientAmountandCompositeIngredientAmountdataclasses to convert the amount to the given units. Conversion between mass and volume is also supported using a default density (density of water) that can be changed.Model
This discussion was created from the release 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions