Skip to main content

A simple package to convert Indian Rupees to other currencies.

Project description

pyinr

A simple Python package to convert Indian Rupees (INR) to other 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 INR to USD
usd_amount = convert(100, "USD")
print(f"100 INR is equal to {usd_amount} USD")

# Example: Convert 500 INR to EUR
eur_amount = convert(500, "EUR")
print(f"500 INR is equal to {eur_amount} EUR")

# Example: Convert 250 INR to JPY
jpy_amount = convert(250, "JPY")
print(f"250 INR is equal to {jpy_amount} JPY")

Note: The convert_inr function currently uses a fixed exchange rate for demonstration purposes. For real-world applications, you would integrate with a live exchange rate API.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyinr-0.0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

pyinr-0.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pyinr-0.0.3.tar.gz.

File metadata

  • Download URL: pyinr-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pyinr-0.0.3.tar.gz
Algorithm Hash digest
SHA256 913bd13a1aedadbf0351bbcd472d298c04fb97e37d9af76d7c4387a94cac1e91
MD5 65c4ef367058d4211a6c0d8e18b702ca
BLAKE2b-256 ae96b4d6e8e24378b8e626955dcfa591d2504252781873c1ce3d9fa8a26bb172

See more details on using hashes here.

File details

Details for the file pyinr-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyinr-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pyinr-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fac3575328a85d3c081ad1c8a03f1e63536ba5b2c7a8e19d788196a176a21aea
MD5 d0a75f8f193fdfb5351423e62c5b3d81
BLAKE2b-256 849a0be31ded0a0f83ec2a1294c952f0ab1c29ad8c6554d9954967832ae33992

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