Skip to main content

r9cam-models

Shared transport contracts for the R9lab Raspberry Pi Camera plugin and the R9lab platform, part of the R9lab project.

Overview

This package provides stable, hardware-independent DTOs for camera, image, stream, and private device-seam payloads exchanged between the plugin and backend.

Within this repository the package is consumed through the uv workspace, so plugin changes and contract changes can be developed together without a manual publish step. Outside this repository, install it from PyPI (or your internal package index) like any normal Python package.

The published package version is the contract baseline for downstream repos. The workspace link in this repo is intentionally just a local development override, not a second source of truth.

Usage

Install from PyPI (or your internal index):

pip install r9cam-models

Import models in your code:

from r9cam_models.camera import CameraMode, CameraStatusView
from r9cam_models.device_seam import PairingPollResponse, RelayCommandEnvelope
from r9cam_models.images import ImageMetadata
from r9cam_models.stream import StreamView, StreamMode

From the repo root, update the workspace lock file after contract changes with:

uv lock --upgrade r9cam-models

Public API

The supported public API is intentionally small:

  • CameraMode
  • CameraStatusView
  • StreamMode
  • StreamView
  • StreamMetadata
  • ImageCaptureResponse
  • private backend<->plugin device seam models and relay allowlist policy for pairing, relay, local access, and upload acknowledgements
  • image metadata DTOs used inside those responses

This package does not own:

  • frontend/public API schemas generated from backend OpenAPI
  • runtime stream state
  • provider-specific request models such as YouTube stream config
  • Pillow or EXIF helper behavior
  • implementation-specific exceptions
  • plugin runtime wiring such as AppRuntime, RuntimeState, PairingService, or RelayService

Treat anything outside the documented DTOs as private and subject to change.

License

Apache-2.0, so a backend or device that imports these models does not take on the plugin's AGPL-3.0-or-later copyleft.

Metadata

Release files for r9cam-models 0.6.1

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

Source distribution (sdist)

Source distribution for r9cam-models 0.6.1
File Size Uploaded Provenance Actions
r9cam_models-0.6.1.tar.gz 14.2 kB With provenance Details for r9cam_models-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for r9cam-models 0.6.1
File Interpreter ABI Platform Actions
r9cam_models-0.6.1-py3-none-any.whl Python 3 none any Details for r9cam_models-0.6.1-py3-none-any.whl

Total release size: 30.5 kB

Release files / r9cam_models-0.6.1.tar.gz

Download URL r9cam_models-0.6.1.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b2fed5dac5193d0327f8f35bfc8e9bb44ff8527058cf1f4059945455faa95447
BLAKE2b-256 checksum
How to use checksums
59fc3f21126078788bf0bb781a69149725094ea58e2a052c08bb136df01051ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / r9cam_models-0.6.1-py3-none-any.whl

Download URL r9cam_models-0.6.1-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
469ad53eab102b83efaaf297e3b74322e6d1bf9a2bcb77591dad30acf9d79068
BLAKE2b-256 checksum
How to use checksums
aa6ad7c0ff31700cbd3ad4a1b192161379a01eb87af84286f05312a2b3816a01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for r9cam-models 0.6.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for r9cam_models-0.6.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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