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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee1d9c866eb92e53155d92dd9bf0ef1b579af51269e3d6c649d74ae624ee34f |
|
MD5 | 4f980a7febd8da831ddf7dd1b6fa2296 |
|
BLAKE2b-256 | 7ce7fd0189abdf0712009b7d4d961dac097328729d941a37548f66bca5dac246 |
Close
Hashes for aioopenexchangerates-0.4.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a476ab6f00fd39f7e11c9a30caa21a3c9e86d64541c4c1b57147c7f6c7fe08 |
|
MD5 | dcb2ed7ebfe2b82d92656ee0dc97a80f |
|
BLAKE2b-256 | 38676b62827ce0ac4d752c060f6b8e1826ad92313b4b60fada782b66f81c9a5f |