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.0.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.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nprxchange-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9f78aa5b703334d4d6830b22148cf9c341b31a72c61874451a8c279c5e65efcb
MD5 92b909864c029b0fd382e251444af71a
BLAKE2b-256 bf32795df1bca4be9e830267f48d999c4db31675295b71ec07087ffe2396e273

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nprxchange-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d980e0596d20209a31a5e3d3a205223d32c3dfb239a1450f0ce5cf5f0362cb7d
MD5 cc4914389a4fefe409fc6d65da0a6fda
BLAKE2b-256 469d50580aca304763e32ee8e2224ac51fd5caff84f9e247c845cc6d3832963a

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