Python SDK for Sonoran CAD 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
429responses up to 2 times and respectRetry-Afterwhen it is provided. - The import package remains
sonoran.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonoran_py-0.1.0.tar.gz.
File metadata
- Download URL: sonoran_py-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b712c827897f743f26009b2f36ba7851daea10d11f224f111ea83d9045200d9
|
|
| MD5 |
3d2b8e6aeee92d00f3b56c59b6f252d0
|
|
| BLAKE2b-256 |
994acb1b7535cd883dabc8379c71a748302a42aaf4a4b33d8bbb810857885dbb
|
Provenance
The following attestation bundles were made for sonoran_py-0.1.0.tar.gz:
Publisher:
release.yml on Sonoran-Software/Sonoran.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonoran_py-0.1.0.tar.gz -
Subject digest:
3b712c827897f743f26009b2f36ba7851daea10d11f224f111ea83d9045200d9 - Sigstore transparency entry: 1311318080
- Sigstore integration time:
-
Permalink:
Sonoran-Software/Sonoran.py@119b38b5c325c0274757166a6d65c8c2fd733498 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Sonoran-Software
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@119b38b5c325c0274757166a6d65c8c2fd733498 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sonoran_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sonoran_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f00b32b740cae8c69df209f0d360994d43c0c39453e3b7258318f68adc12e2ac
|
|
| MD5 |
e44da86b42b89d7e7008a925f44886bd
|
|
| BLAKE2b-256 |
506ae1438fd1bebb4928621ac9384d89cdb4307315bd01ebf275a0a20afd4882
|
Provenance
The following attestation bundles were made for sonoran_py-0.1.0-py3-none-any.whl:
Publisher:
release.yml on Sonoran-Software/Sonoran.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonoran_py-0.1.0-py3-none-any.whl -
Subject digest:
f00b32b740cae8c69df209f0d360994d43c0c39453e3b7258318f68adc12e2ac - Sigstore transparency entry: 1311318154
- Sigstore integration time:
-
Permalink:
Sonoran-Software/Sonoran.py@119b38b5c325c0274757166a6d65c8c2fd733498 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Sonoran-Software
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@119b38b5c325c0274757166a6d65c8c2fd733498 -
Trigger Event:
push
-
Statement type: