Say I have a set of strings like the following:
\"5 m^2\"
\"17 sq feet\"
\"3 inches\"
\"89 meters\"
Is there a Python package which will read s
Quantulum will do exactly what you described
Excerpt from its description:
from quantulum import parser
quants = parser.parse('I want 2 liters of wine')
# quants [Quantity(2, 'litre')]
More recently, pint is a good place to start for most of these.
Is there an extension for ipython that can do at least part of what you want. It's called ipython-physics
It does store value and units and allows (at least) some basic math. I have never used it myself, so I don't know how easy would be to use in a python script