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

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:

  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.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

cbar_currency_rates-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for cbar_currency_rates-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ca40b4aed79f5065b64765577b1b67ae32ae7da8d687b0e434a198508be3ff81
MD5 523eabf512d5b1868a25873f2b318419
BLAKE2b-256 fe8c55e926b91218a008f4493319264a9f7c9162ef0f77f9e8349ae974499bc5

See more details on using hashes here.

File details

Details for the file cbar_currency_rates-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cbar_currency_rates-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4804e87525e1906feedb6036469742f3efc1ddcb9c33b0fff7b50834331b039
MD5 33c3072fea11a22a926f8f9f56913cb7
BLAKE2b-256 dd97143cb469d4effa42425364b0ff9c5561cca7f4790c0f52fd2215ff226a8a

See more details on using hashes here.

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