Skip to main content

Complete solution for extracting currency pair quotes data. With comprehensive testing, parameter validation, flexible configuration management, Hexagonal Architecture, CI/CD pipelines, code quality tools, and detailed documentation.

Project description

currency-quote-wrapper: Complete solution for extracting currency pair quotes data.

Project description

Complete solution for extracting currency pair quotes data. With comprehensive testing, parameter validation, flexible configuration management, Hexagonal Architecture, CI/CD pipelines, code quality tools, and detailed documentation.

PyPI - Status

PyPI - Downloads

PyPI - Version

PyPI - Python Version

CI CD

Codecov

Project Stack

Python  Docker  Poetry  GitHub Actions  CodeCov  pypi  pandas  pytest 

Project Highlights:

  • Comprehensive Testing: Development of tests to ensure the quality and robustness of the code

  • Parameter Validation: Sending valid parameters based on the request data source itself, ensuring the integrity and accuracy of the information processed.

  • Configuration Management: Use of a configuration module to manage endpoints, retry times and number of attempts, providing flexibility and ease of adjustment.

  • Hexagonal Architecture: Adoption of Hexagonal Architecture to decouple the core logic from external dependencies, ensuring that any current data source can be replaced seamlessly in case of unavailability. This is facilitated by the use of adapters, which act as intermediaries between the core application and the external services.

  • Cotinuous Integration and Continuous Deployment: Use of CI/CD pipelines to automate the build, test and deployment processes, ensuring that the application is always up to date and ready for use.

  • Code Quality: Use of code quality tools such as linters and formatters to ensure that the codebase is clean, consistent and easy to read.

  • Documentation: Creation of detailed documentation to facilitate the understanding and use of the application, including installation instructions, usage examples and troubleshooting guides.

Contributing

See the following docs:

How to get currency quotes using this library

## Importing library
from currency_quote import CurrencyQuote, ClientBuilder

# For get the last quote of one currency
client = ClientBuilder(currency=CurrencyQuote(currency_list=["USD-BRL"]))
# or get quotes of multiple currencies
client = ClientBuilder(
    currency=CurrencyQuote(currency_list=['USD-BRL', 'EUR-BRL'])
)

# Get the last quote
print(client.get_last_quote())
# Get history quote of currency
print(client.get_history_quote(reference_date=20220101))

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

currency_quote-2.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

currency_quote-2.0.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file currency_quote-2.0.1.tar.gz.

File metadata

  • Download URL: currency_quote-2.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure

File hashes

Hashes for currency_quote-2.0.1.tar.gz
Algorithm Hash digest
SHA256 270fffc5b33b71a2db35a6ac27f5444e7c3cf235dea4427be8d520b29b7a256f
MD5 20924f42db5e2fb64ef53bce57c1f696
BLAKE2b-256 9887e1568172c84ba39123d798a58504e960846e8743d719c7037f6620d1e959

See more details on using hashes here.

File details

Details for the file currency_quote-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: currency_quote-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure

File hashes

Hashes for currency_quote-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ce2e02c72fa514986a97bb7565eca8e06d0401d386a5fd6c2e55c495fba5c6
MD5 a5aa6a8b6a33a90b14bbc60ac20b2ae9
BLAKE2b-256 a52593a844643eba1a0f08b455ccfd2a5bbdf28a12d81cc5320b55244d1df526

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