You need to call define_units()
in the predefined
sub-module to use this package.
import units
import units.predefined
units.predefined.define_units()
one_liter = unit('L')(1)
unit('mL')(one_liter)
I think this package could have been better designed -- as you've discovered, it's easy to accidentally use user-defined units rather than standard ones.