Skip to main content

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 *

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

de_zoll-0.1.0-py3-none-any.whl (85.1 kB view details)

Uploaded Python 3

File details

Details for the file de-zoll-0.1.0.tar.gz.

File metadata

  • Download URL: de-zoll-0.1.0.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

File hashes

Hashes for de-zoll-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f64515c9d544235e2bb30116999d002ef9b847f14f96a24c1bdb06604e66684f
MD5 6972d64fad4dcfdc20c7d03ff0561fb7
BLAKE2b-256 bf0b3dc2f9db4fd3954792c031a032e38cfde82e16f7e040dba8997c920133cb

See more details on using hashes here.

File details

Details for the file de_zoll-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: de_zoll-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 85.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

File hashes

Hashes for de_zoll-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de7b917d87f01658c0963b0e9c47299046c46bb69bd886e0210dc6aca8e7bbbe
MD5 cf44d2f863f04bab5feb5e262e9f6a93
BLAKE2b-256 1a932df1b7f151fa8df751e404731509e4105536632ae9aafdb63706ffb3bd20

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page