Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flexycode/currency-converter
https://github.com/flexycode/currency-converter
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/flexycode/currency-converter
- Owner: flexycode
- Created: 2019-12-04T13:26:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T16:24:29.000Z (about 1 year ago)
- Last Synced: 2024-01-29T18:01:58.910Z (about 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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