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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9738f699209d3f3d38a7b5bd9fbf76d6409183de461f61090ca1fe4ece9d431 |
|
MD5 | 092c369b2d121928189003708fc1dcfc |
|
BLAKE2b-256 | 89fd84b2d37cc1790d19741aa65fe1b477fb7b8c783231eedcfbe9e739263ddb |
Close
Hashes for aioopenexchangerates-0.4.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a0988364f410bb831a74b90ed0a14b75c1d0118f9f2a6f8481a092ba8d35924 |
|
MD5 | 910619669ad9cf938edb2c3077581b26 |
|
BLAKE2b-256 | 748bdc5fcce2a7c39dcfe7964d60b7fcb1514a19a9107e50af18d0f6d17efb63 |