Python client + CLI for the SafetyVision PPE compliance API.
Project description
safetyvision-client
Python client + CLI for the SafetyVision PPE compliance API — upload a worksite image, get PPE violation detections, an OSHA-grounded incident report, and a downloadable PDF.
Install
pip install safetyvision-client
Quickstart
from safetyvision_client import SafetyVision
sv = SafetyVision(api_key="sv_...") # or set SAFETYVISION_API_KEY
result = sv.analyze("worksite.jpg")
print(result.violations)
result.save_pdf("incident.pdf") # downloads the signed PDF URL
results = sv.analyze_batch(["a.jpg", "b.jpg"]) # threaded
CLI
export SAFETYVISION_API_KEY=sv_...
safetyvision analyze worksite.jpg --pdf report.pdf
safetyvision history --limit 10
safetyvision forecast "NO-Safety Vest"
Config
SAFETYVISION_API_KEY— your API key (or--api-key)SAFETYVISION_BASE_URL— override the API endpoint (or--base-url)
Image-only, 6 MB max (Lambda Function URL cap); video → the HF Spaces demo.
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 safetyvision_client-0.1.0.tar.gz.
File metadata
- Download URL: safetyvision_client-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce7d4d1c18a412dcd1477d911bc293bf96b292bb61dcb024355b21c96685c61f
|
|
| MD5 |
17b2076c4bbbd29bdafa8a78cabe446d
|
|
| BLAKE2b-256 |
fb73b6e9cdc47a4e921beed5e05898abd01d419a8a562c97ff3f3700553d5661
|
Provenance
The following attestation bundles were made for safetyvision_client-0.1.0.tar.gz:
Publisher:
sdk_publish.yml on ayushgupta07xx/SafetyVision
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safetyvision_client-0.1.0.tar.gz -
Subject digest:
ce7d4d1c18a412dcd1477d911bc293bf96b292bb61dcb024355b21c96685c61f - Sigstore transparency entry: 1626928289
- Sigstore integration time:
-
Permalink:
ayushgupta07xx/SafetyVision@aac5735666eb605a7967508e463d1c07ae0bda18 -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/ayushgupta07xx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk_publish.yml@aac5735666eb605a7967508e463d1c07ae0bda18 -
Trigger Event:
push
-
Statement type:
File details
Details for the file safetyvision_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: safetyvision_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 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 |
24c6c1ca93185f45a7d4c129ce29331d25a1536b86fb57612654de74e5f1b7cf
|
|
| MD5 |
e43388674e932e7a80d695626bbe7afe
|
|
| BLAKE2b-256 |
2d13f910fc161037faecff9eeabf0642ac1f17c90799ef6e9782f5a248fe1e04
|
Provenance
The following attestation bundles were made for safetyvision_client-0.1.0-py3-none-any.whl:
Publisher:
sdk_publish.yml on ayushgupta07xx/SafetyVision
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safetyvision_client-0.1.0-py3-none-any.whl -
Subject digest:
24c6c1ca93185f45a7d4c129ce29331d25a1536b86fb57612654de74e5f1b7cf - Sigstore transparency entry: 1626928360
- Sigstore integration time:
-
Permalink:
ayushgupta07xx/SafetyVision@aac5735666eb605a7967508e463d1c07ae0bda18 -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/ayushgupta07xx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk_publish.yml@aac5735666eb605a7967508e463d1c07ae0bda18 -
Trigger Event:
push
-
Statement type: