Skip to content

Installation

Requirements

  • Python 3.11 or newer. The engine uses frame.f_code.co_qualname, which was introduced in CPython 3.11. Earlier versions do not provide the metadata needed to identify the calling class accurately.
  • No runtime dependencies.

From PyPI

pip install strictaccess

From source

git clone https://github.com/jhoelperaltap/strictaccess.git
cd strictaccess
pip install -e ".[dev]"

The [dev] extra installs pytest, pytest-cov, ruff, mypy, build, and twine — everything needed to run the full quality pipeline:

ruff check .
ruff format --check .
mypy
pytest
python -m build
twine check dist/*

Verifying the install

>>> import strictaccess
>>> print(strictaccess.__version__)
0.1.3
>>> from strictaccess import strict_access_control, private

If the import succeeds, you're done. Continue to the Quickstart.