Skip to main content

User Guide

This guide is for developers who consume dlubal.api.geo_zone_tool in their applications.

Install

pip install dlubal.api.geo_zone_tool

Authentication

Every API call requires a valid GeoZone token.

TOKEN = "<your-token>"

Import

from dlubal.api import geo_zone_tool

Common Enums

  • geo_zone_tool.Language (EN, DE, IT, ...)
  • geo_zone_tool.LoadZoneType (SNOW, WIND, EARTHQUAKE, TORNADO)
  • geo_zone_tool.ScreenshotType (PNG, JPEG)

Examples

Find Locations

from dlubal.api import geo_zone_tool

locations = geo_zone_tool.get_geo_locations(
    token="<your-token>",
    address="Flugplatzweg 6, 14913, Germany",
    language=geo_zone_tool.Language.EN,
)

for loc in locations.locations:
    print(loc)

Get User Info

from dlubal.api import geo_zone_tool

user = geo_zone_tool.get_user_data(token="<your-token>")
print(user)

Get Available Standards

from dlubal.api import geo_zone_tool

standards = geo_zone_tool.get_load_zone_standards(
    token="<your-token>",
    country_code="DE",
    language=geo_zone_tool.Language.EN,
)

for group in standards.types:
    print(group.name)

Get Load Zone Characteristics

from dlubal.api import geo_zone_tool

result = geo_zone_tool.get_load_zone_characteristics(
    token="<your-token>",
    address="Flugplatzweg 6, 14913, Germany",
    load_zone_type=geo_zone_tool.LoadZoneType.SNOW,
    standard="EN 1991-1-3",
    annex="DIN EN 1991-1-3",
    layer_id=1,
    language=geo_zone_tool.Language.EN,
)

print(result)

Get Screenshot (Base64)

from dlubal.api import geo_zone_tool

screenshot = geo_zone_tool.get_load_zone_screenshot(
    token="<your-token>",
    address="Flugplatzweg 6, 14913, Germany",
    load_zone_type=geo_zone_tool.LoadZoneType.SNOW,
    standard="EN 1991-1-3",
    annex="DIN EN 1991-1-3",
    layer_id=1,
    zoom=6,
    screenshot_type=geo_zone_tool.ScreenshotType.JPEG,
    screenshot_quality=80,
)

print(screenshot.screenshot[:40])  # base64 prefix

Stream PDF Progress

from dlubal.api import geo_zone_tool

for msg in geo_zone_tool.get_load_zone_pdf(
    token="<your-token>",
    address="Flugplatzweg 6, 14913, Germany",
    standard="EN 1991-1-3",
    annex="DIN EN 1991-1-3",
    layer_id=1,
):
    print(msg.progress_message, msg.state)

Get Final PDF (Base64)

from dlubal.api import geo_zone_tool

pdf_result = geo_zone_tool.get_load_zone_pdf_result(
    token="<your-token>",
    address="Flugplatzweg 6, 14913, Germany",
    standard="EN 1991-1-3",
    annex="DIN EN 1991-1-3",
    layer_id=1,
)

if pdf_result is not None:
    print("PDF ready")

Error Behavior

  • ValueError: empty strings, negative numeric values.
  • TypeError: wrong enum type used in function call.
  • RuntimeError: GraphQL response errors or WebSocket subscription errors.
  • requests.HTTPError: HTTP transport failures.

API Endpoint

The package targets:

  • https://api-gateway.dlubal.com/geo-zone/pub/graphql

Metadata

Release files for dlubal.api.geo-zone-tool 0.0.4

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

Source distribution (sdist)

Source distribution for dlubal.api.geo-zone-tool 0.0.4
File Size Uploaded Provenance Actions
dlubal_api_geo_zone_tool-0.0.4.tar.gz 12.3 kB Without provenance Details for dlubal_api_geo_zone_tool-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dlubal.api.geo-zone-tool 0.0.4
File Interpreter ABI Platform Actions
dlubal_api_geo_zone_tool-0.0.4-py3-none-any.whl Python 3 none any Details for dlubal_api_geo_zone_tool-0.0.4-py3-none-any.whl

Total release size: 21.1 kB

Release files / dlubal_api_geo_zone_tool-0.0.4.tar.gz

Download URL dlubal_api_geo_zone_tool-0.0.4.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
39f8557d078637783ab9474b59618dd3d3397c2d36c9ce6bafc32eb6131daa13
BLAKE2b-256 checksum
How to use checksums
3989ccc017854170d47f0b6af1e334f8269e1cfbc57902ea30eea38b5d091bcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dlubal_api_geo_zone_tool-0.0.4-py3-none-any.whl

Download URL dlubal_api_geo_zone_tool-0.0.4-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
190107a9634536eb6067c5a49f56cfdbe9ed84c3e85a1e61431a1d7ba568f9a6
BLAKE2b-256 checksum
How to use checksums
e1e54cdc9c2bf7cee44aaf3e66906fca6200281356c128d8aaafe6aacd928804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for dlubal.api.geo-zone-tool 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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