Destatis-API
Project description
destatis
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python >= 3.6
Installation & Usage
pip install
pip install deutschland[destatis]
poetry install
poetry add deutschland -E destatis
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 destatis
Getting Started
Please follow the installation procedure and then run the following:
import time
from deutschland import destatis
from pprint import pprint
from deutschland.destatis.api import default_api
# Defining the host is optional and defaults to https://www-genesis.destatis.de/genesisWS/rest/2020
# See configuration.py for a list of all supported configuration parameters.
configuration = destatis.Configuration(
host = "https://www-genesis.destatis.de/genesisWS/rest/2020"
)
# Enter a context with an instance of the API client
with destatis.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = default_api.DefaultApi(api_client)
username = "GAST" # str | (optional) (default to "GAST")
password = "GAST" # str | (optional) (default to "GAST")
name = "name_example" # str | (optional)
area = "free" # str | (optional) (default to "free")
charttype = "0" # str | (optional) (default to "0")
drawpoints = "false" # str | (optional) (default to "false")
zoom = "2" # str | (optional) (default to "2")
focus = "false" # str | (optional) (default to "false")
tops = "false" # str | (optional) (default to "false")
format = "png" # str | (optional) (default to "png")
language = "de" # str | (optional) (default to "de")
try:
api_instance.chart2result(username=username, password=password, name=name, area=area, charttype=charttype, drawpoints=drawpoints, zoom=zoom, focus=focus, tops=tops, format=format, language=language)
except destatis.ApiException as e:
print("Exception when calling DefaultApi->chart2result: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://www-genesis.destatis.de/genesisWS/rest/2020
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | chart2result | GET /data/chart2result | |
DefaultApi | chart2table | GET /data/chart2table | |
DefaultApi | chart2timeseries | GET /data/chart2timeseries | |
DefaultApi | cube | GET /data/cube | |
DefaultApi | cube_meta | GET /metadata/cube | |
DefaultApi | cubefile | GET /data/cubefile | |
DefaultApi | cubes | GET /catalogue/cubes | |
DefaultApi | cubes2statistic | GET /catalogue/cubes2statistic | |
DefaultApi | cubes2variable | GET /catalogue/cubes2variable | |
DefaultApi | find | GET /find/find | |
DefaultApi | jobs | GET /catalogue/jobs | |
DefaultApi | logincheck | GET /helloworld/logincheck | |
DefaultApi | map2result | GET /data/map2result | |
DefaultApi | map2table | GET /data/map2table | |
DefaultApi | map2timeseries | GET /data/map2timeseries | |
DefaultApi | modifieddata | GET /catalogue/modifieddata | |
DefaultApi | password | GET /profile/password | |
DefaultApi | qualitysigns | GET /catalogue/qualitysigns | |
DefaultApi | remove_result | GET /profile/removeResult | |
DefaultApi | result | GET /data/result | |
DefaultApi | resultfile | GET /data/resultfile | |
DefaultApi | results | GET /catalogue/results | |
DefaultApi | statistic | GET /metadata/statistic | |
DefaultApi | statistics | GET /catalogue/statistics | |
DefaultApi | statistics2variable | GET /catalogue/statistics2variable | |
DefaultApi | table | GET /data/table | |
DefaultApi | table_meta | GET /metadata/table | |
DefaultApi | tablefile | GET /data/tablefile | |
DefaultApi | tables | GET /catalogue/tables | |
DefaultApi | tables2statistic | GET /catalogue/tables2statistic | |
DefaultApi | tables2variable | GET /catalogue/tables2variable | |
DefaultApi | terms | GET /catalogue/terms | |
DefaultApi | timeseries | GET /catalogue/timeseries | |
DefaultApi | timeseries2statistic | GET /catalogue/timeseries2statistic | |
DefaultApi | timeseries2variable | GET /catalogue/timeseries2variable | |
DefaultApi | timeseries_data | GET /data/timeseries | |
DefaultApi | timeseries_meta | GET /metadata/timeseries | |
DefaultApi | timeseriesfile | GET /data/timeseriesfile | |
DefaultApi | value | GET /metadata/value | |
DefaultApi | values | GET /catalogue/values | |
DefaultApi | values2variable | GET /catalogue/values2variable | |
DefaultApi | variable | GET /metadata/variable | |
DefaultApi | variables | GET /catalogue/variables | |
DefaultApi | variables2statistic | GET /catalogue/variables2statistic | |
DefaultApi | whoami | GET /helloworld/whoami |
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 destatis.apis and destatis.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.destatis.api.default_api import DefaultApi
from deutschland.destatis.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 destatis
from deutschland.destatis.apis import *
from deutschland.destatis.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 Distribution
File details
Details for the file de_destatis-0.1.0.tar.gz
.
File metadata
- Download URL: de_destatis-0.1.0.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4637d489b72b2ea198b03a4cb10148dde316c0a999e72f43917da2943a3429d8 |
|
MD5 | a908077fba511ea1e9353a197e14df22 |
|
BLAKE2b-256 | 2698b721fd8903488b09e1d44e1092dd103c7ef5b6fad4593f9dbead701bab29 |
File details
Details for the file de_destatis-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: de_destatis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 46.9 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 | f69024a8dbcbed58dcf63f7f1d0f18d5a12eed81b35657975e34131f9c618f9d |
|
MD5 | dfae5a20a6c577ebd3f9c88e80766f0e |
|
BLAKE2b-256 | a7cac975bc52f918c023d4391032d81c5def9f0ef60e29e124653fef799deef9 |