Fetch rates from openexchangerates with aiohttp.
Project description
aioopenexchangerates
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aioopenexchangerates-0.4.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba4d39711e6e0dc2d78ae8f04e11f6d8412ebca3c19158f438806bf1cf477d7 |
|
MD5 | f981f8d62bc84d00b27302d85e24416d |
|
BLAKE2b-256 | 8b05beacea3bfc0b1c80554f0aaba82a4aabb5351abe1d87c2d52df3d430a29b |
Close
Hashes for aioopenexchangerates-0.4.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6ce87c96234148ee95db513793ba733008f1f3f37fef2762665ff4b4cb786fd |
|
MD5 | 44c999715369f0a740521396ea12c108 |
|
BLAKE2b-256 | 0cddd65509714bd6689eb66a9903ac7929693360370d79c754001c351471b821 |