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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4980273a7686a5c8ce41eb4b0b25007d0593dc9edc396d23225d9031b85d40b |
|
MD5 | 87c84559821cb965c29d53ce3e61bc19 |
|
BLAKE2b-256 | f59f64b76c9de1aba30f4c99a879dbe7f0c6de0927ded607a33227313cbbaf72 |
Close
Hashes for aioopenexchangerates-0.4.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91c7824ffeb7f62a4acd0d3aaf8b81296888136e9b8423986c167be8938840ef |
|
MD5 | 589ad74448d7af92e107be361c96ddcb |
|
BLAKE2b-256 | 7644215e6bfe2038c0357d27e0b346ffa03a524b1af1fd64e0fd14cc104b804e |