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://static.pepy.tech/badge/apicast/month

Apicast

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.5.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

apicast-0.8.5-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file apicast-0.8.5.tar.gz.

File metadata

  • Download URL: apicast-0.8.5.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for apicast-0.8.5.tar.gz
Algorithm Hash digest
SHA256 05924d98b38959368c32ede8b5c7060f8a55efff63730fc7519f52839ab7d590
MD5 5a4ab6e1a68866870d076171793b0a35
BLAKE2b-256 3769e0d55528d9e10941a2e42f248cb9edfba2cd09a1b2681d47cc63d91c0975

See more details on using hashes here.

Provenance

File details

Details for the file apicast-0.8.5-py3-none-any.whl.

File metadata

  • Download URL: apicast-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for apicast-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 73c0f242b01fa614487d6a338076240a7b3ced7b6affe69ac6d1b1c0215ffd8a
MD5 5d561f97613149b7c48113c59cd08434
BLAKE2b-256 0ff03c1477255a1bb8bf6a309732d46d02a8e7f75dd3b0b6b3a8107eca9f1ddd

See more details on using hashes here.

Provenance

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