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
File details
Details for the file BRCurrencyPy-0.3-py3-none-any.whl
.
File metadata
- Download URL: BRCurrencyPy-0.3-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e01bc9b435251158288be544b44d5590fd0b8796f7da55087b311519dbbe92bd |
|
MD5 | a573e917c2ffe1b1e0c5eabfb3f9678a |
|
BLAKE2b-256 | 181fd42eac5667c0279044c76c2d1e5ff4ad06778b1fd497e666868cccc2435b |