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

Uploaded Source

Built Distribution

aioopenexchangerates-0.4.6-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioopenexchangerates-0.4.6.tar.gz
Algorithm Hash digest
SHA256 6953b1a77c820acff8bc6ab9e2a0311ae44ec2f6dd93628b73934f5ab84d789f
MD5 cde3c7b9a239601790557bd1dc9a00fb
BLAKE2b-256 c9c6e4b265108836793e3ffd3e63a2e7ed8203734ef39a0e937a5378fee19421

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aioopenexchangerates-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3d36ccf8198c3667ce5165c1d9a61b8c9b364563266686a00176d43ae3d70f64
MD5 67a9cea7e1b55b094bd02b5c2d62ad42
BLAKE2b-256 e48526d23923dccc9bda7cbe38c7ecc9143fd8613d2580b3cb3ff8ae7adb2678

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