portnice.blogg.se

Money translator euro to dollars
Money translator euro to dollars












money translator euro to dollars

money translator euro to dollars

You can change the date of the rate: > from datetime import date # datetime works too > c.

Money translator euro to dollars install#

Or use the Python package: $ pip install -user currencyconverter Command line toolĪfter installation, you should have currency_converter in your $PATH: $ currency_converter 100 USD -to EUR 100.000 USD = 87.512 EUR on Python APIĬreate once the currency converter object: > from currency_converter import Currenc圜onverter > c = Currenc圜onverter ()Ĭonvert from EUR to USD using the last available rate: > c. You can install directly after cloning: $ python setup.py install -user If you need the latest data, please refer to the data section. It uses embedded data in the library, which might not be up to date. Note that the currency converter does not query the API in real time, to avoid the overhead of the HTTP request. The converter can use different sources as long as the format is the same. It can be downloaded here: eurofxref-hist.zip. This is the ECB historical rates for 42 currencies against the Euro since 1999. The default source is the European Central Bank. This is a currency converter that uses historical rates against a reference currency (Euro).














Money translator euro to dollars