Currency Xchange is a user-friendly and efficient currency converter application that allows users to convert between different currencies effortlessly. With real-time exchange rate data sourced from reputable APIs, Currency Xchange provides accurate and up-to-date conversion rates for currencies worldwide—experience hassle-free currency conversions on the go with Currency Xchange.
The app is built for performing currency conversion using data fetched from an
- open-source API: https://www.frankfurter.app/
- Git hub:- https://github.com/hakanensari/frankfurter
- Api Documentation: https://www.frankfurter.app/docs/#usage
- Install python
pip install requests
In the project directory, you can run:
python main.py EUR INR
Here we need to mention the currency codes
"AUD": "Australian Dollar",
"BGN": "Bulgarian Lev",
"BRL": "Brazilian Real",
"CAD": "Canadian Dollar",
"CHF": "Swiss Franc",
"CNY": "Chinese Renminbi Yuan",
"CZK": "Czech Koruna",
"DKK": "Danish Krone",
"EUR": "Euro",
"GBP": "British Pound",
"HKD": "Hong Kong Dollar",
"HUF": "Hungarian Forint",
"IDR": "Indonesian Rupiah",
"ILS": "Israeli New Sheqel",
"INR": "Indian Rupee",
"ISK": "Icelandic Króna",
"JPY": "Japanese Yen",
"KRW": "South Korean Won",
"MXN": "Mexican Peso",
"MYR": "Malaysian Ringgit",
"NOK": "Norwegian Krone",
"NZD": "New Zealand Dollar",
"PHP": "Philippine Peso",
"PLN": "Polish Złoty",
"RON": "Romanian Leu",
"SEK": "Swedish Krona",
"SGD": "Singapore Dollar",
"THB": "Thai Baht",
"TRY": "Turkish Lira",
"USD": "United States Dollar",
"ZAR": "South African Rand"
├── api.py <- script contains the code for calling API endpoints
├── currency.py <- contains the code for checking if the currency code is valid, storing results, and formatting the final output
├── main.py <- main program used for entering the input parameters (currency codes) and displaying the results
├── test_api.py <- python script for testing code from api.py
└── test_currency.py <- Python script for testing code from currency.py
Contributions, issues, and feature requests are welcome!
To contribute to this project, see the GitHub documentation on creating a pull request.
Give a ⭐️ if you like this project!