mmacedoeu / usdquotes

Currency quotes from BACEN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usdquotes

This will get currency quotes from BACEN and among them will display the lowest quote in USD

Features

Setup

Install Python 3.8.2 with Pyenv: pyenv install 3.8.2 Create a virtualenv: pyenv virtualenv 3.8.2 usdquotes Setup virtualenv on project folder: pyenv local usdquotes Install dependencies: pip install -r requeriments.txt

Run

Get help:

python -m usdquotes.main --help

Usage: main.py [OPTIONS] [%Y%m%d]

  USD Quotes, Get lowest currency against USD

  Provide a Date in format YYYYMMDD as argument to CLI

  Example: python -m usdquote.main 20191131

Options:
  --version             Show version info
  --install-completion  Install completion for the current shell.
  --show-completion     Show completion for the current shell, to copy it or
                        customize the installation.

  --help                Show this message and exit.

Get version:

python -m usdquotes.main --help

Awesome USD Quotes Version: 1.0.0

Get Quote for specific date:

python -m usdquotes.main 20171101

asciicast

Testing

Run pytest:

pytest

About

Currency quotes from BACEN

License:Other


Languages

Language:Python 100.0%