Skip to main content

Fetch rates from openexchangerates with aiohttp.

Project description

aioopenexchangerates

CI Status Documentation Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

Fetch rates from openexchangerates with aiohttp.

Installation

Install this via pip (or your favourite package manager):

pip install aioopenexchangerates

Usage

import asyncio

from aioopenexchangerates import Client, OpenExchangeRatesError


async def main() -> None:
    """Run main."""
    async with Client("your_api_key") as client:
        try:
            result = await client.get_latest()
        except OpenExchangeRatesError as err:
            print(err)
        else:
            print(result)


if __name__ == "__main__":
    asyncio.run(main())

Credits

This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.

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

aioopenexchangerates-0.4.15.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

aioopenexchangerates-0.4.15-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file aioopenexchangerates-0.4.15.tar.gz.

File metadata

  • Download URL: aioopenexchangerates-0.4.15.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for aioopenexchangerates-0.4.15.tar.gz
Algorithm Hash digest
SHA256 96ab063e688d1aa6ee1c1022123664aac1b23a058fe05e3591cb5a46b49a5863
MD5 bbbe384ba1c040ee685d26ae48fb3ede
BLAKE2b-256 aeb4f269d7e968bd81af0caeded542f3eb7e795c14d289420e397f96abd7c156

See more details on using hashes here.

File details

Details for the file aioopenexchangerates-0.4.15-py3-none-any.whl.

File metadata

File hashes

Hashes for aioopenexchangerates-0.4.15-py3-none-any.whl
Algorithm Hash digest
SHA256 06d437b8827e6467a8048f14b4e905771231181534dc549d8a7176dad8010abc
MD5 d247d2e6e3fa8837ca7f09130eaf71d3
BLAKE2b-256 1a3c18c9b417024f4611c80f9805b90a5a0984a8c47b68294cb8b9f4646c64c1

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