Skip to main content

Python SDK for Sonoran CAD and CMS integrations

Project description

Sonoran.py

Sonoran.py is the Python library for Sonoran CAD integrations.

This repository currently focuses on the CAD v2 API surface and mirrors the public helper names from Sonoran.js.

Install

pip install Sonoran.py

Example Usage

from sonoran import Instance, productEnums

instance = Instance(
    apiKey="YOUR_API_KEY",
    communityId="YOUR_COMMUNITY_ID",
    product=productEnums.CAD,
    serverId=1,
)

response = instance.cad.createEmergencyCallV2(
    {
        "serverId": 1,
        "isEmergency": True,
        "caller": "John Doe",
        "location": "101 Alta Street",
        "description": "Structure fire with visible smoke.",
        "deleteAfterMinutes": 30,
    }
)

if response.success:
    print(response.data)
else:
    print(response.reason)

Notes

  • Only CAD v2 helpers are included right now.
  • Helper names match Sonoran.js.
  • CAD v2 requests automatically retry 429 responses up to 2 times and respect Retry-After when it is provided.
  • The import package remains sonoran.

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

sonoran_py-0.1.4.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

sonoran_py-0.1.4-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file sonoran_py-0.1.4.tar.gz.

File metadata

  • Download URL: sonoran_py-0.1.4.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sonoran_py-0.1.4.tar.gz
Algorithm Hash digest
SHA256 28a1b37f96793a133914853678e4a30ea32e9c4ee5779c5a56d55d5e4e54f37f
MD5 2266126ae1fb2ea0c85f83f9145e5f51
BLAKE2b-256 ef54174b29c8d0c38e36deff598e1dab81f997ce8a6abd23069287a20ad5cbc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonoran_py-0.1.4.tar.gz:

Publisher: release.yml on Sonoran-Software/Sonoran.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sonoran_py-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sonoran_py-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sonoran_py-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 43a2c48a654d99944c51058396df4c6c0652c5f5b20d3767b9a2efea2ab1d366
MD5 fae51360a469d6c75b5b5bf7d6332a12
BLAKE2b-256 f92daf7782069c887c9ad8d0c4a5619be3041b78b53afbf587d0fa1647aa6e68

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonoran_py-0.1.4-py3-none-any.whl:

Publisher: release.yml on Sonoran-Software/Sonoran.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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