Skip to main content

GST Cranes Python SDK for public read-only API discovery and webhook verification.

Project description

gstcranes

Official GST Cranes Python SDK for public read-only API discovery, Crane Wiki company records, OpenAPI metadata, and webhook signature verification.

The package only calls public read endpoints. Account actions such as listing creation, wanted-ad publishing, credits, promotions, saved alerts, and billing stay in the signed-in GST Cranes browser UI.

Install

pip install gstcranes

PyPI package: https://pypi.org/project/gstcranes/

Client

from gstcranes import GstCranesClient

client = GstCranesClient()
companies = client.list_companies(country="DE", limit=10)
company = client.get_company("bms-heavy-cranes")
answer = client.ask("companies with Liebherr LTM 1750 records")

Webhook verification

Use the raw request body exactly as received, the GST-Webhook-Timestamp header, the GST-Webhook-Signature header, and the endpoint secret shown once when you create a webhook endpoint.

from gstcranes import verify_webhook_signature

verify_webhook_signature(
    raw_body,
    timestamp=request.headers["GST-Webhook-Timestamp"],
    signature=request.headers["GST-Webhook-Signature"],
    secret=GST_WEBHOOK_SECRET,
)

The verifier raises WebhookSignatureError if the timestamp is stale or the HMAC-SHA256 signature does not match.

Official resources

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

gstcranes-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

gstcranes-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file gstcranes-0.1.0.tar.gz.

File metadata

  • Download URL: gstcranes-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gstcranes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e86fd63cdbfcd7c6c13414af99a90fec6ebc5546e513d00111ff11fec4da505
MD5 44c06b7a021a7cc2f5ac270b8cc7ce52
BLAKE2b-256 50d07efb6b76b115b81cf126e715666f4c83daf8b7986630e36601fbdcb219fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gstcranes-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gstcranes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0483fa6f2d82809e1457978a5edf6f6867d2dd7b427dea7c5b76e7b17356dfc
MD5 5d2a82eeb546655b41e2b4fc4f09efaf
BLAKE2b-256 cb250eea60f3e734f4364f95acd5d59bf9cf052ad22ddc06ee36b81e712de9f7

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