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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | debc58ae0e65318b8b828a8bdd24f6e224117ea0169c38162838a62b2e3c3477 |
|
MD5 | bd1eb8993bc51e4d18d42c4a689dc10e |
|
BLAKE2b-256 | 2bffb964ef8c2a8a4f17572209e97c84e35d422b043d75a84491a05cc69ae0ff |
Close
Hashes for aioopenexchangerates-0.4.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5724e9872d819ff8027744ae5fd9600e37f5552c4dae20ff07b5a3ae9a424d31 |
|
MD5 | 28ef07401c4d914a8d22fd7a5e809738 |
|
BLAKE2b-256 | 0783c640676a4268e0d5edb0a8b40a3f682b694db780741138cf42c5e9704bae |