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.
Metadata
Release files for cupiu-bnr 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 |
|---|---|---|---|---|
| cupiu_bnr-0.1.1.tar.gz | 5.9 kB | Without provenance | Details for cupiu_bnr-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cupiu_bnr-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cupiu_bnr-0.1.1-py3-none-any.whl |
Total release size: 12.6 kB
Release files / cupiu_bnr-0.1.1.tar.gz
| Download URL | cupiu_bnr-0.1.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c415b77ef6135824a7c4575921cbc05f3a94d271982b9c220a4d3edbe605720d
|
|
BLAKE2b-256 checksum How to use checksums |
a238cf1dd60c374fd9f5534a1b8c64aa80fcbbba7a34698ff70a3d7ae1bd2a9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / cupiu_bnr-0.1.1-py3-none-any.whl
| Download URL | cupiu_bnr-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60ad4dce67185b2836a7e0e74a26fdd0204269dd5af806a877ac5ad218cfaadc
|
|
BLAKE2b-256 checksum How to use checksums |
1a3c448fbb70893220dd8370767a45882ee2f7ff1c69d176a2392e499539ea09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for cupiu-bnr 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.