Skip to main content

A Python library for fetching currency rates from the Central Bank of Azerbaijan Republic (CBAR) XML file.

Project description

CBAR Currency Rates

Purpose

cbar-currency-rates serves the purpose of providing easy access to currency exchange rates from the Central Bank of Azerbaijan Republic (CBAR) XML file. It enables developers to integrate up-to-date currency rates into their applications, facilitating financial calculations and analysis.

Installation

You can install cbar-currency-rates via pip:

pip install cbar-currency-rates

Usage

from cbar_currency_rates import rates

# Instantiate CBARRates object
cbar = rates.CBARRates()

# Get currency rates
rates = cbar.get_rates()

# Print currency rates
for code, value in rates.items():
    print(code, "-", value)

Testing

cbar-currency-rates includes comprehensive test coverage to ensure reliability and accuracy. To run the tests, you can use pytest:

pip install pytest
pytest

Contribution Guidelines

Contributions to cbar-currency-rates are welcome and encouraged! To contribute, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -am 'Added some feature').
  4. Push your changes to your branch (git push origin feature/my-feature).
  5. Submit a pull request with a clear description of your changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbar_currency_rates-1.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

cbar_currency_rates-1.1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page