Skip to main content

Um conversor de moedas e criptmoedas para a moeda brasileira. 🇧🇷

Project description

BRCurrencyPy

Um simples conversor de moedas e criptmoedas para a moeda brasileira.

Instalação

Instale usando o pip

pip install BRCurrencyPy

Exemplos

from brcurrency.dolar import Dolar
from brcurrency.bitcoin import Bitcoin
from brcurrency.euro import Euro

# Converção dólar
dolar =  Dolar() # Cria o objeto conversor
print(dolar.get_cotacao()) # Pega a cotação atual do Dólar
print(dolar.converter(0.50)) # Converte $0.50 em R$

# Converção bitcoin
bitcoin =  Bitcoin()
print(bitcoin.get_cotacao()) # Pega a cotação atual do Bitcoin
print(bitcoin.converter_str(0.5162)) # Converte ₿0.5162 em R$ para String e adiciona o R$ na frente

# Conversão euro
euro =  Euro()
print(euro.get_cotacao()) # Pega a cotação atual do Euro
print(euro.converter(5)) # Converte €5.00 em R$

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

BRCurrencyPy-0.2.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

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