Skip to main content
LangState is not currently distributed as a usable public package. Work from the pinned source tree.
Do not run pip install langstate. The PyPI project named langstate is unrelated to this repository.

Prerequisites

  • Git
  • Python 3.10 or newer, within the source package’s declared Python 3 range
  • Poetry

Checkout and install

--no-root is intentional. At the pinned commit, package metadata points to a public package layout that is not present, so editable/root installation is not release-ready. Poetry can still create the environment and install the development dependencies used by the source tree.

Verify the baseline

From packages/langstate:
Expected result at df40bc49bc8e3a51b2bb695b30ff93ef81b2cc4b:
Use python -m pytest, not a bare pytest executable. The module form places the current source directory on Python’s import path, which is required for the current core.* layout.

Import model

Examples in these docs run from packages/langstate and import modules such as:
These are source-checkout imports, not a stable installed-package API. See Implementation status before integrating LangState into another project.