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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edd1a5630e3051cbd3d011b95e55805459bc15edadff50fbec435edde0a99319 |
|
MD5 | 97c753b19a2dbd10c4ce1bc93e0a5878 |
|
BLAKE2b-256 | 6951a9632b1f922b0cfc8f2ed842869ce363a4bdda1f4d1a0602838fb1d6dc80 |
Close
Hashes for aioopenexchangerates-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acdd80c7fd659dffbdcf6ab0846fa4f8653608d26066e483a361cb45c9fb2e0 |
|
MD5 | 8209940fb5f2138eaae5dcc9cf45d03a |
|
BLAKE2b-256 | 81b619d45efc2390228e9ac7e683031b1011d1f8d60ed6b2e3c7c0880129d859 |