Parses BCV html to get prices of currencies in VEF
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bcv_api-1.0.3.tar.gz
(17.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bcv_api-1.0.3-py3-none-any.whl
(18.1 kB
view details)
File details
Details for the file bcv_api-1.0.3.tar.gz.
File metadata
- Download URL: bcv_api-1.0.3.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb73ae40b50912feac1c9b36a87ceb2cf0534bdbdb9d5a553312d0f10225672f
|
|
| MD5 |
49cf08b8b6e2df1cf7c47700778e873b
|
|
| BLAKE2b-256 |
c9574e01355fb55d58b6404a621233dae41f84c31ccc84d5bc8524154423dcce
|
File details
Details for the file bcv_api-1.0.3-py3-none-any.whl.
File metadata
- Download URL: bcv_api-1.0.3-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e46672b48021c38255673085ff2019cee0c082865defeaa1ffae537a1eb3c512
|
|
| MD5 |
89ecc2cce1c92ed64a42d110dbecd3c7
|
|
| BLAKE2b-256 |
3e87e12ff5c1bc642978814287abefa18a5b08bd1bb419ac7311cf6378702ea1
|