Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

vision-lib (Python)

Common components for building Starwit Awareness Engine (SAE) stages in Python. See the repository overview for the bigger picture.

Installation

The package is not published to PyPI; install it directly from the Git repository, pinned to a release tag.

poetry add git+https://github.com/starwit/[email protected]#subdirectory=python
# or
pip install "git+https://github.com/starwit/[email protected]#subdirectory=python"

What's available

Development

Running tests

Activate the environment and run pytest. Tests spin up a Valkey instance via testcontainers, so a working Docker installation is required.

If you see weird docker errors, it is probably because you are running rootless Docker (see this issue). Make sure DOCKER_HOST points at the correct socket:

export DOCKER_HOST=unix:///run/user/$(id -u)/docker.sock

Changelog

1.0.1

  • Restrict pyturbojpeg to 1.x (2.x requires libjpeg-turbo 3.x, which is not available on Ubuntu 24.04 LTS)

1.0.0

  • Migrate from redis-py to valkey-py
    • Use valkey-py>=6.1.1
    • Breaks compatibility: imports and constructor calls for consumer and publisher must be changed!
  • Provide cleaner imports (from visionlib.pipeline import ValkeyConsumer)