MicroPyramid / forex-python

Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
http://forex-python.readthedocs.io/en/latest/usage.html
MIT License
661 stars 195 forks source link

Lazy load currency data #106

Closed Robbie-Palmer closed 2 years ago

Robbie-Palmer commented 2 years ago

By using the lazy loading design pattern, with a private field hidden behind a property, duplicate code is removed And the currency.json file will not be read multiple times from disk