Python wrapper for getting allergen concentration data from Żadnego Ale servers.
Project description
zadnegoale
Python wrapper for getting allergen concentration data from Żadnego Ale
How to use package
import asyncio
import logging
from aiohttp import ClientError, ClientSession
from zadnegoale import ApiError, InvalidRegionError, ZadnegoAle
REGION = 2
logging.basicConfig(level=logging.DEBUG)
async def main():
async with ClientSession() as websession:
try:
zadnegoale = ZadnegoAle(websession, REGION)
data = await zadnegoale.async_update(alerts=True)
except (ApiError, ClientError, InvalidRegionError) as error:
print(f"Error: {error}")
else:
print(f"Region: {zadnegoale.region_name}")
print(f"Data: {data}")
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
loop.close()
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
zadnegoale-0.7.0.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zadnegoale-0.7.0.tar.gz.
File metadata
- Download URL: zadnegoale-0.7.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7f3cea3bf978c7edbd24a114d459bc7735447a54da3ffbd270f038042f8f747
|
|
| MD5 |
b90445e666034b1b00168b41e674c6e3
|
|
| BLAKE2b-256 |
a42e1c3ce5c4522404ec2983dc6d5dcf09c08f98baab46fddf3f451ac71c7851
|
File details
Details for the file zadnegoale-0.7.0-py3-none-any.whl.
File metadata
- Download URL: zadnegoale-0.7.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae2ebbeb7d1d9fca49aee1906798b2db6c89a230787f9340d5b9c0759dda64bc
|
|
| MD5 |
43a61d1c40f46a8712036ed875f9ba9d
|
|
| BLAKE2b-256 |
5c4d5ef0d0058ec30db57ecdf854ff5302ab6ddd36a316b32d82716ff240c461
|