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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf5578f23507816faf40100a713ef952429a8900245620dfdb337fe9621392b8 |
|
MD5 | 2229fa6691690fcc458864048357585f |
|
BLAKE2b-256 | b61648253f970e5677e5b0994854d23aa48842ce55e7b1fe6fdcd152f54cb37d |
Close
Hashes for aioopenexchangerates-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb6cb47826e3905ae509206c76facf0f52326201041d2812ae9d996e11064fe |
|
MD5 | 6b2118c7415734bf2d0878271c25b036 |
|
BLAKE2b-256 | 97ef9c1283e1af44746a4c45ed2823f6a06a9a3f5ac05eb01f1b23085f3660fe |