Dolar-BC-1.1.3


توضیحات

This script has as its objective to offer a pack of functions to work with Dollar, so it can be easily imported into your projects.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل Dolar-BC-1.1.3
نام Dolar-BC
نسخه کتابخانه 1.1.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده JOAO LUCAS CARVALHO <joao.carvalho43@fatec.sp.gov.br>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/Dolar-BC/
مجوز -
# Currency-Converter ## 1. Description This script has as its objective to offer a pack of functions to work with Dollar, so it can be easily imported into your projects. ## 2. Installation This script is very easy to import, first, is necessary to move it to the directory of your project, after, you should install all dependencies necessary, for last, is just use the Import statement. <br> Example: ``` from bs4 import BeautifulSoup Import re Import request Import Dolar-BC ``` ## 3. Methods The script has four methods created for use. Above we will see what are they and their functions. 1. **Bilder**: This method is responsible for access to the Banco Central page, to fix the form, get the values, and process these data. That method receives a date initial and a date final. Example: ```` USD = USD2BRL(“13/12/2022”, “14/12/2022”)```` 2. **show_values**: This method returns the Dollar’s prince between the interval of dates informed. Example: ```` values = USD.show_values()```` 3. **BRL2USD**: This method receives a value in BRL and returns the values in USD. Example: ````conversion = USD. BRL2USD(30.90) ```` 4. **USD2BRL**: This method receives a value in USD and returns the values in BRL. Example: ````conversion = USD. USD2BRL(30.90) ```` ## 4. Docker To use the Docker file of API, you, first, must download the Docker Desktop, after to copy the files at branch “Docker” to your computer, then, open a terminal, and execute the commands below: ```` Docker build -t dollar . ```` Press Enter, then: ```` Docker run -it dollar ```` **Obs**: The files need to be in the same folder in the folder “app”, which should be created containing the API. Tested with success on 01/31/2023.


نیازمندی

مقدار نام
- beautifulsoup4==4.11.1
- requests==2.28.1


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl Dolar-BC-1.1.3:

    pip install Dolar-BC-1.1.3.whl


نصب پکیج tar.gz Dolar-BC-1.1.3:

    pip install Dolar-BC-1.1.3.tar.gz