Skip to main content

lightfall-settings

Pure-Python model for Lightfall's scoped settings, shared by the Lightfall client and the logbook server so both compute identical answers.

  • Scopes: facility → beamline:<bl> → branch:<branch> → user:<sub>, ordered broad to specific in a ScopeChain.
  • Scope roles from Keycloak group paths (/beamlines/<bl>/<role>, /beamlines/<bl>/branch/<branch>/<role>, /beamlines/_all/<role>, /BCG_staff).
  • SettingSpec: which scopes a key may be set at, override or union policy, write role, lockability. Specs serialize to JSON for server-side key proposals and approvals.
  • Resolver: effective value of a key across a chain of scope snapshots, honouring locks.
  • Write rules: the server-side checks for set / delete / lock / unlock / publish.

No Qt, no HTTP. Depends only on pydantic.

Install

pip install lightfall-settings

Development

../lightfall/.venv/Scripts/python -m pytest
../lightfall/.venv/Scripts/python -m ruff check .

License

BSD-3-Clause; see LICENSE.md and LEGAL.md.

Metadata

Release files for lightfall-settings 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lightfall-settings 0.1.4
File Size Uploaded Provenance Actions
lightfall_settings-0.1.4.tar.gz 19.2 kB With provenance Details for lightfall_settings-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lightfall-settings 0.1.4
File Interpreter ABI Platform Actions
lightfall_settings-0.1.4-py3-none-any.whl Python 3 none any Details for lightfall_settings-0.1.4-py3-none-any.whl

Total release size: 34.5 kB

Release files / lightfall_settings-0.1.4.tar.gz

Download URL lightfall_settings-0.1.4.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ddf1fcc6f556280b1809a6ce4efc452c27e4ed0bd654323a50f2c761c70daffa
BLAKE2b-256 checksum
How to use checksums
7c79a075851181ba5b9cd3eb68110d372b9dbe694e5621ed1e2adbb4a6a07154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / lightfall_settings-0.1.4-py3-none-any.whl

Download URL lightfall_settings-0.1.4-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7226f41c3201235999598dc7e8d9b7256bd5e9a182925c26397980c2184d91e
BLAKE2b-256 checksum
How to use checksums
2d756f6f16273df1175372abd7b1f0338147555ca09cbe0d15312dc16e1ed998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for lightfall-settings 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lightfall_settings-0.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page