Skip to main content

Convesor de moedas com base do Real Brasileiro

Project description

converter

O pacote coinverter é utilizado para realizar conversões de moedas de forma simples e rápida, utilizando a API do AwesomeAPI para obter as cotações mais recentes.

Installation

Use the package manager pip to install package_name

pip install coinverter

Usage

from coinverter import cotacao

# Converte 100 dólares americanos (USD) para reais brasileiros (BRL)
valor_convertido = cotacao('USD', 'BRL', 100)
print(f"Valor convertido: {valor_convertido} BRL")

Funções Disponíveis

cotacao(de, para, valor=1)

Converte um valor de uma moeda para outra utilizando a API do AwesomeAPI para obter a taxa de câmbio mais recente.

Parâmetros:

  • de (str): Código da moeda de origem, como 'USD', 'EUR', etc.
  • para (str): Código da moeda de destino, como 'BRL', 'USD', etc.
  • valor (float, opcional): O valor que você deseja converter. O padrão é 1.

Retorno:

  • float: Retorna o valor convertido com base na taxa de câmbio atual.

Moedas

Algumas das principais moedas suportadas pelo coinverter incluem:

  • BRL (Real Brasileiro)
  • USD (Dólar Americano)
  • EUR (Euro)
  • GBP (Libra Esterlina)
  • JPY (Iene Japonês)

mais informações documentação da AwesomeAPI

Author

Pedro Arruda

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

coinverter-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

coinverter-0.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file coinverter-0.0.1.tar.gz.

File metadata

  • Download URL: coinverter-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for coinverter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3616e930c58886407644d594555fcd2479edf3d192d639a0204ce7f982d712ee
MD5 22d5ab5052f188a0ac3ca7361f598abb
BLAKE2b-256 48b6462f7c56364d83d328fc9a2063685be301fe7e408f040968a717abcd0e77

See more details on using hashes here.

File details

Details for the file coinverter-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: coinverter-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for coinverter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 457a299a26d6870fea1d18d1cf8ba64655af404265d2f2809b46262a9d152228
MD5 05c6c9c8fd8543f4b3363ccaa7c4d6cc
BLAKE2b-256 25ae43a50600c3e438ff92397ad8623463782b0a037fcde2782888cfaa5d5f47

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