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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6152793793a38b7b2e441d6e54363baeef136c3bd74e9aaeaa4fefef4a7ead81 |
|
MD5 | 7a382db52ab45f4b3f93304e03474d77 |
|
BLAKE2b-256 | eb5cddfa6805c0743d934558346f78e6c2dc71373665a4dc6eecc1bb4c284328 |
Close
Hashes for aioopenexchangerates-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852a0cd8058cfd6f04ecdc1fa3357bb68c190e248c26ee254d63d0a91c5b50ba |
|
MD5 | f12e82f01d15c88c1ff4ca2a6540128d |
|
BLAKE2b-256 | 437912397bee0047f807ef19410a41c868b8357522fd57acf2fdf146e8be29be |