Skip to main content

Library for currencies of 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:

  1. Import the CurrencyAPI class from the package.
  2. Create an instance of the API.
  3. Call the run method to start the server.
from vengeance_currency_api import CurrencyAPI

api = CurrencyAPI()

Once the server is running, you can access the API endpoints.

API Functions

Get Currency Information for a Specific Country

  • Function: get_currency_by_country("{country_name}")
  • Description: Retrieve detailed currency information (symbol and code) for a specific country.
  • Example:
    • Response: { "symbol": "$", "code": "USD" }

Get Countries that use Specific Currency

  • Function: get_countries_by_code({code})
  • Description: Retrieve complete countries list that use a specific currency.
  • Response:
    • Example Output:
    {
       "countries": [
          "Spain",
          "United Kingdom"
       ]
    }
    

Search currencies information by country name or currency code

  • Function: search_currency({country_name} or {code})
  • Description: Get Country Name and Code based on your search query.
  • Response:
    • Example Output:
    [
     {"Country": "Austria", "Code": "EUR"}, 
     {"Country": "Belgium", "Code": "EUR"},
     ...
    ]
    

Currency Converter

  • Function: convert_currency({amount}, {from_code}, {to_code})
  • Description: Convert currency based on provided amount and codes.
  • Response:
    • Example Output for (2, "USD", "INR"):
    {
       "converted_amount": 168.173004
    }
    

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

vengeance_currency_api-2.2.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vengeance_currency_api-2.2.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file vengeance_currency_api-2.2.0.tar.gz.

File metadata

  • Download URL: vengeance_currency_api-2.2.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for vengeance_currency_api-2.2.0.tar.gz
Algorithm Hash digest
SHA256 ff7620f80f834ece3963f78b215641fa4e17172d03acdc7569d27b6a2652d8d1
MD5 3b066e8bf3facf8e2f95a1c0c8f60907
BLAKE2b-256 a25a0079e30b5a51cdd0421810637b07fd112162742ff5c059675f5224d260d7

See more details on using hashes here.

File details

Details for the file vengeance_currency_api-2.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vengeance_currency_api-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f832f6369d3b9189139b2a32595b1187f4a6bec8d82795e82868b5bf5e9fd946
MD5 97e5ea5bcbedc72a056223b67d067e87
BLAKE2b-256 c93173893d572e4222b74f8f5dee5222aa5ce43ddb6b12449ec3f0ec22f2ca25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page