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

Usage

All services require a token, so create one GeoZoneTool instance and call services through it.

from dlubal.api import geo_zone_tool

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

Common Enums

  • geo_zone_tool.Language (EN, DE, IT, CS, FR, ES, PT, PL, RU, ZH)
  • geo_zone_tool.LoadZoneType (SNOW, WIND, SEISMIC, TORNADO)
  • geo_zone_tool.ScreenshotType (PNG, JPEG)
  • geo_zone_tool.RiskCategory (I, II, III, IV) — ASCE 7-22
  • geo_zone_tool.SiteClass (DEFAULT, A, B, BC, C, CD, D, DE, E) — ASCE 7-22

Examples

Find Locations

from dlubal.api import geo_zone_tool

geo_zone = geo_zone_tool.GeoZoneTool("<your-token>")
locations = geo_zone.get_geo_locations(
    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

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

Get Available Standards

from dlubal.api import geo_zone_tool

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

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

Find Load Zones by Country

Returns all available load zones (standards, annexes, layers) for a country.

from dlubal.api import geo_zone_tool

geo_zone = geo_zone_tool.GeoZoneTool("<your-token>")
result = geo_zone.find_load_zones(
    country_code="DE",
    language=geo_zone_tool.Language.EN,
)

print(f"{result.country} ({result.country_code})")
for group in result.type_groups:
    print(f"  {group.name}")
    for lz in group.load_zones:
        print(f"    {lz.standard} / {lz.annex} ({lz.load_zone_id})")

Get Load Zone Characteristics

from dlubal.api import geo_zone_tool

geo_zone = geo_zone_tool.GeoZoneTool("<your-token>")
result = geo_zone.get_load_zone_characteristics(
    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

geo_zone = geo_zone_tool.GeoZoneTool("<your-token>")
screenshot = geo_zone.get_load_zone_screenshot(
    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

geo_zone = geo_zone_tool.GeoZoneTool("<your-token>")
for msg in geo_zone.get_load_zone_pdf(
    address="Flugplatzweg 6, 14913, Germany",
    standard="EN 1991-1-3",
    annex="DIN EN 1991-1-3",
    layer_id=1,
):
    print(f"[{msg.current_step}/{msg.steps}] {msg.message}")

Get Final PDF (Base64)

from dlubal.api import geo_zone_tool

geo_zone = geo_zone_tool.GeoZoneTool("<your-token>")
pdf_result = geo_zone.get_load_zone_pdf_result(
    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_result.name)
    print(pdf_result.pdf[:40])  # base64 prefix

Get ASCE 7-22 Seismic Parameters

Returns seismic design map parameters from USGS for a given US location, risk category, and site class.

from dlubal.api import geo_zone_tool

geo_zone = geo_zone_tool.GeoZoneTool("<your-token>")
result = geo_zone.get_asce722(
    latitude=37.7749,
    longitude=-122.4194,
    risk_category=geo_zone_tool.RiskCategory.II,
    site_class=geo_zone_tool.SiteClass.D,
)

if result.code == "OK" and result.data is not None:
    data = result.data
    print(f"Sds = {data.sds}")
    print(f"Sd1 = {data.sd1}")
    print(f"SDC = {data.sdc}")

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://team-w.dlubal.com/api/geo-zone/pub/graphql

Metadata

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

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.8
File Size Uploaded Provenance Actions
dlubal_api_geo_zone_tool-0.0.8.tar.gz 16.7 kB Without provenance Details for dlubal_api_geo_zone_tool-0.0.8.tar.gz

Built distribution (wheel)

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

Total release size: 28.1 kB

Release files / dlubal_api_geo_zone_tool-0.0.8.tar.gz

Download URL dlubal_api_geo_zone_tool-0.0.8.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6c416f6f3d6f5bbb97323525367de98e27c3aea0eb199abc7408882b0bc6ae0e
BLAKE2b-256 checksum
How to use checksums
ec148863c2498eeb84cdb8c1e5ec6705c8afcf4efc39e9929b4cd8f95f1b4d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

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

Download URL dlubal_api_geo_zone_tool-0.0.8-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d91caab4fbe2d037c83e32f5e3ac55edfee49cca170d40a8cfef580af9050a5e
BLAKE2b-256 checksum
How to use checksums
f730fcc8f4a70318e95ab3cc8c2cae288c023f36b1645561927e5e6b0d0d7166
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

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

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