Swiss-Pollen
Python API to gather the current pollen load from MeteoSchweiz for the following plants:
- birch
- beech
- oak
- alder
- ash
- grasses
- hazel
For the use within Home Assistant use the custom component hass-swiss-pollen.
This module is not officially developed, supported or endorsed by MeteoSchweiz.
Installation
Using pip
- Install python 3.10 or higher
- Install swiss-pollen with
pip install swiss-pollen. - Run swiss-pollen test with
swiss-pollen.
Usage
API
class PollenService:
@staticmethod
def load(plants : list[Plant] = Plant) -> PollenResult
Example
from swiss_pollen import (PollenService, Plant)
# get pollen data for all available plants (requires 7 remote calls, one for each plant)
all_pollen_data_per_station = PollenService.load()
# get pollen data for a restricted list of plants (requires 2 remote calls, one for each plant)
specific_pollen_data_per_station = PollenService.load(plants = [Plant.HAZEL, Plant.GRASSES])
Metadata
Release files for swiss-pollen 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swiss_pollen-2.1.1.tar.gz | 11.1 kB | Without provenance | Details for swiss_pollen-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swiss_pollen-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for swiss_pollen-2.1.1-py3-none-any.whl |
Total release size: 23.5 kB
Release files / swiss_pollen-2.1.1.tar.gz
| Download URL | swiss_pollen-2.1.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93f967771fdab9c9c4f05344c53989757c8ac511430217ccc6dd459a724e9c27
|
|
BLAKE2b-256 checksum How to use checksums |
07f2975ec0c7340aa8354b4928c52770ce853bd85041bdc563afa5aeaa95f44c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / swiss_pollen-2.1.1-py3-none-any.whl
| Download URL | swiss_pollen-2.1.1-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7759785104a52ff0ef9109b8680dc7321cc2598206a43af18e8dc178d42abf8
|
|
BLAKE2b-256 checksum How to use checksums |
92ccec0fbb876c127979982863c2dd567840cc6c6762f2ef2df51e05be6acea8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for swiss-pollen 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.