Skip to main content

vetvise-vms-client

Python client for the REST API of the VetVise Management System (VMS).

It handles service account authentication and wraps the most common endpoints: cameras, still frames, recordings, timeseries data, artifacts, incidents, pens, regions, reports and data collection.

Installation

pip install vetvise-vms-client

Requires Python 3.12 or newer.

Configuration

Servers are configured in a JSON file, keyed by an alias of your choice:

{
  "my-barn": {
    "protocol": "https",
    "hostname": "vms.example.com",
    "port": 443,
    "service_account_name": "my-service-account",
    "fingerprint": "<public key fingerprint>",
    "private_key": "/path/to/private_key.pem"
  }
}

private_key is either a path to a PEM file or the PEM content itself. Keep this file out of version control.

Usage

import time

from vms import VMS

vms = VMS("servers.json")
server = vms.get_instance("my-barn")

# Basic info
server.api.base.is_online()
server.api.base.get_version()

# Cameras and frames
camera_ids = server.api.cameras.get_camera_ids()
jpeg = server.api.frames.get_current_thumbnail_frame(camera_ids[0])
frame = server.api.frames.get_frame(camera_ids[0], time.time() * 1000)

# Timeseries data
server.api.timeseries.get_measurements()
df = server.api.timeseries.get_simple_measurement(
    "activity", "activity",
    start=(time.time() - 6 * 3600) * 1000,
    response_type="dataframe",
)

# Document collections support query / query_one / get_specific
latest = server.api.recordings.query_one({"order": {"timestamp": "desc"}})
reports = server.api.reports.query({"limit": 10})

# Regions
mappings = server.api.regions.get_mappings_for_camera(camera_ids[0])

# Stitch all cameras into one canvas image (PIL.Image)
canvas = server.helpers.canvas.build_canvas(image_source="stillFrame")

Authentication happens automatically on the first request and is renewed when the access token expires. Failed requests raise vms.RequestFailed, which carries the HTTP status, reason and response body.

Which endpoints a service account can use depends on the permissions it has been granted in the VMS. For endpoints and query syntax not covered by this client, see the REST API documentation.

License

Apache License 2.0. See LICENSE and NOTICE. Copyright 2026 VetVise GmbH.

Metadata

Release files for vetvise-vms-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vetvise-vms-client 0.1.0
File Size Uploaded Provenance Actions
vetvise_vms_client-0.1.0.tar.gz 52.7 kB Without provenance Details for vetvise_vms_client-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vetvise-vms-client 0.1.0
File Interpreter ABI Platform Actions
vetvise_vms_client-0.1.0-py3-none-any.whl Python 3 none any Details for vetvise_vms_client-0.1.0-py3-none-any.whl

Total release size: 71.3 kB

Release files / vetvise_vms_client-0.1.0.tar.gz

Download URL vetvise_vms_client-0.1.0.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a3dd7bae86d5ba055079519dcd3d115866f8f70547866daa0e52b62f90d8f144
BLAKE2b-256 checksum
How to use checksums
52881e00b77814eb8da79899adebdf104ba64fbdaa831fb00d54ed0218cbc3f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / vetvise_vms_client-0.1.0-py3-none-any.whl

Download URL vetvise_vms_client-0.1.0-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc4ed2f27f5724e90684b2d43571af122ff312c145eff366f04438d863326e6d
BLAKE2b-256 checksum
How to use checksums
6526e874669e01a5fb89012d8388fed53af42388d06944e733edccc73d0a67e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for vetvise-vms-client 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page