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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 053534e3f964474447c921d3933970cc1eb7c2859b8fbb45ab991c43a2feacd0 |
|
MD5 | 4d9873306e78603fb5c3fb02120e674f |
|
BLAKE2b-256 | 01840d5ea4c71bd8cdca8d8ca0879137e692519fcfc77d7c4a20c68c67acc12b |
Close
Hashes for aioopenexchangerates-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7598f51fd99a5dd1ececd78866d6f9e305d26e5272dd1a89c1590e5aee1ed254 |
|
MD5 | dc7e820f5c2d83cb1646d1843a4987f9 |
|
BLAKE2b-256 | 4c5b2a18fd0869b940d9f1a0215ebdc4f934a41d034438e087b612e151e6a3fa |