Package: de-destatis
destatisNo description provided (generated by Openapi Generatorhttps://github.com/openapitools/openapi-generator)This Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0Package version: 0.1.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installpipinstalldeutschland[destatis]poetry installpoetryadddeutschland-EdestatisSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportdestatisGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportdestatisfrompprintimportpprintfromdeutschland.destatis.apiimportdefault_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 clientwithdestatis.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_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)exceptdestatis.ApiExceptionase:print("Exception when calling DefaultApi->chart2result:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://www-genesis.destatis.de/genesisWS/rest/2020ClassMethodHTTP requestDescriptionDefaultApichart2resultGET/data/chart2resultDefaultApichart2tableGET/data/chart2tableDefaultApichart2timeseriesGET/data/chart2timeseriesDefaultApicubeGET/data/cubeDefaultApicube_metaGET/metadata/cubeDefaultApicubefileGET/data/cubefileDefaultApicubesGET/catalogue/cubesDefaultApicubes2statisticGET/catalogue/cubes2statisticDefaultApicubes2variableGET/catalogue/cubes2variableDefaultApifindGET/find/findDefaultApijobsGET/catalogue/jobsDefaultApilogincheckGET/helloworld/logincheckDefaultApimap2resultGET/data/map2resultDefaultApimap2tableGET/data/map2tableDefaultApimap2timeseriesGET/data/map2timeseriesDefaultApimodifieddataGET/catalogue/modifieddataDefaultApipasswordGET/profile/passwordDefaultApiqualitysignsGET/catalogue/qualitysignsDefaultApiremove_resultGET/profile/removeResultDefaultApiresultGET/data/resultDefaultApiresultfileGET/data/resultfileDefaultApiresultsGET/catalogue/resultsDefaultApistatisticGET/metadata/statisticDefaultApistatisticsGET/catalogue/statisticsDefaultApistatistics2variableGET/catalogue/statistics2variableDefaultApitableGET/data/tableDefaultApitable_metaGET/metadata/tableDefaultApitablefileGET/data/tablefileDefaultApitablesGET/catalogue/tablesDefaultApitables2statisticGET/catalogue/tables2statisticDefaultApitables2variableGET/catalogue/tables2variableDefaultApitermsGET/catalogue/termsDefaultApitimeseriesGET/catalogue/timeseriesDefaultApitimeseries2statisticGET/catalogue/timeseries2statisticDefaultApitimeseries2variableGET/catalogue/timeseries2variableDefaultApitimeseries_dataGET/data/timeseriesDefaultApitimeseries_metaGET/metadata/timeseriesDefaultApitimeseriesfileGET/data/timeseriesfileDefaultApivalueGET/metadata/valueDefaultApivaluesGET/catalogue/valuesDefaultApivalues2variableGET/catalogue/values2variableDefaultApivariableGET/metadata/variableDefaultApivariablesGET/catalogue/variablesDefaultApivariables2statisticGET/catalogue/variables2statisticDefaultApiwhoamiGET/helloworld/whoamiDocumentation For ModelsDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf 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 DefaultApifrom deutschland.destatis.model.pet import PetSolution 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 *