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:
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cbar_currency_rates-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae8f0a3a29a01e236ae38f628d86fb51500823eb8c64e6fc9a936bc61ef6d970 |
|
MD5 | cff8cf7868e63d67be2a49f3dd7484f5 |
|
BLAKE2b-256 | 9793266772afd7adc5dbc02e51ed98cf075bc08cf9d35c3f557a2391508bf182 |
Hashes for cbar_currency_rates-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5dfaac082fe6815d98eab6732c63f1d7f558def653fe6050f023a1d3cfa5314 |
|
MD5 | 9e78109e6ec58c87f72c7e457e608b88 |
|
BLAKE2b-256 | 34f37be6e57787fe508e3dc7cbdf4cb541665fdca8c8fa1b2892a926e9b44a77 |