A simple package to convert Indian Rupees to other currencies.
Project description
pyinr
A simple Python package to convert currencies.
Installation
You can install pyinr directly from PyPI using pip:
pip install pyinr
Usage
Here's how you can use the pyinr module to perform currency conversions:
from pyinr import convert
# Example: Convert 100 USD to EUR
eur_amount = convert(100, "USD", "EUR")
print(f"100 USD is equal to {eur_amount} EUR")
# Example: Convert 500 JPY to INR
inr_amount = convert(500, "JPY", "INR")
print(f"500 JPY is equal to {inr_amount} INR")
# Example: Convert 250 INR to USD
usd_amount = convert(250, "INR", "USD")
print(f"250 INR is equal to {usd_amount} USD")
Note: The convert function fetches live exchange rates from exchangerate-api.com. For real-world applications, consider API rate limits and error handling.
PyPI Instructions
This package is available on PyPI. You can find it by searching for pyinr on the PyPI website.
To install it, simply run:
pip install pyinr
If you encounter any issues or have suggestions, please report them on the Bug Tracker.
Project details
Release history Release notifications | RSS feed
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 pyinr-0.0.5.tar.gz.
File metadata
- Download URL: pyinr-0.0.5.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2e8ae4583beacd6150264b97afa5ffe64129d0122a7f9841f65ec2806ee2bfe
|
|
| MD5 |
73ab1a9a9d25684913fb736b83d36303
|
|
| BLAKE2b-256 |
c861f1e0d6827f03be5f58a88f19e2a0feb9f9181af5f5c1b9c6dcc988ef86bf
|
File details
Details for the file pyinr-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pyinr-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa048fbde5298714736a61374887d0619c5f3a7d05f159e5499764b1c7263898
|
|
| MD5 |
3fd1db6b4f187a449f951dcfa97dd7da
|
|
| BLAKE2b-256 |
a57936ae66686ad43140a1649b8cba1fa249adf0d0f8def313358087a0b2b4c6
|