A Python library for fetching currency rates from the Central Bank of Azerbaijan Republic (CBAR) XML file.
Project description
CBAR Currency Rates
Certainly! Here's the README.md file with the purpose, usage, installation, testing, and contribution guidelines in both Azerbaijani and English:
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
File details
Details for the file cbar_currency_rates-1.0.0.tar.gz
.
File metadata
- Download URL: cbar_currency_rates-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca40b4aed79f5065b64765577b1b67ae32ae7da8d687b0e434a198508be3ff81 |
|
MD5 | 523eabf512d5b1868a25873f2b318419 |
|
BLAKE2b-256 | fe8c55e926b91218a008f4493319264a9f7c9162ef0f77f9e8349ae974499bc5 |
File details
Details for the file cbar_currency_rates-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: cbar_currency_rates-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4804e87525e1906feedb6036469742f3efc1ddcb9c33b0fff7b50834331b039 |
|
MD5 | 33c3072fea11a22a926f8f9f56913cb7 |
|
BLAKE2b-256 | dd97143cb469d4effa42425364b0ff9c5561cca7f4790c0f52fd2215ff226a8a |