Skip to main content

PyPI - Python Version

Official Repo: https://github.com/ValentynKhoroshchak/privat-exchange-rates

It uses the following libraries:

  • Requests for requests to exchange rates

Quick Install / Usage

pip install privat_exchange_rates
from datetime import datetime

from privat_exchange_rates import get_exchange_rates


def main():
    exchange_rates = get_exchange_rates(datetime(day=21, month=4, year=2022))

    print(exchange_rates)
    # Output:
    # {
    #     'date': '21.04.2022',
    #     'bank': 'PB',
    #     'baseCurrency': 980,
    #     'baseCurrencyLit': 'UAH',
    #     'exchangeRate': [{
    #         "baseCurrency": "UAH",
    #         "currency": "AUD",
    #         "saleRateNB": 12.8319250,
    #         "purchaseRateNB": 12.8319250
    #     }]
    # }

Release files for privat-exchange-rates 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privat-exchange-rates 0.0.2
File Size Uploaded
privat-exchange-rates-0.0.2.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for privat-exchange-rates 0.0.2
File Interpreter ABI Platform
privat_exchange_rates-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / privat-exchange-rates-0.0.2.tar.gz

Download URL privat-exchange-rates-0.0.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f7aec571a7cd7dbaf1d9cf5c1f7579ee5ba752a9c03196a311bf737ee3235453
BLAKE2b-256 checksum
How to use checksums
117d3bacdb5489731ebebab1ea7a7533f1a973f47172f2657d9f822ae357b4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.5

Release files / privat_exchange_rates-0.0.2-py3-none-any.whl

Download URL privat_exchange_rates-0.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1189a79536049390cc1fb79fc505318ffe861b822da82a457b503c1596ac5a16
BLAKE2b-256 checksum
How to use checksums
18502f1935e92107f51a4bfea08da0c68d1a8fa96421bcb452a98ab09c31cfb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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