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.16.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioopenexchangerates-0.4.16.tar.gz
Algorithm Hash digest
SHA256 debc58ae0e65318b8b828a8bdd24f6e224117ea0169c38162838a62b2e3c3477
MD5 bd1eb8993bc51e4d18d42c4a689dc10e
BLAKE2b-256 2bffb964ef8c2a8a4f17572209e97c84e35d422b043d75a84491a05cc69ae0ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aioopenexchangerates-0.4.16-py3-none-any.whl
Algorithm Hash digest
SHA256 5724e9872d819ff8027744ae5fd9600e37f5552c4dae20ff07b5a3ae9a424d31
MD5 28ef07401c4d914a8d22fd7a5e809738
BLAKE2b-256 0783c640676a4268e0d5edb0a8b40a3f682b694db780741138cf42c5e9704bae

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