Skip to main content

Python client and HTTP service to access bee flight forecast information published by Deutscher Wetterdienst (DWD), the federal meteorological service in Germany.

Project description

https://github.com/hiveeyes/apicast/workflows/Tests/badge.svg https://img.shields.io/pypi/pyversions/apicast.svg https://img.shields.io/pypi/v/apicast.svg https://img.shields.io/pypi/status/apicast.svg https://img.shields.io/pypi/l/apicast.svg https://img.shields.io/pypi/dm/apicast.svg

About

Apicast acquires bee flight forecast information published by Deutscher Wetterdienst (DWD).

Setup

CLI version:

pip install apicast

HTTP API:

pip install apicast[service]

Synopsis

Display list of states and sites:

apicast beeflight stations

Display list of location slugs:

apicast beeflight stations --slugs

Acquire information for given location slug brandenburg/potsdam:

apicast beeflight forecast --station=brandenburg/potsdam

Acquire information for given location slug brandenburg/potsdam, output as table in Markdown format:

apicast beeflight forecast --station=brandenburg/potsdam --format=table-markdown

Output as table in JSON machine readable format:

apicast beeflight forecast --station=brandenburg/potsdam --format=json-machine

HTTP API

Start HTTP API service:

apicast service

Start HTTP service with dynamic code reloading:

apicast service --reload

Then navigate to:

open http://localhost:24640/

Example

apicast beeflight forecast --station=brandenburg/potsdam
[
    {
        "Datum": "Mo 01.06.",
        "morgens": "stark",
        "mittags": "intensiv",
        "abends": "stark"
    },
    {
        "Datum": "Di 02.06.",
        "morgens": "stark",
        "mittags": "intensiv",
        "abends": "intensiv"
    },
    {
        "Datum": "Mi 03.06.",
        "morgens": "intensiv",
        "mittags": "intensiv",
        "abends": "intensiv"
    }
]

Tests

make test

Content attributions

The copyright of data, particular images and pictograms are held by their respective owners, unless otherwise noted.

Data

Logo picture

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apicast-0.8.0.tar.gz (11.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page