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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b6cf834c78cc770bcf22bf11fd0b1c3ba79f0a4b6cbe9eedde68ebe3702157 |
|
MD5 | dc28e2e6dd52ed636a27847d38172f4b |
|
BLAKE2b-256 | 391f5f26d9c584a87ecb0c97a836758f2b3308b9581b20f29405d61e5f874905 |
Close
Hashes for aioopenexchangerates-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c241aada276c7751e03277dac0064c824c510c9da31b2ca5be9f323be966bafd |
|
MD5 | 0c91fc863af5c6180974b50da55650d7 |
|
BLAKE2b-256 | 13961edeac9a78bd74129f9fe681389e035edc84cb000034a2a3d584ea9377f2 |