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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56923916a341b7fd2e0139f05d6fea5861cbaec092c4bfadca9c7c85227555e5 |
|
MD5 | 329b8f8036991e04ace7aa5cef7a6932 |
|
BLAKE2b-256 | f522d5fff1b2c9bdec04f5bb3659c9fe8f32f61ecd6d2185103445627827a18e |
Close
Hashes for aioopenexchangerates-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b11eb8f4f751a7c030c57982a48c290db122dd99f70aaaefc93ccbe9329114 |
|
MD5 | 26e62aa5aa7c8e141073a7678d7bbd68 |
|
BLAKE2b-256 | 2ed11f3ca6c9ebeb3a8a3e5a20db7ad5325dada3866d5ab61bf2d40fb4167401 |