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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8b85b6974a3105b1d337dcc0ed229d805e10ca0ee49ef89c2109064f0f555e8 |
|
MD5 | 111ab36187b569ca6eaa1f3c22a84381 |
|
BLAKE2b-256 | 7f3b5e886a063791d0f7c047ebc11d6ec96002c5058a88b7feeaae723e0ef1ac |
Close
Hashes for aioopenexchangerates-0.4.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19bcacb0a9107e5b46962eb74ca7b32b62576352dab8ed3703472845f8d8a74b |
|
MD5 | 6d90ed279ff73ba62e24707fbf89c59c |
|
BLAKE2b-256 | 0931d37c4ed4d6b73569a300f205e5436094b6002470ca2efb090303a7b54f22 |