/theta

Extensions for multithreaded Python applications.

Primary LanguagePython

𝜗

  • EvictingQueue - queue with evicting, non-blocking puts, blocking gets with timeouts, and iteration semantics
  • StoppableThread - thread with cancellation semantics
  • Store - callback executor with thread-safe writers

Read the docs for examples and the API reference.

Install

pip install theta-alkasm

Development

In a virtual environment:

$ poetry install
$ poetry check
$ poetry run pytest
$ poetry run black theta
$ poetry run mypy theta