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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7052f5ebd0c8854f9d91625726224945c12517e68292e65926ece02b46d8279 |
|
MD5 | a5c6a5d0c11ca93754eb4d861125139a |
|
BLAKE2b-256 | 917f94912203c5f5ab769f640438502de077a29b36cf190c0221076a95aed503 |
Close
Hashes for aioopenexchangerates-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ebaf3bbe5f770d903abc38944c087b0ec536bea4f1bcfa12cc8fe7958e2bfc5 |
|
MD5 | 0d3f98cdc06faf8ae178efe982790e12 |
|
BLAKE2b-256 | dd4f632356c5374dbb3150bb35f86aa29870dbfca4ef0bcffbbed270c91011fc |