Skip to main content

A CLI to convert different currencies.

Project description

Currency Converter CLI

A Command Line Interface made with Python that convertes different currencies from all the world.

GitHub issues Code style: black GitHub license

This is a small project using Typer focusing in learning. The application takes an argument and two optional parameters, the base currency and the target currency, the default is 'BRL' (Brazilian Real) and 'USD' (US Dolar) in that order. After that, the program makes a request to ExchangeRate-API, which responds with the calculated conversion.

Table of Contents

Know Issues - Instalation - Making changes - Contributing - License

Know Issues

  • ExchangeRate-API imposes a monthly quota of 1500 requests, limiting the usage of the application. Unfortanately, this can't be fixed.

Instalation

Pip Instalation

pip install currenapp

Go to [[https://www.exchangerate-api.com/]] and Get a Free Key, once you have your key set it on your machine

export EXCHANGERATE_KEY='YOUR KEY'

And it's done. You are free to use the application.

Making changes

If you want to make changes to this project you need to clone this repository and have poetry installed. After cloning, go to the project's directory and initialize the poetry, don't forget to install the dependencies.

poetry install

Create and set your api key in [[https://www.exchangerate-api.com/]] as in Instalation.

To run the project use poetry run python currenapp/main.py or start the poetry shell to skip these commands.

poetry shell
python currenapp/main.py

Contributing

Issues and Pull Request are welcomed. If you want to make suggestions, ask or discuss anything, open a issue.

License

MIT

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

currenapp-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

currenapp-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file currenapp-1.0.0.tar.gz.

File metadata

  • Download URL: currenapp-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for currenapp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2595ffac0a6b6847e5622ab6fe6add9938c848ceb895bce660100c5574291d92
MD5 cf1691106306afcd2fa861ca2ea21b2d
BLAKE2b-256 25fdb4e62d24d3bb9735ad061e9d951558a0ae3a785b3a2dbb91e7af3844d976

See more details on using hashes here.

File details

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

File metadata

  • Download URL: currenapp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for currenapp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6585f952b05c488fc72ed1cd3f479d47613eb7bb62d1d20a08d6e6778b88afbd
MD5 582bc870cf1b8ac006342fd807807199
BLAKE2b-256 cd5c19be49af701675521cb551911e60b25334c87c5735c32f9b2beb66c9cec2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page