Skip to main content

Swiss-Pollen

PyPI PyPI - Python Version

Project Maintenance License

Build Status Deploy Status

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

  1. Install python 3.10 or higher
  2. Install swiss-pollen with pip install swiss-pollen.
  3. 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)

Source distribution for swiss-pollen 2.1.1
File Size Uploaded
swiss_pollen-2.1.1.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swiss-pollen 2.1.1
File Interpreter ABI Platform
swiss_pollen-2.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page