Metadata-Version: 2.1
Name: Dolar_BC
Version: 1.1.0
Summary: 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.
Project-URL: Homepage, https://github.com/Joaolpridolficarvalho/Dolar-BC
Project-URL: Bug Tracker, https://github.com/pypa/sampleproject/issues
Author-email: JOAO LUCAS CARVALHO <joao.carvalho43@fatec.sp.gov.br>
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# 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.
