💱 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
👤 Author
Name: Munal Poudel
Email: munalpoudel3@gmail.com
GitHub: github.com/munal777
Metadata
Release files for nprxchange 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nprxchange-0.1.1.tar.gz | 9.4 kB | Without provenance | Details for nprxchange-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nprxchange-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nprxchange-0.1.1-py3-none-any.whl |
Total release size: 19.4 kB
Release files / nprxchange-0.1.1.tar.gz
| Download URL | nprxchange-0.1.1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07f4e6f398da508dd07f15f283c13deb895d3d077f810f9e6f34091b7ddfac5d
|
|
BLAKE2b-256 checksum How to use checksums |
4ab6250d898625319c2ca89122f17b5e12c96d7bc5171371693ebc20b4494920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / nprxchange-0.1.1-py3-none-any.whl
| Download URL | nprxchange-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7431fc45c03504aaedd5dd0d0d9297b5f7a9b70209920ef2e1ee5f68a2455c25
|
|
BLAKE2b-256 checksum How to use checksums |
cc5862ecf6d9eca7145af9e34b9bd5d4f5d6e77fc25c504a53b457329fdbe62a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for nprxchange 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.