Need to manipulate values collected by HA with a pip library (CoolProp) - best way forward?

Hello,
we are measuring refrigerant pressures from heating and cooling equipment and need to transform that into temperatures. This needs to be done using the CoolProp python library with something along the lines:

# Import the PropsSI function
import CoolProp
from CoolProp.CoolProp import PropsSI

# Get enthalpy for R134a
print(PropsSI('H','P',800000,'Q',0,'HEOS::R134a'))
print(PropsSI('H','T',273+60,'Q',1,'HEOS::R134a'))

What would be the best way to implement this using HA?
Is pyscript the way forward for us or should we create our own integration?

Any ideas greatly appreciated! Thanks!
/Mattias