Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safetyvision_client-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

safetyvision_client-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for safetyvision_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce7d4d1c18a412dcd1477d911bc293bf96b292bb61dcb024355b21c96685c61f
MD5 17b2076c4bbbd29bdafa8a78cabe446d
BLAKE2b-256 fb73b6e9cdc47a4e921beed5e05898abd01d419a8a562c97ff3f3700553d5661

See more details on using hashes here.

Provenance

The following attestation bundles were made for safetyvision_client-0.1.0.tar.gz:

Publisher: sdk_publish.yml on ayushgupta07xx/SafetyVision

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

File details

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

File metadata

File hashes

Hashes for safetyvision_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24c6c1ca93185f45a7d4c129ce29331d25a1536b86fb57612654de74e5f1b7cf
MD5 e43388674e932e7a80d695626bbe7afe
BLAKE2b-256 2d13f910fc161037faecff9eeabf0642ac1f17c90799ef6e9782f5a248fe1e04

See more details on using hashes here.

Provenance

The following attestation bundles were made for safetyvision_client-0.1.0-py3-none-any.whl:

Publisher: sdk_publish.yml on ayushgupta07xx/SafetyVision

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