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-71.tar.gz (109.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-71-py3-none-any.whl (102.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for axis-71.tar.gz
Algorithm Hash digest
SHA256 d526ba02a575dc40f473dcfcd70ad96ea7393bf7284c6818ff1f8234153d91c6
MD5 dc20b46a0418855903072d7485e48e20
BLAKE2b-256 90a4301b88cb478ab6b317932faf14c439e4d5ec2f87bdf33154374aa56a2a13

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for axis-71-py3-none-any.whl
Algorithm Hash digest
SHA256 5e26cc3d7e1e7c2f01f79107682d93aa8fecda408d558b530caf5125fbe5fe34
MD5 89a77b7b9c4715e29b1036d2526b1b24
BLAKE2b-256 86efc96405280b247ce6458de8828e1cb53e2c2f7134066fcff3b51405ead800

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