Fetch rates from openexchangerates with aiohttp.
Project description
aioopenexchangerates
Documentation: https://aioopenexchangerates.readthedocs.io
Source Code: https://github.com/MartinHjelmare/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 Copier and the browniebroke/pypackage-template 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.6.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fb9e6ec0e570937aae17d68c7a88d232d2faf0522bd00b12e14f1d936a80f77 |
|
MD5 | b28243234a4239bd65b5350d09c897b0 |
|
BLAKE2b-256 | 4dc9fabdad6fc868713b9d9b02835a273d2fedf697bb7f031237f665d769cfe1 |
Close
Hashes for aioopenexchangerates-0.6.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35d8c9628d4c521e10e9948f91ad7c80f264b023a0b30e362650562f3b15166e |
|
MD5 | c2a48fceee92c11ebf12f18e7432cddf |
|
BLAKE2b-256 | d4c499120a5f69f7dc0c72f6dbba05efe4135ba3907f0c1edb221fd67a7921b3 |