Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cupiu_bnr-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cupiu_bnr-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cupiu_bnr-0.1.0.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

Hashes for cupiu_bnr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 353be51dc540f085afa2e8949674090174f1600b5517622b61608782ba08c0c9
MD5 de6250946442ef7bccd118dd56bf55f4
BLAKE2b-256 28cfdbf717237c8568022995a50177cfb191087de99cb72c655d6680a2e2161a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cupiu_bnr-0.1.0-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

Hashes for cupiu_bnr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3a1b3c2807de047b7c991a4f6d7ceb9c1aa6f7f8fc347dcfeb9f94ca72a4c6b
MD5 45bf76e5f5040500fd85dee988e796bf
BLAKE2b-256 acd743aead7822924c3064d0b39ec50f7d34e1eeb0b4f5b1e332d8960fe8b480

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