Skip to main content

Afla cursul valutar in RON de la BNR.

Project description

Curs valutar BNR pentru RON

Librarie python care poate fi folosita pentru a afla cursul BNR pentru RON la o data specificata sau nu.

Utilizare

Instaleaza libraria cu:

pip install cursvalutarbnr

Poti incepe conversia in felul urmator:

from cursvalutarbnr import Currency, ron_exchange_rate


eur_to_ron = ron_exchange_rate(
    ammount=1,              # suma pe care vrei sa o convertesti la 'currency'
    currency=Currency.EUR,  # valuta (curency) in care vrei sa fie convertita suma specificata in 'ammount' (poate fi si un simplu string ca: "EUR", "USD" etc)
    date="2024-04-25"       # (Optional) poti specifica si data in isoformat pentru care vrei sa fie convertita suma
)

print("eur_to_ron", eur_to_ron)

Pentru a nu apela api-ul de la BNR pentru fiecare apelare datele sunt salvate in temporary folder cache_cursvalutarbnr.

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

cursvalutarbnr-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

cursvalutarbnr-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file cursvalutarbnr-1.0.0.tar.gz.

File metadata

  • Download URL: cursvalutarbnr-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for cursvalutarbnr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 067385824aeba564ad19d771c6c8c51606ced4d112a46c2c61f58361640916be
MD5 a4472357c2144b9e1a0538251dfa0c67
BLAKE2b-256 72483aa04636beaca4d82d64a9655d745ae83c09ed9863db1ee0ca76c9dcf4b5

See more details on using hashes here.

File details

Details for the file cursvalutarbnr-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cursvalutarbnr-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6aeaa6030ba5116ade944d6885eaea6932dc9f62992c83970d610c0d25b5b510
MD5 90ad822950f5582ba63a951ce0ca0991
BLAKE2b-256 c4e57984bc4ff8d5ce5057f946404fe2226e779de18495e5232486a89f9b95df

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page