slactwin package¶
slactwin package
- copyright:
Copyright (c) 2026 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
Subpackages¶
- slactwin.global_resources package
- slactwin.pkcli package
- slactwin.sim_api package
- slactwin.sim_data package
- slactwin.template package
Submodules¶
slactwin.config module¶
Common configuration
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
- slactwin.config.cfg()[source]¶
PKDict of common configuration.
- db_api
api_uri, auth_secret, tcp_ip, and tcp_port values. PKDict is compatible with pykern.api.server.start, global_resources.Allocator, and db_api_client.
- Returns:
configuration values. (Make a copy before modifying.)
- Return type:
PKDict
slactwin.const module¶
Constants
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
slactwin.db module¶
Wraps SQLAlchemy
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
slactwin.db_api module¶
slactwin.db_api_client module¶
Client to access database over pykern.api
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
slactwin.db_query module¶
Database queries
- api
run_date min max search start_dt and stop_dt search run value names with min and max list of return value names achirve_path return cols with order by date time
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
slactwin.modules module¶
Initialize modules once, in prescribed order
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
slactwin.quest module¶
Context for a web or command line operation (think: request object)
A quest is an instance of API and contains several attributes (Attr):
- db
an instance of slactwin.db providing calls to the database
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license:
- slactwin.quest.attr_classes()[source]¶
Classes instantiated automatically on every start
- Returns:
class objects
- Return type:
- slactwin.quest.import_and_start()[source]¶
Import slactwin.modules, initialize them, and call start
- Returns:
instantiated coroutine
- Return type:
asyncio.task
slactwin.run_importer module¶
slactwin.simrun_util module¶
slactwin.slactwin_console module¶
Front-end command line for slactwin.
See pykern.pkcli for how this module is used.
- copyright:
Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved.
- license: