ureg = pint.UnitRegistry()
Q = ureg.Quantity
ureg.define(UnitDefinition('percent', 'pct', (), ScaleConverter(1 / 100.0)))
a = Q(5, 'pct')
print(a)
print(a.to('dimensionless'))
How to define and use percentage in Pint