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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioopenexchangerates-0.4.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for aioopenexchangerates-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4ad1f8551a06f95ffbe411bb630cc7b2bd1c782ed432232f81dbbd5c89c81791
MD5 e264648991c9a5e84c5d03004fb064b6
BLAKE2b-256 08d42437499f55bab2de98b5a67aad896ff1ba9115e622cc9678ed3107c52d4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioopenexchangerates-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for aioopenexchangerates-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9da6f431066c5badc9dc856c90413232becc5b812846a097cb3b3f8b40ea9338
MD5 3d00004f84e19c5824dff4f160d000a8
BLAKE2b-256 1015045bc5022083f8dc11ecccb6bd97c62e7d7fae54eccf847237c63a8b42a1

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