Skip to main content

Nepal Rastra Bank Currency Converter

Project description

💱 nprxchange

nprxchange is a modern and easy-to-use command-line tool that converts Nepali Rupees (NPR) to other major currencies using the official exchange rates published by the Nepal Rastra Bank (NRB).

It supports both interactive and non-interactive (direct CLI arguments) modes, with beautiful terminal output powered by Rich.


📌 Features

  • 🏦 Uses official NRB exchange rates
  • 🌐 Works online and offline (uses cache if offline)
  • 🎨 Clean and stylish CLI output using rich
  • 📋 View available currencies and their codes
  • 💬 Interactive currency selection using InquirerPy
  • 🔁 Refresh latest exchange rates manually

🛠️ Installation

📦 Install via pip:

pip install nprxchange

🧪 Usage Examples:

# Show help
nprxchange --help

# View all supported currencies
nprxchange -v

# Convert 1000 NPR to USD directly
nprxchange -c 1000 -t USD

# Convert 5000 NPR to EUR with full command
nprxchange --convert 5000 --to-currency EUR

# Refresh latest exchange rates
nprxchange -r

# Launch interactive mode
nprxchange -i

🔍 Command Line Arguments

Argument Short Description
--view-currencies -v View all available currencies with their codes
--convert AMOUNT -c AMOUNT Amount in NPR to convert to foreign currency
--to-currency CODE -t CODE Target currency code (e.g., USD, EUR, INR)
--refresh -r Force refresh rates from the NRB API
--interactive -i Launch interactive mode to select currency

🧑‍💻 Contributing

Contributions are welcome! To contribute:

  • Fork this repository
  • Create your feature branch (git checkout -b feature-name)
  • Commit your changes (git commit -m 'Add feature')
  • Push to the branch (git push origin feature-name)
  • Open a pull request

Please follow clean code practices and test your changes before submitting.

License

License: MIT

👤 Author

Name: Munal Poudel

Email: munalpoudel3@gmail.com

GitHub: github.com/munal777

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

nprxchange-0.1.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

nprxchange-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file nprxchange-0.1.1.tar.gz.

File metadata

  • Download URL: nprxchange-0.1.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for nprxchange-0.1.1.tar.gz
Algorithm Hash digest
SHA256 07f4e6f398da508dd07f15f283c13deb895d3d077f810f9e6f34091b7ddfac5d
MD5 73f7c6b05e9ef33f5bb4bcbac5559b61
BLAKE2b-256 4ab6250d898625319c2ca89122f17b5e12c96d7bc5171371693ebc20b4494920

See more details on using hashes here.

File details

Details for the file nprxchange-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nprxchange-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for nprxchange-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7431fc45c03504aaedd5dd0d0d9297b5f7a9b70209920ef2e1ee5f68a2455c25
MD5 af15cd26171dffd27889949ef419f45d
BLAKE2b-256 cc5862ecf6d9eca7145af9e34b9bd5d4f5d6e77fc25c504a53b457329fdbe62a

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