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.
You can install cbar-currency-rates via pip:
pip install cbar-currency-rates
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)
cbar-currency-rates includes comprehensive test coverage to ensure reliability and accuracy. To run the tests, you can use pytest:
pip install pytest
pytest
Contributions to cbar-currency-rates are welcome and encouraged! To contribute, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/my-feature
). - Commit your changes (
git commit -am 'Added some feature'
). - Push your changes to your branch (
git push origin feature/my-feature
). - Submit a pull request with a clear description of your changes.