Official BNR (National Bank of Romania) exchange rates — zero dependencies. Live rates & history at cupiu.ro.
Project description
cupiu-bnr
Official BNR (National Bank of Romania) exchange rates in Python — zero dependencies.
Pulls the daily curs valutar BNR reference rates straight from the National Bank's public feed. Pure standard library, works on Python 3.8+, installs in one line. Built and maintained by the team behind cupiu.ro — where you can see the same rates with live charts and the full 2005→today history for humans.
👉 Live rates, charts & history: cupiu.ro
Install
pip install cupiu-bnr
Library
import cupiu_bnr
rates = cupiu_bnr.latest() # today's official reference rates
print(rates["EUR"].ron_per_unit) # Decimal('5.2411')
# Convert between any two BNR-listed currencies (crossed via RON)
cupiu_bnr.convert(100, "EUR", "USD")
# History straight from the BNR archive
for day in cupiu_bnr.year(2024):
print(day.date, day["EUR"].ron_per_unit)
Rates use Decimal (never floats — this is money) and normalise BNR's
multiplier convention automatically, so HUF, JPY, etc. are always
per-single-unit.
Command line
cupiu-bnr # all of today's rates
cupiu-bnr EUR # 1 EUR = 5.2411 RON (2026-07-15)
cupiu-bnr convert 100 eur ron # 100 EUR = 524.11 RON
# `cursbnr` works as an alias for the same command.
Why
BNR publishes one official reference set per banking day (~13:00 Bucharest).
Every accounting workflow in Romania — PFA invoices (Art. 290 Cod fiscal),
importers, bookkeeping — needs that exact number. cupiu-bnr gives you it
programmatically; cupiu.ro gives you it in the browser
with charts, per-currency pages and the historical archive.
Data & attribution
Source data © National Bank of Romania, used under their public data terms. This is an independent open-source client, not affiliated with the BNR. Maintained by cupiu.ro.
License
MIT — see LICENSE.
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 cupiu_bnr-0.1.1.tar.gz.
File metadata
- Download URL: cupiu_bnr-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c415b77ef6135824a7c4575921cbc05f3a94d271982b9c220a4d3edbe605720d
|
|
| MD5 |
4d4167dbcbd3b37f7f088c0531cd95b7
|
|
| BLAKE2b-256 |
a238cf1dd60c374fd9f5534a1b8c64aa80fcbbba7a34698ff70a3d7ae1bd2a9e
|
File details
Details for the file cupiu_bnr-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cupiu_bnr-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ad4dce67185b2836a7e0e74a26fdd0204269dd5af806a877ac5ad218cfaadc
|
|
| MD5 |
13d649358e7e1a9b5722d804f531e676
|
|
| BLAKE2b-256 |
1a3c448fbb70893220dd8370767a45882ee2f7ff1c69d176a2392e499539ea09
|