Skip to main content

Polizei Brandenburg: App

Project description

polizei-brandenburg

Polizei Brandenburg Nachrichten, Hochwasser-, Verkehrs- und Waldbrandwarnungen

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[polizei_brandenburg]

poetry install

poetry add deutschland -E polizei_brandenburg

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 polizei_brandenburg

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import polizei_brandenburg
from pprint import pprint
from deutschland.polizei_brandenburg.api import default_api
from deutschland.polizei_brandenburg.model.news import News
from deutschland.polizei_brandenburg.model.pegel import Pegel
from deutschland.polizei_brandenburg.model.reviere import Reviere
from deutschland.polizei_brandenburg.model.verkehr import Verkehr
from deutschland.polizei_brandenburg.model.waldbrand import Waldbrand
# Defining the host is optional and defaults to https://polizei.brandenburg.de/ipa_api
# See configuration.py for a list of all supported configuration parameters.
configuration = polizei_brandenburg.Configuration(
    host = "https://polizei.brandenburg.de/ipa_api"
)



# Enter a context with an instance of the API client
with polizei_brandenburg.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    count = 5000 # int | Number of results (optional)
category = 8 # int | category id (optional)
district = 500 # int | district id (optional)

    try:
        # Nachrichten, Suchmeldungen der Polzei Brandenburg
        api_response = api_instance.news_version1_get(count=count, category=category, district=district)
        pprint(api_response)
    except polizei_brandenburg.ApiException as e:
        print("Exception when calling DefaultApi->news_version1_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://polizei.brandenburg.de/ipa_api

Class Method HTTP request Description
DefaultApi news_version1_get GET /news/version/1 Nachrichten, Suchmeldungen der Polzei Brandenburg
DefaultApi pegel_version1_get GET /pegel/version/1 Pegelstände
DefaultApi reviere_version1_get GET /reviere/version/1 Liste aller Reviere der Polzei Brandenburg
DefaultApi vwd_version1_get GET /vwd/version/1 Verkehrswarnungen der Polzei Brandenburg
DefaultApi waldbrand_version1_get GET /waldbrand/version/1 Waldbrandwarnungen Brandenburg

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 polizei_brandenburg.apis and polizei_brandenburg.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.polizei_brandenburg.api.default_api import DefaultApi
  • from deutschland.polizei_brandenburg.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 polizei_brandenburg
from deutschland.polizei_brandenburg.apis import *
from deutschland.polizei_brandenburg.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-polizei-brandenburg-0.1.0.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

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

de_polizei_brandenburg-0.1.0-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file de-polizei-brandenburg-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for de-polizei-brandenburg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c3716d9682b20c939872d508416972b4df107542fdce727cd48d3c1cc7a4861
MD5 d17b48840f468f748cab00b2d8792f5b
BLAKE2b-256 ba800f2890bf4359a1beb8b4ada08a82b8a1e28cad7430c7b03ecdf1980ae8c0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for de_polizei_brandenburg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6c705c1617b00d93dcb8ba923acd3e6b0095ec0f784e3a526afbad6eea47667
MD5 7ad4852f6e2afa95faa6615d1a31d8ce
BLAKE2b-256 12afb5a89488fa4e69c2eaab6d1ccd86468a21b775409a2f1c74be17fdb23318

See more details on using hashes here.

Supported by

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