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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5d7e233734f0a0cf35b1e5cc31c6c32e60705cd9d14bec62801acb89a82708 |
|
MD5 | ec204225d677e141b08e944d6d9a6ec8 |
|
BLAKE2b-256 | 907f7d67572804ab063310720627e79f186e15b7ac204d9fd7484c7ad036ab1e |
Close
Hashes for aioopenexchangerates-0.6.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03add4923dbbfe5b0291150437c0fa7fa292a0878b4da87ed181991668f368e0 |
|
MD5 | 292d58cc18751c7c19341a08a29597fd |
|
BLAKE2b-256 | e65c43292328c6b365801eb67aa3a0a65c6bc1f6edb97fb5aa5ba05dbe6e1d29 |