Skip to main content

A Python library for communicating with devices from Axis Communications

Project description

axis

Python project to set up a connection towards Axis Communications devices and to subscribe to specific events on the metadatastream.

Development setup

uv is required for development setup:

uv python install 3.14
uv sync --python 3.14 --all-extras

Or run the bootstrap script, which installs uv if needed and provisions Python 3.14 automatically:

./setup.sh

Dependencies are locked via uv.lock. Regenerate lock data when dependency inputs change:

uv lock

Run checks with uv:

uv run ruff check .
uv run ruff format --check .
uv run mypy axis
uv run pytest

Initial ty support is configured as an opt-in check and does not replace mypy:

uvx ty check

Initialization architecture

Vapix initialization is phase-based and driven by handler metadata:

  • API_DISCOVERY: handlers initialized after API discovery.
  • PARAM_CGI_FALLBACK: handlers that may initialize from parameter support when not listed in discovery.
  • APPLICATION: handlers initialized after applications are loaded.

Handlers declare phase membership through handler_groups and may customize phase eligibility through should_initialize_in_group.

Example fallback policy:

  • LightHandler participates in both API_DISCOVERY and PARAM_CGI_FALLBACK.
  • In PARAM_CGI_FALLBACK, it initializes only when not listed in API discovery and listed in parameters.

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

axis-70.tar.gz (108.3 kB view details)

Uploaded Source

Built Distribution

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

axis-70-py3-none-any.whl (102.0 kB view details)

Uploaded Python 3

File details

Details for the file axis-70.tar.gz.

File metadata

  • Download URL: axis-70.tar.gz
  • Upload date:
  • Size: 108.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for axis-70.tar.gz
Algorithm Hash digest
SHA256 a50b4a0729c944ccd40b0311363722db7766f28739d6041277653ae2d369ac47
MD5 86f3262fe9a1ca85aa9f7fa9d44eabd1
BLAKE2b-256 ea67d9e9ed8972aacf072fc03c1261ebe4c835f81abc9103f2ac1776a0e77cbe

See more details on using hashes here.

File details

Details for the file axis-70-py3-none-any.whl.

File metadata

  • Download URL: axis-70-py3-none-any.whl
  • Upload date:
  • Size: 102.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for axis-70-py3-none-any.whl
Algorithm Hash digest
SHA256 1be6b014d72b7af1b168255195c9c3cc9e417bd738965bf2e42b4ff91ecda359
MD5 4656454d0721544c302cd33af94bacc8
BLAKE2b-256 187dbc059373e0f8dd1b3e541dcc080655145a925b487bb4bb52ad9808c725a7

See more details on using hashes here.

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