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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioopenexchangerates-0.4.7.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.7.tar.gz
Algorithm Hash digest
SHA256 bf5578f23507816faf40100a713ef952429a8900245620dfdb337fe9621392b8
MD5 2229fa6691690fcc458864048357585f
BLAKE2b-256 b61648253f970e5677e5b0994854d23aa48842ce55e7b1fe6fdcd152f54cb37d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aioopenexchangerates-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bdb6cb47826e3905ae509206c76facf0f52326201041d2812ae9d996e11064fe
MD5 6b2118c7415734bf2d0878271c25b036
BLAKE2b-256 97ef9c1283e1af44746a4c45ed2823f6a06a9a3f5ac05eb01f1b23085f3660fe

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