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
File details
Details for the file aioopenexchangerates-0.6.1.tar.gz
.
File metadata
- Download URL: aioopenexchangerates-0.6.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a40a8f344407efe51b6bde527bd468adc3cb06cdbd57f376bcdb1575cd1474 |
|
MD5 | 83595aa812e161abf879ca33acaf3836 |
|
BLAKE2b-256 | 233fea7091207fdb3e3c5b5b3a26c38dfe1b6b6b69b18e1f5ee7b0568c06fab6 |
File details
Details for the file aioopenexchangerates-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: aioopenexchangerates-0.6.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860c240061e2d185555bb057e3e416b44c1fe37376c0c404ac2744f76a547ebf |
|
MD5 | ec4f603464776cca0c3307a8a8a9edfb |
|
BLAKE2b-256 | 90dd18b4f9764611ae21f5df535ed9c54046d9829c8f555997fcaed344a1bd3f |