Skip to main content

Einfuhrzoll API

Project description

zoll

Abfragen von Importzöllen und Wechselkursen

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

Requirements.

Python >= 3.6

Installation & Usage

pip install

pip install deutschland[zoll]

poetry install

poetry add deutschland -E zoll

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 zoll

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import zoll
from pprint import pprint
from deutschland.zoll.api import default_api
from deutschland.zoll.model.categories import Categories
from deutschland.zoll.model.countries import Countries
from deutschland.zoll.model.exchange_rates import ExchangeRates
from deutschland.zoll.model.product_groups import ProductGroups
from deutschland.zoll.model.product_units import ProductUnits
from deutschland.zoll.model.products import Products
# 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 client
with zoll.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_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:
        # Produktkategorien
        api_response = api_instance.kategorien_get(client, view, user_agent, last_modified_date=last_modified_date)
        pprint(api_response)
    except zoll.ApiException as e:
        print("Exception when calling DefaultApi->kategorien_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://www.bundesfinanzministerium.de/SiteGlobals/Functions/Apps/retrieve

Class Method HTTP request Description
DefaultApi kategorien_get GET /kategorien Produktkategorien
DefaultApi kurse_app_kurs_export_txt_get GET /Kurse/App/KursExport.txt Währungskurse
DefaultApi laender_get GET /laender
DefaultApi produkte_get GET /produkte Produkte
DefaultApi produkteinheiten_get GET /produkteinheiten
DefaultApi produktgruppen_get GET /produktgruppen

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

kontakt@bund.dev

Notes for Large OpenAPI documents

If 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 DefaultApi
  • from deutschland.zoll.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 zoll
from deutschland.zoll.apis import *
from deutschland.zoll.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-zoll-0.1.0.tar.gz (45.6 kB view hashes)

Uploaded Source

Built Distribution

de_zoll-0.1.0-py3-none-any.whl (85.1 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