Skip to main content

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)

Source distribution for cupiu-bnr 0.1.1
File Size Uploaded
cupiu_bnr-0.1.1.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cupiu-bnr 0.1.1
File Interpreter ABI Platform
cupiu_bnr-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page