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.10.tar.gz
.
File metadata
- Download URL: aioopenexchangerates-0.6.10.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43b2d470d45250f77b59b3c39fb7ca2c2c938341558c185e78cdc3ff2db584b7 |
|
MD5 | 665b017d0ca5f2d8cddedc68d0611ffb |
|
BLAKE2b-256 | 31acb9978946045cefb2d0592cf69fd15b796a1fd89eb82f3a32ea7c7eec3e06 |
Provenance
The following attestation bundles were made for aioopenexchangerates-0.6.10.tar.gz
:
Publisher:
ci.yml
on MartinHjelmare/aioopenexchangerates
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
aioopenexchangerates-0.6.10.tar.gz
- Subject digest:
43b2d470d45250f77b59b3c39fb7ca2c2c938341558c185e78cdc3ff2db584b7
- Sigstore transparency entry: 149019064
- Sigstore integration time:
- Predicate type:
File details
Details for the file aioopenexchangerates-0.6.10-py3-none-any.whl
.
File metadata
- Download URL: aioopenexchangerates-0.6.10-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eafab17adc78dd0ba81a1085032ecc43e81fd475733ea9f2bea4b3aef5eafda |
|
MD5 | 09c90f1667fe948155751e0ff2eaa8b7 |
|
BLAKE2b-256 | f54f1a3923dc16408d8cadc6c606646bdba81b74bb701c3c2e9fca6d8c6a54a8 |
Provenance
The following attestation bundles were made for aioopenexchangerates-0.6.10-py3-none-any.whl
:
Publisher:
ci.yml
on MartinHjelmare/aioopenexchangerates
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
aioopenexchangerates-0.6.10-py3-none-any.whl
- Subject digest:
0eafab17adc78dd0ba81a1085032ecc43e81fd475733ea9f2bea4b3aef5eafda
- Sigstore transparency entry: 149019066
- Sigstore integration time:
- Predicate type: