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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioopenexchangerates-0.4.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for aioopenexchangerates-0.4.1.tar.gz
Algorithm Hash digest
SHA256 053534e3f964474447c921d3933970cc1eb7c2859b8fbb45ab991c43a2feacd0
MD5 4d9873306e78603fb5c3fb02120e674f
BLAKE2b-256 01840d5ea4c71bd8cdca8d8ca0879137e692519fcfc77d7c4a20c68c67acc12b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioopenexchangerates-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for aioopenexchangerates-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7598f51fd99a5dd1ececd78866d6f9e305d26e5272dd1a89c1590e5aee1ed254
MD5 dc7e820f5c2d83cb1646d1843a4987f9
BLAKE2b-256 4c5b2a18fd0869b940d9f1a0215ebdc4f934a41d034438e087b612e151e6a3fa

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