A RESTful API for currency symbols and codes for countries across the world.
Project description
Vengeance World Currency API
Welcome to the Currency API, a powerful and easy-to-use RESTful API designed to provide comprehensive currency symbols and codes for various countries around the globe. This API is perfect for developers looking to integrate currency information into their applications.
Features
- Simple Integration: Effortlessly integrate currency data into your applications.
- Comprehensive Coverage: Access currency information for numerous countries.
- Lightweight: Designed to be lightweight and fast, ensuring optimal performance.
Installation
Step 1: Clone the Repository
To get started, clone the repository to your local machine:
git clone https://github.com/preetham-1811/currency-api.git cd currency-api
Step 2: Install Dependencies
Next, install the required dependencies using pip:
pip install -r requirements.txt
Usage
To run the API, follow these steps:
- Import the
CurrencyAPIclass from the package. - Create an instance of the API.
- Call the
runmethod to start the server.
from currency_api import CurrencyAPI
api = CurrencyAPI()
api.run()
Once the server is running, you can access the API endpoints.
API Endpoints
Get Currency Information for a Specific Country
- Endpoint:
GET /currency/<country> - Description: Retrieve detailed currency information (symbol and code) for a specific country.
- Example:
- Request:
/currency/Albania - Response:
{ "symbol": "Lek", "code": "ALL" }
- Request:
Retrieve a List of All Available Currencies
- Endpoint:
GET /currencies - Description: Get a comprehensive list of all available currencies along with their symbols and codes.
- Response:
- Example Output:
[ { "country": "Albania", "symbol": "Lek", "code": "ALL" } ]
Contributing
We welcome contributions! If you'd like to contribute to the Currency API, please fork the repository and submit a pull request. Your help in improving this API is greatly appreciated!
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Support
If you have any questions or need support, feel free to open an issue on GitHub or reach out directly.
Feel free to adjust any sections or add more details specific to your project! This structure provides clear guidance and encourages engagement with the API.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vengeance_currency_api-1.5.tar.gz.
File metadata
- Download URL: vengeance_currency_api-1.5.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9860f0a73818022d7b7d8254b03a559f57311b16e44b6a53abf32aca40a712f
|
|
| MD5 |
380036a5f5be47d7634390ff11b7ac54
|
|
| BLAKE2b-256 |
245731c5b82628891dbbde306d9c16915dd0a17d8b70fe393438f7dd6f057858
|
File details
Details for the file vengeance_currency_api-1.5-py3-none-any.whl.
File metadata
- Download URL: vengeance_currency_api-1.5-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07a194b320cbce89644ac5985fbfd97957ece65a2ca31c334aacd18c2de2e680
|
|
| MD5 |
82bf9da732abd8451f951dfc370836d2
|
|
| BLAKE2b-256 |
1a20701a6b6b8531d6acc06c0ceef63df6b4bc681026698ee1bb26be35099efb
|