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
aioopenexchangerates-0.4.0.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for aioopenexchangerates-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad1f8551a06f95ffbe411bb630cc7b2bd1c782ed432232f81dbbd5c89c81791 |
|
MD5 | e264648991c9a5e84c5d03004fb064b6 |
|
BLAKE2b-256 | 08d42437499f55bab2de98b5a67aad896ff1ba9115e622cc9678ed3107c52d4b |
Close
Hashes for aioopenexchangerates-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9da6f431066c5badc9dc856c90413232becc5b812846a097cb3b3f8b40ea9338 |
|
MD5 | 3d00004f84e19c5824dff4f160d000a8 |
|
BLAKE2b-256 | 1015045bc5022083f8dc11ecccb6bd97c62e7d7fae54eccf847237c63a8b42a1 |