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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec2d10db9f8a01298deda4302fb35f2a2a51116a127a31d0c1a3c6f36cdb355c |
|
MD5 | d698d09d1f77b80150c379a1a2b4b00f |
|
BLAKE2b-256 | 10fa5463ac6bf6f1978568303ea763396dea9f976c1cde60d8c9a2f69122cfbf |
Close
Hashes for aioopenexchangerates-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b55ac858a11cf68a1aace185acaca5073c049bf59f3e72566fbab74d10da5fb |
|
MD5 | d0d0733b1cfdbfb77a5f7708ded17623 |
|
BLAKE2b-256 | e6e39fe84dce5f238540ed06de5411a8af2f763aaf11f09f956123a7403fb20a |