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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioopenexchangerates-0.3.0.tar.gz
  • Upload date:
  • Size: 10.3 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.3.0.tar.gz
Algorithm Hash digest
SHA256 76c11d33b486cbf7a8dae80773ceff00dde71360d9fd2d2e2f75e247d94c7863
MD5 e5cabb45c937e479a1cbeca8165b3be2
BLAKE2b-256 9591aae78f626e19bd726ffc3270095fc4a3716d015d00c378309e510bc9e1c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioopenexchangerates-0.3.0-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.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6cce7d45cca704996280e1408e6b6a76e24461dd33684ea5c3d6dc023e968c5
MD5 6ceca21ab472cb0b904736b1369844a9
BLAKE2b-256 7f1b5527059522cf1f8feaef3292c64b3fded3de9c3d32ac18484995cf45424d

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