Skip to content

CBRAPI 0.1.7

Choose a tag to compare

@chilango74 chilango74 released this 11 Apr 14:11
· 16 commits to master since this release

This release improves compatibility with older pandas versions, reduces redundant calls to CBR web services, and adds test coverage for the main public API.

Fixed:

  • wrap XML responses in BytesIO before passing them to pd.read_xml, which restores compatibility with older pandas versions
  • cache make_cbr_client() and get_currencies_list() to avoid duplicate requests to CBR services
  • reuse the cached currencies list inside get_currency_code() instead of requesting it multiple times

Tests:

  • add pytest coverage for the main modules: currency, helpers, metals, rates, reserves, and ruonia