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:
- API version: 1.0.0
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/AndreasFischer1985/dashboard-deutschland-api
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file de-DashboardDeutschland-0.1.0.tar.gz
.
File metadata
- Download URL: de-DashboardDeutschland-0.1.0.tar.gz
- Upload date:
- Size: 45.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebe80eb15c0626abe75eb65e14b33bb78015c242bc11fac9326f524cd821fe86 |
|
MD5 | 3c1331d62424d8ee5cf063a35c71e715 |
|
BLAKE2b-256 | 3e55638f9780046d8ec32be91773e094d9e0e24db7317524320b0afdf455b7d3 |
File details
Details for the file de_dashboarddeutschland-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: de_dashboarddeutschland-0.1.0-py3-none-any.whl
- Upload date:
- Size: 70.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f2e9671116c5350e39a8331482102f96a97104369679437b16cfcc8391de86 |
|
MD5 | 0fbbda7834fed5dfac9533bec55d4e6e |
|
BLAKE2b-256 | e0a283d96df2f5c0d3cb5c003afbb602639b3ebb7d9e079b7e000963c221da10 |
File details
Details for the file de_DashboardDeutschland-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: de_DashboardDeutschland-0.1.0-py3-none-any.whl
- Upload date:
- Size: 69.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c6274e121611549d99fb175cd20f7fcc1f0635e7389b4d75aa56ca80c26799 |
|
MD5 | d2c3f223d6b5ac90503f9b77c2ab079b |
|
BLAKE2b-256 | 32b0992728374f5807c4064e4438e42adf714bb0dcb29ecb94fbcd9d1f09bfb5 |