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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioopenexchangerates-0.4.4.tar.gz
Algorithm Hash digest
SHA256 a7e218cd5d9b6d6d26337581dd246f30c248399cfecb8ffa166f676b34e145fe
MD5 c1c3e9d8c0291365bbbdd23a98789a68
BLAKE2b-256 7ce8b7de6a7194e3be6a15dcbc445341f13af4c742d42bb3023b016010329f19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aioopenexchangerates-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4ead2c410f0cc98912f0b30908b0e4cb3cb6a6369d94a5fd9c732fd2b5942be3
MD5 9cab070a89a02b387f79190cceaeb307
BLAKE2b-256 fa21075143af8eb92df4658961f27c817b01a0ad8c050784216e53d28f12afca

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