Skip to main content

Dashboard Deutschland API

Project description

DashboardDeutschland

Auf https://www.dashboard-deutschland.de bietet das Statistische Bundesamt DESTATIS einen Überblick zu gesellschaftlich und wirtschaftlich relevanten Daten aus unterschiedlichen Themenbereichen. Diese werden durch Grafiken und Texte ergänzt und regelmäßig aktualisiert. Damit soll eine Möglichkeit geboten werden, aktuelle Kennzahlen und deren Entwicklung übersichtlich darzustellen.

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python >= 3.6

Installation & Usage

pip install

pip install deutschland[DashboardDeutschland]

poetry install

poetry add deutschland -E DashboardDeutschland

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Usage

Import the package:

from deutschland import DashboardDeutschland

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import DashboardDeutschland
from pprint import pprint
from deutschland.DashboardDeutschland.api import geo_api
from deutschland.DashboardDeutschland.model.geo import Geo
# Defining the host is optional and defaults to https://www.dashboard-deutschland.de
# See configuration.py for a list of all supported configuration parameters.
configuration = DashboardDeutschland.Configuration(
    host = "https://www.dashboard-deutschland.de"
)



# Enter a context with an instance of the API client
with DashboardDeutschland.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = geo_api.GeoApi(api_client)

    try:
        # Zugriff auf Geojson-Daten zu Deutschland und den Ländern
        api_response = api_instance.geo()
        pprint(api_response)
    except DashboardDeutschland.ApiException as e:
        print("Exception when calling GeoApi->geo: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://www.dashboard-deutschland.de

Class Method HTTP request Description
GeoApi geo GET /geojson/de-all.geo.json Zugriff auf Geojson-Daten zu Deutschland und den Ländern
GetApi get GET /api/dashboard/get Zugriff auf alle gültigen Einträge des id-Parameters
IndicatorsApi indicators GET /api/tile/indicators Zugriff auf unterschiedliche Indikatoren

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

andreasfischer1985@web.de

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in DashboardDeutschland.apis and DashboardDeutschland.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1: Use specific imports for apis and models like:

  • from deutschland.DashboardDeutschland.api.default_api import DefaultApi
  • from deutschland.DashboardDeutschland.model.pet import Pet

Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
from deutschland import DashboardDeutschland
from deutschland.DashboardDeutschland.apis import *
from deutschland.DashboardDeutschland.models import *

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

de-DashboardDeutschland-0.1.0.tar.gz (45.5 kB view hashes)

Uploaded Source

Built Distributions

de_dashboarddeutschland-0.1.0-py3-none-any.whl (70.1 kB view hashes)

Uploaded Python 3

de_DashboardDeutschland-0.1.0-py3-none-any.whl (69.6 kB view hashes)

Uploaded Python 3

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