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$
Metadata
Release files for BRCurrencyPy 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| BRCurrencyPy-0.3-py3-none-any.whl | Python 3 | none | any | Details for BRCurrencyPy-0.3-py3-none-any.whl |
Release files / BRCurrencyPy-0.3-py3-none-any.whl
| Download URL | BRCurrencyPy-0.3-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e01bc9b435251158288be544b44d5590fd0b8796f7da55087b311519dbbe92bd
|
|
BLAKE2b-256 checksum How to use checksums |
181fd42eac5667c0279044c76c2d1e5ff4ad06778b1fd497e666868cccc2435b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for BRCurrencyPy 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.