Package: de-zoll
zollAbfragen von Importzöllen und WechselkursenThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.0Package version: 0.1.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installpipinstalldeutschland[zoll]poetry installpoetryadddeutschland-EzollSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportzollGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportzollfrompprintimportpprintfromdeutschland.zoll.apiimportdefault_apifromdeutschland.zoll.model.categoriesimportCategoriesfromdeutschland.zoll.model.countriesimportCountriesfromdeutschland.zoll.model.exchange_ratesimportExchangeRatesfromdeutschland.zoll.model.product_groupsimportProductGroupsfromdeutschland.zoll.model.product_unitsimportProductUnitsfromdeutschland.zoll.model.productsimportProducts# Defining the host is optional and defaults to https://www.bundesfinanzministerium.de/SiteGlobals/Functions/Apps/retrieve# See configuration.py for a list of all supported configuration parameters.configuration=zoll.Configuration(host="https://www.bundesfinanzministerium.de/SiteGlobals/Functions/Apps/retrieve")# Enter a context with an instance of the API clientwithzoll.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=default_api.DefaultApi(api_client)client="ZUP"# str |  (default to "ZUP")view="renderJson[App]"# str |  (default to "renderJson[App]")user_agent="zollundpost/2 CFNetwork/1220.1 Darwin/20.3.0"# str |  (default to "zollundpost/2 CFNetwork/1220.1 Darwin/20.3.0")last_modified_date=""# str |  (optional) (default to "")try:# Produktkategorienapi_response=api_instance.kategorien_get(client,view,user_agent,last_modified_date=last_modified_date)pprint(api_response)exceptzoll.ApiExceptionase:print("Exception when calling DefaultApi->kategorien_get:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://www.bundesfinanzministerium.de/SiteGlobals/Functions/Apps/retrieveClassMethodHTTP requestDescriptionDefaultApikategorien_getGET/kategorienProduktkategorienDefaultApikurse_app_kurs_export_txt_getGET/Kurse/App/KursExport.txtWährungskurseDefaultApilaender_getGET/laenderDefaultApiprodukte_getGET/produkteProdukteDefaultApiprodukteinheiten_getGET/produkteinheitenDefaultApiproduktgruppen_getGET/produktgruppenDocumentation For ModelsCategoriesCategoriesDataCategoryCountriesCountriesDataCountryExchangeRatesExchangeRatesKurseProductProductGroupProductGroupsProductGroupsDataProductUnitProductUnitsProductUnitsDataProductsProductsDataDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in zoll.apis and zoll.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.zoll.api.default_api import DefaultApifrom deutschland.zoll.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 zoll
from deutschland.zoll.apis import *
from deutschland.zoll.models import *