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:
CameraModeCameraStatusViewStreamModeStreamViewStreamMetadataImageCaptureResponse- 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, orRelayService
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| r9cam_models-0.6.0.tar.gz | 13.7 kB | With provenance | Details for r9cam_models-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| r9cam_models-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for r9cam_models-0.6.0-py3-none-any.whl |
Total release size: 29.6 kB
Release files / r9cam_models-0.6.0.tar.gz
| Download URL | r9cam_models-0.6.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
331d7cdeacd0cbaec36ff50b5041c8e14c915ca455d5d1d9c19df23b2a02a422
|
|
BLAKE2b-256 checksum How to use checksums |
ff075d65f56679dfec3f0f844b7cec4320ea47148457fd20f55e7010428741de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 13, 2026.
Transparency logRelease files / r9cam_models-0.6.0-py3-none-any.whl
| Download URL | r9cam_models-0.6.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3866c8a5f233eb3e60a90f621eb1db9e424edfee1ac994ab7dda346909ca1b3d
|
|
BLAKE2b-256 checksum How to use checksums |
971a1c820155b000703f5243ef85a9ea82163c6a7f766fea4cf83c767c712d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 13, 2026.
Transparency logSecurity for r9cam-models 0.6.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for r9cam_models-0.6.0.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 13, 2026.
Transparency logA 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.