lightfall-utils 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightfall_utils/__init__.py +3 -0
- lightfall_utils/_version.py +24 -0
- lightfall_utils/ca/__init__.py +9 -0
- lightfall_utils/ca/context.py +100 -0
- lightfall_utils/ca/pv.py +307 -0
- lightfall_utils/caproto_shutdown.py +89 -0
- lightfall_utils/config/__init__.py +12 -0
- lightfall_utils/config/layers.py +317 -0
- lightfall_utils/config/manager.py +246 -0
- lightfall_utils/log_buffer.py +231 -0
- lightfall_utils/logging.py +235 -0
- lightfall_utils/py.typed +0 -0
- lightfall_utils/qt_affinity.py +92 -0
- lightfall_utils/theming/__init__.py +30 -0
- lightfall_utils/theming/builtin.py +737 -0
- lightfall_utils/theming/manager.py +1030 -0
- lightfall_utils/theming/provider.py +102 -0
- lightfall_utils/theming/registry.py +195 -0
- lightfall_utils/threads.py +1071 -0
- lightfall_utils-0.1.0.dist-info/METADATA +54 -0
- lightfall_utils-0.1.0.dist-info/RECORD +24 -0
- lightfall_utils-0.1.0.dist-info/WHEEL +4 -0
- lightfall_utils-0.1.0.dist-info/licenses/LEGAL.md +13 -0
- lightfall_utils-0.1.0.dist-info/licenses/LICENSE.md +33 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: lightfall-utils
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Shared Qt/EPICS infrastructure for ALS control applications: managed threading, loguru logging, semantic theming, layered config, and a caproto/Qt bridge
|
|
5
|
+
Author: ALS Controls Team
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
|
+
License-File: LEGAL.md
|
|
8
|
+
License-File: LICENSE.md
|
|
9
|
+
Requires-Python: >=3.11
|
|
10
|
+
Requires-Dist: loguru>=0.7
|
|
11
|
+
Requires-Dist: pydantic>=2.0
|
|
12
|
+
Requires-Dist: pyside6>=6.6
|
|
13
|
+
Requires-Dist: pyyaml>=6.0
|
|
14
|
+
Provides-Extra: ca
|
|
15
|
+
Requires-Dist: caproto>=1.1; extra == 'ca'
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: caproto>=1.1; extra == 'dev'
|
|
18
|
+
Requires-Dist: pyright>=1.1; extra == 'dev'
|
|
19
|
+
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
20
|
+
Requires-Dist: pytest-qt>=4.2; extra == 'dev'
|
|
21
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
22
|
+
Requires-Dist: ruff>=0.1; extra == 'dev'
|
|
23
|
+
Provides-Extra: docs
|
|
24
|
+
Requires-Dist: myst-parser>=2.0; extra == 'docs'
|
|
25
|
+
Requires-Dist: sphinx-immaterial>=0.12; extra == 'docs'
|
|
26
|
+
Requires-Dist: sphinx<9.0,>=7.0; extra == 'docs'
|
|
27
|
+
Provides-Extra: multihomed
|
|
28
|
+
Requires-Dist: netifaces>=0.11; (sys_platform != 'darwin') and extra == 'multihomed'
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# lightfall-utils
|
|
32
|
+
|
|
33
|
+
Shared Qt/EPICS infrastructure for ALS control applications (Lightfall, CAtfish).
|
|
34
|
+
|
|
35
|
+
Extracted from [Lightfall](https://github.com/als-controls/lightfall). Modules:
|
|
36
|
+
|
|
37
|
+
- `lightfall_utils.threads` — managed Qt thread pool, `QThreadFuture`, main-thread marshalling
|
|
38
|
+
- `lightfall_utils.logging` / `log_buffer` — loguru configuration, timing, in-process log ring buffer
|
|
39
|
+
- `lightfall_utils.qt_affinity` — GUI-thread assertion helpers (`gui_thread_only`)
|
|
40
|
+
- `lightfall_utils.config` — priority-layered YAML config with pydantic validation
|
|
41
|
+
- `lightfall_utils.theming` — semantic design tokens, theme registry/manager, QSS generation
|
|
42
|
+
- `lightfall_utils.ca` — caproto → Qt signal bridge (`SharedContext`, `PV`); requires the `ca` extra
|
|
43
|
+
- `lightfall_utils.caproto_shutdown` — drains caproto's user-callback thread pools cleanly at application shutdown
|
|
44
|
+
|
|
45
|
+
Install: `pip install lightfall-utils[ca]`. Add the `multihomed` extra alongside `ca` for caproto multi-homed interface enumeration (`pip install lightfall-utils[ca,multihomed]`).
|
|
46
|
+
|
|
47
|
+
Development:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
python -m venv .venv
|
|
51
|
+
.venv\Scripts\activate # Windows (source .venv/bin/activate on Unix)
|
|
52
|
+
pip install -e ".[dev]"
|
|
53
|
+
pytest
|
|
54
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
lightfall_utils/__init__.py,sha256=MPAcU5Fs63ksOn_izpvf4RqlRVCsX4aHcqwdxovhGn0,131
|
|
2
|
+
lightfall_utils/_version.py,sha256=n_5vdJsPNu7wZ57LGuRL585uvll-hiuvZUBWzdG0RQU,520
|
|
3
|
+
lightfall_utils/caproto_shutdown.py,sha256=4kBXF3O_sM-IuTtBVQPLaKuZMBelKHB4Is1HEGCfM8k,3702
|
|
4
|
+
lightfall_utils/log_buffer.py,sha256=8w_CSOTjFFTIw3JIsuHf9Y8scjLy2u2piMhfxHJrsL8,7272
|
|
5
|
+
lightfall_utils/logging.py,sha256=DM2BRHD2TPwt1a81JPk56lcJxFl-taJjGOLia-CpnvA,7420
|
|
6
|
+
lightfall_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
lightfall_utils/qt_affinity.py,sha256=PvL8NIxO0QaHybRIiBNt1_qI0qTgKkJSgzPA9XQZRlY,2899
|
|
8
|
+
lightfall_utils/threads.py,sha256=Wlqf-1hmsI17aRnb_ai5IZctnsOJ6KK2EbIwzG64wM4,38777
|
|
9
|
+
lightfall_utils/ca/__init__.py,sha256=JSS6GXqJ40glV5TeuTzku5sBxNp7dd2dhe2M4LhUAys,249
|
|
10
|
+
lightfall_utils/ca/context.py,sha256=aHu48LlxhRnEOWaWHA7rg9HCMM-wq0yAhQfHrBy6COE,2588
|
|
11
|
+
lightfall_utils/ca/pv.py,sha256=iyCFRWbUQZ4Gv5n0FY4N53ltG7aRgBSzP3UnGHw2vX8,9658
|
|
12
|
+
lightfall_utils/config/__init__.py,sha256=6_2qyeoLALWBtyVcRCZqY2Ciaw1UkhR_7vUIUbrDcx0,344
|
|
13
|
+
lightfall_utils/config/layers.py,sha256=Uw2ftByLF1_eoYe5_r0ve28N3FtdoOTS5ZYTMpY0hJY,9581
|
|
14
|
+
lightfall_utils/config/manager.py,sha256=joGf4O4bASyMBitFkVu5X7Gc6SrWhsKFZTNecpKdC6c,8548
|
|
15
|
+
lightfall_utils/theming/__init__.py,sha256=JcHKiZd0yl3uuJmbieXqKH_9dT_eMxWYLKdZqQW5b14,652
|
|
16
|
+
lightfall_utils/theming/builtin.py,sha256=vZnI16G-8xmZSfP8ZFVG5WGK0bmfx05oZnn5Epl7kv8,20397
|
|
17
|
+
lightfall_utils/theming/manager.py,sha256=HJhYDe4YZEiO31kJXdIel5tuFQ2VvSqmWfSweF0pSUs,32741
|
|
18
|
+
lightfall_utils/theming/provider.py,sha256=_amxl9pYIB86yWZZ6WK5uNIOwei8rK5pSQ5cuhGm5rE,3159
|
|
19
|
+
lightfall_utils/theming/registry.py,sha256=pxXkIfRrs8MTzEvenDaM7J24gOsoZcXxRKyVoIviVdU,5533
|
|
20
|
+
lightfall_utils-0.1.0.dist-info/METADATA,sha256=3QHALmG6u8DDF44N5C2lCKtpXKGMCKvZw78PgR4m9Uo,2342
|
|
21
|
+
lightfall_utils-0.1.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
22
|
+
lightfall_utils-0.1.0.dist-info/licenses/LEGAL.md,sha256=LK9Pjzp8wh-ixWbpcQ6bIguH2_JX4PFrnkfrHPrNsYI,829
|
|
23
|
+
lightfall_utils-0.1.0.dist-info/licenses/LICENSE.md,sha256=fSVwKYgkELrLOTFhK4vcRuy7to9NqN4uo-yqQujwnkk,2399
|
|
24
|
+
lightfall_utils-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Lightfall Copyright (c) 2026,
|
|
2
|
+
The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
|
|
3
|
+
|
|
4
|
+
If you have questions about your rights to use or distribute this software,
|
|
5
|
+
please contact Berkeley Lab's Intellectual Property Office at
|
|
6
|
+
IPO@lbl.gov.
|
|
7
|
+
|
|
8
|
+
NOTICE. This Software was developed under funding from the U.S. Department
|
|
9
|
+
of Energy and the U.S. Government consequently retains certain rights. As
|
|
10
|
+
such, the U.S. Government has been granted for itself and others acting on
|
|
11
|
+
its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
|
|
12
|
+
Software to reproduce, distribute copies to the public, prepare derivative
|
|
13
|
+
works, and perform publicly and display publicly, and to permit others to do so.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Lightfall Copyright (c) 2026,
|
|
2
|
+
The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
(1) Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
(2) Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
(3) Neither the name of the University of California, Lawrence Berkeley
|
|
15
|
+
National Laboratory, U.S. Dept. of Energy nor the names of its contributors
|
|
16
|
+
may be used to endorse or promote products derived from this software
|
|
17
|
+
without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
21
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
23
|
+
|
|
24
|
+
You are under no obligation whatsoever to provide any bug fixes, patches,
|
|
25
|
+
or upgrades to the features, functionality or performance of the source
|
|
26
|
+
code ("Enhancements") to anyone; however, if you choose to make your
|
|
27
|
+
Enhancements available either publicly, or directly to Lawrence Berkeley
|
|
28
|
+
National Laboratory, without imposing a separate written license agreement
|
|
29
|
+
for such Enhancements, then you hereby grant the following license: a
|
|
30
|
+
non-exclusive, royalty-free perpetual license to install, use, modify,
|
|
31
|
+
prepare derivative works, incorporate into other computer software,
|
|
32
|
+
distribute, and sublicense such enhancements or derivative works thereof,
|
|
33
|
+
in binary and source code form.
|