A Python package to convert currency or get exchange rate.
pip install currency-calculator
>>> import currency_calculator
>>> currency_calculator.get("USD", "CNY")
6.5772
>>> currency_calculator.get("USDCNY")
6.5772
>>> import currency_calculator
>>> currency_calculator.convert("1.0USD", "CNY")
6.5772