@@ -29,6 +29,11 @@ Here's an example of using the Python library, complete with caching results:
loader.add_loader(loaders.OXRAPIRequest(APP_ID_STRING))
with loader.historical(DATE, BASE_CODE_STRING) as json_response:
hist_rate = rate.Rate.from_json_file(json_response)
if loader.should_cache():
cache_writer.save_rate(hist_rate)
# Rates are available from the hist_rates.rates dict.
Running tests
-------------
Run `./setup.py test` from your checkout directory.