bcv-api
bcv-api is a small (fast ?) python library that connects to BCV to parse html and get the current price of currencies in VEF.
Requeriments
- python3 >= 3.9
- requests >= 2.32.3
- dataclasses and typing (standard libraries)
Using bcv-api.
# importing BCV and creating object.
from bcv_api import BCV
bcv_con = BCV()
# Get a currency
eur = bcv_con.currencies[0]
print(eur, bcv_con.get_currency(eur))
# Get all currencies
for currency, price in bcv_con.get_currencies().items():
print(currency, price)
# Use last html saved by get_currencies() to not use internet in this query.
cny = bcv_con.currencies[1]
print(cny, bcv_con.get_currency(cny, use_last_html=True))
Installation
You can install BCV-api from Pypi
pip install bcv-api
Made by :link: Sivefunc
Licensed under :link: GPLv3
Metadata
Release files for bcv-api 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bcv_api-1.0.3.tar.gz | 17.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bcv_api-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.1 kB
Release files / bcv_api-1.0.3.tar.gz
| Download URL | bcv_api-1.0.3.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb73ae40b50912feac1c9b36a87ceb2cf0534bdbdb9d5a553312d0f10225672f
|
|
BLAKE2b-256 checksum How to use checksums |
c9574e01355fb55d58b6404a621233dae41f84c31ccc84d5bc8524154423dcce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Release files / bcv_api-1.0.3-py3-none-any.whl
| Download URL | bcv_api-1.0.3-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e46672b48021c38255673085ff2019cee0c082865defeaa1ffae537a1eb3c512
|
|
BLAKE2b-256 checksum How to use checksums |
3e87e12ff5c1bc642978814287abefa18a5b08bd1bb419ac7311cf6378702ea1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Security for bcv-api 1.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.