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-69.tar.gz (105.9 kB view details)

Uploaded Source

Built Distribution

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

axis-69-py3-none-any.whl (101.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for axis-69.tar.gz
Algorithm Hash digest
SHA256 fd99d605594aa110fa219c74a21602ae7cfc30f7881a7d6cfb3047f8b143a201
MD5 3647655e4ae5557eaa2cfcd915653fb3
BLAKE2b-256 cdfbf00eaf0e613219568c066ef434d7e5fdc44be540e9b454dc2c2cdab983ce

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for axis-69-py3-none-any.whl
Algorithm Hash digest
SHA256 733db51aaeea4168616ed482f5d5d309aed3f698ab06d2bd856bc4639ef4fa3f
MD5 1f6829e222627ebaeb67feeabc644ef8
BLAKE2b-256 8b2d34e4e788af9ed84347387b657a52ccccaf7f113ac73769f718c83a8ffdc6

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