Say I have a set of strings, for example:
"5 m^2" "17 sq feet" "3 inches" "89 meters"
Is there a Python package that will read such lines, convert them to SI, and return the result in a convenient form for use? For example:
>>> a=dream_parser.parse("17 sq feet") >>> a.quantity 1.5793517 >>> a.type 'area' >>> a.unit 'm^2'
python units-of-measurement
Richard
source share