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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 965755f209e2d93be3d9e9b36d1cf08212433490b279e7d858864e91faa180c4 |
|
MD5 | ab50cac595e78e5d3fc50cf9d180db76 |
|
BLAKE2b-256 | 9719ca1918fbd2ef7cf23363d31362463be76e2d1246229c3d979a045eaa8e9f |
Close
Hashes for aioopenexchangerates-0.6.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f0fdecc528a9c58ba09071efe903bf07b453eaa482e34387213109fb4ca9e5e |
|
MD5 | 29026eec13f98ceb11e01aaebb8f2549 |
|
BLAKE2b-256 | d169f4585dab3f670bd245211395d67d62629c8e5c28592f6e7e47409ea36cd9 |