Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flexycode/currency-converter


https://github.com/flexycode/currency-converter

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# Currency Conversion Script

##### This script allows you to convert currencies using the Fixer API. It takes the initial currency, target currency, and amount as inputs and retrieves the conversion rate using the API.

## Prerequisites

Before running the script, make sure you have the following:

* Python installed on your machine
* Requests library installed (`pip install requests`)

# Usage
1. Open a terminal or command prompt.
2. Navigate to the directory where the script is located.
3. Run the script by executing the following command: python currency_conversion.py
4. Follow the prompts to enter the initial currency, target currency, and amount.
5. The script will make a request to the Fixer API and display the conversion result.

# API Key

#### The script uses the Fixer API to retrieve currency conversion rates. To use the API, you need to obtain an API key from Fixer. Replace the placeholder API key in the script with your own API key.

```bash
headers = {
"apikey": "YOUR_API_KEY"
}
```

# Error Handling

If there is an error in the API response or if the input values are invalid, the script will display an error message and exit.

# License

This script is licensed under the License: MIT (c) 2024 Flexyledger Technology.

# Contact
If you have any questions or suggestions regarding this script, feel free to reach out to me at [email protected]

# 📫Changelogs     
## [1.0.0] - 2024-01-24     
### Added  
- Uploaded the solution.py that contains source code and API key
- Added breakdown and documentation
- Included user profile page

### Changed
- Change some API key in the script with my own API key
- Updated documentation for readme file

### Fixed 
- Resolved issue
- Fixed some python code at line 16