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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6527aaaa243a5f9fb294bea0f210b48b824058767f8c92dded8ccc0ae364381e |
|
MD5 | 6de698b1c7f2d83d135bb72fffd0d4bc |
|
BLAKE2b-256 | 4b247453dd555e24c66ca010fde9b73a7113a9ebe4ea3c7e214175d83ee410ff |
Close
Hashes for aioopenexchangerates-0.4.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df587ca9be99fec7290e94389b7f6e3279ab7b11b5c6f99678ff78c74329299 |
|
MD5 | 95b8c92156dc88743aca589ffa364acc |
|
BLAKE2b-256 | 995f1e73254519d19be1b97589bc0cb6658289206ecfd9ad1ff45aea38b8707a |