Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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()
Metadata
Release files for zadnegoale 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zadnegoale-0.7.0.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zadnegoale-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / zadnegoale-0.7.0.tar.gz
| Download URL | zadnegoale-0.7.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7f3cea3bf978c7edbd24a114d459bc7735447a54da3ffbd270f038042f8f747
|
|
BLAKE2b-256 checksum How to use checksums |
a42e1c3ce5c4522404ec2983dc6d5dcf09c08f98baab46fddf3f451ac71c7851
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / zadnegoale-0.7.0-py3-none-any.whl
| Download URL | zadnegoale-0.7.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae2ebbeb7d1d9fca49aee1906798b2db6c89a230787f9340d5b9c0759dda64bc
|
|
BLAKE2b-256 checksum How to use checksums |
5c4d5ef0d0058ec30db57ecdf854ff5302ab6ddd36a316b32d82716ff240c461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|