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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b60fc9894e8a0311b913926ffdb127c41c7cebb093824dc4306f88054268d9 |
|
MD5 | 2637c7d730b9440dea182f14ee4f9cee |
|
BLAKE2b-256 | febda56e49ade58aa5209c1338a56ff1a2a00d8831b18d365f54ad274da25561 |
Close
Hashes for aioopenexchangerates-0.6.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b77c42eee85384b03b387972e69aa0ff12e197410a7ee9f05f91eaad11f1fec |
|
MD5 | 2a45001579fd8373babc29c1d6563cbb |
|
BLAKE2b-256 | 451c8da1c6a4dbaa1a2f8267f9c52c43289b09784fa0e541c574c917e1ed48e7 |