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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6953b1a77c820acff8bc6ab9e2a0311ae44ec2f6dd93628b73934f5ab84d789f |
|
MD5 | cde3c7b9a239601790557bd1dc9a00fb |
|
BLAKE2b-256 | c9c6e4b265108836793e3ffd3e63a2e7ed8203734ef39a0e937a5378fee19421 |
Close
Hashes for aioopenexchangerates-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d36ccf8198c3667ce5165c1d9a61b8c9b364563266686a00176d43ae3d70f64 |
|
MD5 | 67a9cea7e1b55b094bd02b5c2d62ad42 |
|
BLAKE2b-256 | e48526d23923dccc9bda7cbe38c7ecc9143fd8613d2580b3cb3ff8ae7adb2678 |