Skip to content

sivefunc/bcv-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

bcv logo

Requeriments

  • python3 >= 3.9
  • requests >= 2.32.3
  • dataclasses and typing (standard libraries)

Using bcv-api.

exchange rates
# 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 🔗 Sivefunc

Licensed under 🔗 GPLv3

About

No description, website, or topics provided.

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages