Skip to main content

strahlenschutz

Daten zur radioaktiven Belastung in Deutschland. Weitere Informationen unter https://odlinfo.bfs.de/ODL/DE/service/datenschnittstelle/datenschnittstelle_node.html.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python >= 3.6

Installation & Usage

pip install

pip install deutschland[strahlenschutz]

poetry install

poetry add deutschland -E strahlenschutz

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 strahlenschutz

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import strahlenschutz
from pprint import pprint
from deutschland.strahlenschutz.api import default_api
from deutschland.strahlenschutz.model.extended_schema import ExtendedSchema
from deutschland.strahlenschutz.model.normal_schema import NormalSchema
# Defining the host is optional and defaults to https://www.imis.bfs.de/ogc/opendata/ows
# See configuration.py for a list of all supported configuration parameters.
configuration = strahlenschutz.Configuration(
    host = "https://www.imis.bfs.de/ogc/opendata/ows"
)



# Enter a context with an instance of the API client
with strahlenschutz.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    service = "WFS" # str | Name des Service der benutzt werden soll. Aktuell immer `WFS`. (default to "WFS")
request = "GetFeature" # str | Name der OWS-Request. Aktuell immer `GetFeature`. (default to "GetFeature")
output_format = "application/json" # str | Ausgabeformat. Aktuell immer `application/json`. (default to "application/json")
type_name = "opendata:odlinfo_odl_1h_latest" # str | Name des Datenlayers, das benutzt werden soll.   * `odlinfo_odl_1h_latest` - Liste der Messstellen inklusive dem jeweils letzten 1-Stunden-Messwert   * `odlinfo_timeseries_odl_1h` - Zeitreihe mit 1-Stunden-Messdaten   * `odlinfo_timeseries_odl_24h` - Zeitreihe mit 24-Stunden-Messdaten  (optional)
viewparams = "kenn:031020004" # str | Nur in Kombination mit historischen Daten (also nur Layer ohne `_latest`) relevant.  Genutzt zur Angabe einer spezifischen Messstelle mittels `kenn`-Wert.  (optional)
sort_by = "end_measure+D" # str | Hier kann ein Feld von `properties` (also den zurückgegebenen Datenpunkten) angegeben werden, dann wird nach diesem aufsteigend sortiert. Wird an den Namen des Feldes noch `+D` angehängt, so wird absteigend sortiert.  (optional)
max_features = 100 # float | Maximale Anzahl an Datenpunkten die zurückgegeben werden soll. (optional)
start_index = 3.14 # float | Offset, von dem aus Datenpunkte zurückgegeben werden sollen. Kann in Kombination mit `maxFeatures` genutzt werden, um Pagination zu ermöglichen. (optional)

    try:
        # Hauptendpunkt
        api_response = api_instance.root_get(service, request, output_format, type_name=type_name, viewparams=viewparams, sort_by=sort_by, max_features=max_features, start_index=start_index)
        pprint(api_response)
    except strahlenschutz.ApiException as e:
        print("Exception when calling DefaultApi->root_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://www.imis.bfs.de/ogc/opendata/ows

Class Method HTTP request Description
DefaultApi root_get GET / Hauptendpunkt

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 strahlenschutz.apis and strahlenschutz.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.strahlenschutz.api.default_api import DefaultApi
  • from deutschland.strahlenschutz.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 strahlenschutz
from deutschland.strahlenschutz.apis import *
from deutschland.strahlenschutz.models import *

Metadata

Release files for de-strahlenschutz 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for de-strahlenschutz 1.0.0
File Size Uploaded
de-strahlenschutz-1.0.0.tar.gz 46.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for de-strahlenschutz 1.0.0
File Interpreter ABI Platform
de_strahlenschutz-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 117.1 kB

Release files / de-strahlenschutz-1.0.0.tar.gz

Download URL de-strahlenschutz-1.0.0.tar.gz
Size 46.4 kB
Tags Source
SHA-256 checksum
How to use checksums
460d27b87dcc174b09b7a2142d40ce65250dc35a4d599dd14211374cd82c3b13
BLAKE2b-256 checksum
How to use checksums
dd5c50b4a7b83b6df406f996146a5ccf95f1448935be8fe198393feeb49869b7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / de_strahlenschutz-1.0.0-py3-none-any.whl

Download URL de_strahlenschutz-1.0.0-py3-none-any.whl
Size 70.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f357c9f53b5fcdfdccdbc3b8f9589ca6d6bf7457a44aa306d0e3a93f5130e49
BLAKE2b-256 checksum
How to use checksums
c384e91dedd902197a8396952eb9283e39cb1d9b01c14315a5adc57884ed9960
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page