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

Uploaded Source

Built Distribution

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

axis-68-py3-none-any.whl (98.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for axis-68.tar.gz
Algorithm Hash digest
SHA256 b08efb739f3a2c9f09c885ed731740b5c034972aec0c16f9172abeac6d696463
MD5 0bde6027c9b2073bd0a1bdf04ee94221
BLAKE2b-256 93b346e95f2a20e7902d46464b0bf21770592f7e92dfc70431133c4dd95b9d65

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for axis-68-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f7753b66ed1c1148f2f59e9468259a81e2acf553b6cceda910dc91819d853e
MD5 4df3d4e8ef4b7970ede057f71b016101
BLAKE2b-256 490284b7e8ba55984898ef08be1de665e99faf4a2268b820924d9b69153d07a3

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