arrakis-backend-frames 0.1.0__tar.gz
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.
- arrakis_backend_frames-0.1.0/.gitignore +13 -0
- arrakis_backend_frames-0.1.0/.gitlab-ci.yml +97 -0
- arrakis_backend_frames-0.1.0/CLAUDE.md +78 -0
- arrakis_backend_frames-0.1.0/Dockerfile +58 -0
- arrakis_backend_frames-0.1.0/LICENSE +195 -0
- arrakis_backend_frames-0.1.0/Makefile +29 -0
- arrakis_backend_frames-0.1.0/PKG-INFO +95 -0
- arrakis_backend_frames-0.1.0/README.md +26 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/__init__.py +13 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/_version.py +24 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/backend.py +185 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/cache_adaptor.py +82 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/frame_io.py +418 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/helpers.py +640 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/local_metadata.py +227 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/memory_cache.py +73 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/metadata.py +451 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/planner.py +460 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/signal_units.py +42 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/sock_io.py +79 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/__init__.py +0 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/create_samples.py +274 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/dummy_cache.py +82 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/dummy_http_client.py +79 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/dummy_net_server.py +106 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/integration_samples.py +146 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/tempdir.py +36 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/test_cache_adaptor.py +99 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/test_frame_io.py +56 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/test_helpers.py +487 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/test_local_metadata_integration.py +159 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/test_metadata.py +464 -0
- arrakis_backend_frames-0.1.0/arrakis_backend_frames/tests/test_planner.py +1457 -0
- arrakis_backend_frames-0.1.0/docs/gen_ref_nav.py +49 -0
- arrakis_backend_frames-0.1.0/docs/index.md +1 -0
- arrakis_backend_frames-0.1.0/docs/usage.md +3 -0
- arrakis_backend_frames-0.1.0/mkdocs.yml +56 -0
- arrakis_backend_frames-0.1.0/plan.md +53 -0
- arrakis_backend_frames-0.1.0/pyproject.toml +172 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
|
|
2
|
+
include:
|
|
3
|
+
# -- python -----------------
|
|
4
|
+
- component: git.ligo.org/computing/gitlab/components/python/sdist@1
|
|
5
|
+
- component: git.ligo.org/computing/gitlab/components/python/wheel@1
|
|
6
|
+
- component: git.ligo.org/computing/gitlab/components/python/code-quality@1
|
|
7
|
+
inputs:
|
|
8
|
+
analyzer: "ruff"
|
|
9
|
+
requirements: "-r requirements-lint.txt"
|
|
10
|
+
- component: git.ligo.org/computing/gitlab/components/python/dependency-scanning@1
|
|
11
|
+
- component: git.ligo.org/computing/gitlab/components/python/type-checking@1
|
|
12
|
+
- component: git.ligo.org/computing/gitlab/components/python/test@1
|
|
13
|
+
inputs:
|
|
14
|
+
job_name: "python_test_latest"
|
|
15
|
+
install_extra: test
|
|
16
|
+
python_versions:
|
|
17
|
+
- "3.11"
|
|
18
|
+
- "3.12"
|
|
19
|
+
- "3.13"
|
|
20
|
+
- component: git.ligo.org/computing/gitlab/components/python/test@1
|
|
21
|
+
inputs:
|
|
22
|
+
install_extra: test
|
|
23
|
+
python_versions:
|
|
24
|
+
- "3.11"
|
|
25
|
+
- "3.12"
|
|
26
|
+
- "3.13"
|
|
27
|
+
# -- docker -----------------
|
|
28
|
+
- component: git.ligo.org/computing/gitlab/components/docker/build@1
|
|
29
|
+
inputs:
|
|
30
|
+
image_tag: $CI_COMMIT_SHA
|
|
31
|
+
- component: git.ligo.org/computing/gitlab/components/docker/push@1
|
|
32
|
+
inputs:
|
|
33
|
+
pull_image_tag: $CI_COMMIT_SHA
|
|
34
|
+
push_image_tag: $CI_COMMIT_REF_NAME
|
|
35
|
+
push_when: "all"
|
|
36
|
+
tag_latest: false
|
|
37
|
+
rules:
|
|
38
|
+
- if: $CI_COMMIT_BRANCH
|
|
39
|
+
- if: $CI_COMMIT_TAG !~ /^(\d+\.)?(\d+\.)?(\*|\d+)$/
|
|
40
|
+
- component: git.ligo.org/computing/gitlab/components/docker/push@1
|
|
41
|
+
inputs:
|
|
42
|
+
pull_image_tag: $CI_COMMIT_SHA
|
|
43
|
+
push_image_tag: $CI_COMMIT_TAG
|
|
44
|
+
push_when: "tags"
|
|
45
|
+
tag_latest: true
|
|
46
|
+
rules:
|
|
47
|
+
# tag latest only on new versions
|
|
48
|
+
- if: $CI_COMMIT_TAG =~ /^(\d+\.)?(\d+\.)?(\*|\d+)$/
|
|
49
|
+
# -- docs -------------------
|
|
50
|
+
- component: git.ligo.org/computing/gitlab/components/mkdocs/build@1
|
|
51
|
+
inputs:
|
|
52
|
+
requirements: "-r requirements-docs.txt"
|
|
53
|
+
- component: git.ligo.org/computing/gitlab/components/mkdocs/pages@1
|
|
54
|
+
inputs:
|
|
55
|
+
pages_when: "default"
|
|
56
|
+
|
|
57
|
+
# -- customisations
|
|
58
|
+
|
|
59
|
+
# install latest arrakis client and server from git (main)
|
|
60
|
+
python_test_latest:
|
|
61
|
+
before_script:
|
|
62
|
+
- pip install git+https://git.ligo.org/ngdd/arrakis-python.git
|
|
63
|
+
- pip install git+https://git.ligo.org/ngdd/arrakis-server.git
|
|
64
|
+
|
|
65
|
+
# have Docker build depend on wheel
|
|
66
|
+
build:
|
|
67
|
+
needs:
|
|
68
|
+
- wheel
|
|
69
|
+
|
|
70
|
+
docker_push_gitlab:
|
|
71
|
+
rules:
|
|
72
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
73
|
+
when: never
|
|
74
|
+
- when: always
|
|
75
|
+
|
|
76
|
+
ruff:
|
|
77
|
+
needs:
|
|
78
|
+
- requirements
|
|
79
|
+
|
|
80
|
+
mkdocs:
|
|
81
|
+
needs:
|
|
82
|
+
- requirements
|
|
83
|
+
|
|
84
|
+
# -- requirements
|
|
85
|
+
requirements:
|
|
86
|
+
stage: build
|
|
87
|
+
image: python:3.13
|
|
88
|
+
script:
|
|
89
|
+
- python -m pip install pipx
|
|
90
|
+
- pipx ensurepath
|
|
91
|
+
- source ~/.bashrc
|
|
92
|
+
- pipx install hatch
|
|
93
|
+
- hatch dep show requirements --feature docs > requirements-docs.txt
|
|
94
|
+
- hatch dep show requirements --feature lint > requirements-lint.txt
|
|
95
|
+
artifacts:
|
|
96
|
+
paths:
|
|
97
|
+
- requirements-*.txt
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# arrakis-backend-frames
|
|
2
|
+
This is the frame backend for the arrakis server. It is a component of the LIGO NGDD (next generation data delivery)
|
|
3
|
+
project. The point of this server is to be able to serve back historical scientific data that is stored in a
|
|
4
|
+
multi-year archive of gwf files.
|
|
5
|
+
|
|
6
|
+
The frame backend acts is a modular component of the arrakis-server package. During development the arrkis-server code
|
|
7
|
+
is often stored in a neighboring directory (../arrakis-server). Both the server and the backend use a common arrakis-python
|
|
8
|
+
library (again often stored in ../arrakis-python).
|
|
9
|
+
|
|
10
|
+
The frame files (gwf) contain a large set of "channels". The channels have a name, data type, data rate, and associated time series data.
|
|
11
|
+
|
|
12
|
+
The frames have a frame type, typically denoted in the file name.
|
|
13
|
+
* The file name format is <frame type>-<gps start>-<duration>.gwf
|
|
14
|
+
* So L-L1_R-1000000000-64.gwf is a L-L1_R frame from gps 1000000000 that holds 64s of data
|
|
15
|
+
* In general the list of channels in a particular frame type does not dramatically change from frame to frame, although
|
|
16
|
+
the list of channels does change.
|
|
17
|
+
|
|
18
|
+
The system maps channel names to scopes, rooted at interferometers. A set of sample channels might be:
|
|
19
|
+
1. X1:SUS-ABC_INP
|
|
20
|
+
2. X1:SEI-DEF_OUT
|
|
21
|
+
3. X1:FEC-CPU_TIME_MAX
|
|
22
|
+
These would all be part of the 'X1' interferometer, but in three different subsystems, 'SUS', 'SEI', 'FEC'.
|
|
23
|
+
A scope mapping would be created that tells that the X1 interferometer has 'SUS', 'SEI', 'FEC' subsystems. This gives
|
|
24
|
+
the server a high level way to say which channels it might serve.
|
|
25
|
+
|
|
26
|
+
## Details
|
|
27
|
+
|
|
28
|
+
* Implementation language: Python
|
|
29
|
+
* Frameworks:
|
|
30
|
+
- Apache arrow flight - defines the IPC/request/response mechanisms
|
|
31
|
+
- Apache arrow - defines the core data structures
|
|
32
|
+
- gwframes - gwf frame file library
|
|
33
|
+
- numpy - use by gwframes and the arrow code
|
|
34
|
+
|
|
35
|
+
## High level architecture
|
|
36
|
+
|
|
37
|
+
This server typically does not run alone. It needs two other components:
|
|
38
|
+
1. A metadata server - this tracks channel existance and maps channels to frame types over time
|
|
39
|
+
2. A 'diskcache' server that tracks where and when frames exist
|
|
40
|
+
|
|
41
|
+
Our metadata server does the interfacing with the diskcache server so that we never directly talk to it.
|
|
42
|
+
|
|
43
|
+
These are needed to work on a large deployment. It keeps this system from needing to know where all the frames are and
|
|
44
|
+
from needing to directly index all the frames.
|
|
45
|
+
|
|
46
|
+
## Software components
|
|
47
|
+
|
|
48
|
+
arrakis_backend_frames
|
|
49
|
+
* backend.py - the main backend server definition
|
|
50
|
+
* cache_adaptor.py - a generic wrapper of a key/value cache (often memcached)
|
|
51
|
+
* frame_io.py - the io routines that call gwframe functions
|
|
52
|
+
* helpers.py - misc helpers
|
|
53
|
+
* memory_cache.py - a interface to a caching layer (typically memcached)
|
|
54
|
+
* metadata.py - our interface to the metadata server
|
|
55
|
+
* planner.py - the query planner. This is in charge of taking channel and availability information and creating a read plan, what frames to open, which channels to read from, ... in order to satisfy user requests.
|
|
56
|
+
* signal_units.py - encodes auxiliary information that can be attached to channels.
|
|
57
|
+
* sock_io.py - a wrapper around socket io
|
|
58
|
+
* tests - test code
|
|
59
|
+
* integration_samples - contains code used to create a directory of test frames
|
|
60
|
+
|
|
61
|
+
## Workflow
|
|
62
|
+
|
|
63
|
+
* Work on features in a branch.
|
|
64
|
+
* When done tests must pass
|
|
65
|
+
* Formatting is done automatically by an edit hook
|
|
66
|
+
* After a feature is approved it should be commited and merged into the main branch
|
|
67
|
+
|
|
68
|
+
## Technical notes
|
|
69
|
+
|
|
70
|
+
* When returning sets of tuples, arrays, dictionaries that contain multiple fields we should instead create DataClasses or named tuples so that we not only have the data but we have symantic information about what it means.
|
|
71
|
+
* Prefer to use context managers when dealing with things we need to clean up.
|
|
72
|
+
|
|
73
|
+
## Interaction instructions
|
|
74
|
+
|
|
75
|
+
* When presenting the user with questions number each question. This makes it easier to tie the reply to the question. Do not re-use numbers in a session.
|
|
76
|
+
|
|
77
|
+
## Supplementary instruction files
|
|
78
|
+
* consult plan.md for our current plan and progress.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# build stage: build wheel + extract dependencies
|
|
2
|
+
FROM python:3.13 as build
|
|
3
|
+
|
|
4
|
+
ENV PIP_DEFAULT_TIMEOUT=100
|
|
5
|
+
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
6
|
+
ENV PIP_NO_CACHE_DIR=1
|
|
7
|
+
|
|
8
|
+
WORKDIR /app
|
|
9
|
+
|
|
10
|
+
COPY . ./
|
|
11
|
+
|
|
12
|
+
# install git for versioning
|
|
13
|
+
RUN apt-get update && \
|
|
14
|
+
apt-get install -y --no-install-recommends \
|
|
15
|
+
git && \
|
|
16
|
+
rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
|
|
17
|
+
|
|
18
|
+
RUN pip install --upgrade pip
|
|
19
|
+
RUN pip install hatch
|
|
20
|
+
|
|
21
|
+
RUN hatch build --clean
|
|
22
|
+
|
|
23
|
+
# install stage: install package + dependencies
|
|
24
|
+
FROM python:3.13 as install
|
|
25
|
+
|
|
26
|
+
ENV PIP_DEFAULT_TIMEOUT=100
|
|
27
|
+
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
28
|
+
ENV PIP_NO_CACHE_DIR=1
|
|
29
|
+
|
|
30
|
+
WORKDIR /app
|
|
31
|
+
|
|
32
|
+
COPY --from=build /app/dist/*.whl /app
|
|
33
|
+
|
|
34
|
+
# create virtualenv
|
|
35
|
+
RUN python -m venv /opt/venv
|
|
36
|
+
|
|
37
|
+
# ensure virtualenv python is preferred
|
|
38
|
+
ENV PATH="/opt/venv/bin:$PATH"
|
|
39
|
+
|
|
40
|
+
run pip install --upgrade pip
|
|
41
|
+
RUN pip install *.whl
|
|
42
|
+
|
|
43
|
+
# final stage: installed app
|
|
44
|
+
FROM python:3.13-slim as app
|
|
45
|
+
|
|
46
|
+
COPY --from=install /opt/venv /opt/venv
|
|
47
|
+
|
|
48
|
+
# create app user
|
|
49
|
+
RUN groupadd --gid 1000 arrakis && \
|
|
50
|
+
useradd --uid 1000 --gid 1000 -m arrakis
|
|
51
|
+
|
|
52
|
+
USER arrakis
|
|
53
|
+
|
|
54
|
+
# ensure virtualenv python is preferred
|
|
55
|
+
ENV PATH="/opt/venv/bin:$PATH"
|
|
56
|
+
|
|
57
|
+
ENTRYPOINT ["arrakis-server"]
|
|
58
|
+
CMD ["frame"]
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
Copyright (c) 2022, California Institute of Technology and contributors
|
|
2
|
+
|
|
3
|
+
This program is free software; you can redistribute it and/or
|
|
4
|
+
modify it under the terms of the GNU Lesser General Public
|
|
5
|
+
License as published by the Free Software Foundation; either
|
|
6
|
+
version 3 of the License, or (at your option) any later version.
|
|
7
|
+
|
|
8
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
9
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
10
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
11
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
12
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
13
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
14
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
15
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
16
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
17
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
18
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
19
|
+
|
|
20
|
+
Neither the name of the California Institute of Technology (Caltech),
|
|
21
|
+
Massachusetts Institute of Technology (M.I.T.), nor the names of its
|
|
22
|
+
contributors may be used to endorse or promote products derived from
|
|
23
|
+
this software without specific prior written permission.
|
|
24
|
+
|
|
25
|
+
This software is distributed under the GNU Lesser General Public
|
|
26
|
+
License Version 3. A copy is included below, and can also be obtained
|
|
27
|
+
at http://www.gnu.org/licenses
|
|
28
|
+
|
|
29
|
+
-----------------------------------------------------------------------
|
|
30
|
+
|
|
31
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
32
|
+
Version 3, 29 June 2007
|
|
33
|
+
|
|
34
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
35
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
36
|
+
of this license document, but changing it is not allowed.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
This version of the GNU Lesser General Public License incorporates
|
|
40
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
41
|
+
License, supplemented by the additional permissions listed below.
|
|
42
|
+
|
|
43
|
+
0. Additional Definitions.
|
|
44
|
+
|
|
45
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
46
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
47
|
+
General Public License.
|
|
48
|
+
|
|
49
|
+
"The Library" refers to a covered work governed by this License,
|
|
50
|
+
other than an Application or a Combined Work as defined below.
|
|
51
|
+
|
|
52
|
+
An "Application" is any work that makes use of an interface provided
|
|
53
|
+
by the Library, but which is not otherwise based on the Library.
|
|
54
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
55
|
+
of using an interface provided by the Library.
|
|
56
|
+
|
|
57
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
58
|
+
Application with the Library. The particular version of the Library
|
|
59
|
+
with which the Combined Work was made is also called the "Linked
|
|
60
|
+
Version".
|
|
61
|
+
|
|
62
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
63
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
64
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
65
|
+
based on the Application, and not on the Linked Version.
|
|
66
|
+
|
|
67
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
68
|
+
object code and/or source code for the Application, including any data
|
|
69
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
70
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
71
|
+
|
|
72
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
73
|
+
|
|
74
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
75
|
+
without being bound by section 3 of the GNU GPL.
|
|
76
|
+
|
|
77
|
+
2. Conveying Modified Versions.
|
|
78
|
+
|
|
79
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
80
|
+
facility refers to a function or data to be supplied by an Application
|
|
81
|
+
that uses the facility (other than as an argument passed when the
|
|
82
|
+
facility is invoked), then you may convey a copy of the modified
|
|
83
|
+
version:
|
|
84
|
+
|
|
85
|
+
a) under this License, provided that you make a good faith effort to
|
|
86
|
+
ensure that, in the event an Application does not supply the
|
|
87
|
+
function or data, the facility still operates, and performs
|
|
88
|
+
whatever part of its purpose remains meaningful, or
|
|
89
|
+
|
|
90
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
91
|
+
this License applicable to that copy.
|
|
92
|
+
|
|
93
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
94
|
+
|
|
95
|
+
The object code form of an Application may incorporate material from
|
|
96
|
+
a header file that is part of the Library. You may convey such object
|
|
97
|
+
code under terms of your choice, provided that, if the incorporated
|
|
98
|
+
material is not limited to numerical parameters, data structure
|
|
99
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
100
|
+
(ten or fewer lines in length), you do both of the following:
|
|
101
|
+
|
|
102
|
+
a) Give prominent notice with each copy of the object code that the
|
|
103
|
+
Library is used in it and that the Library and its use are
|
|
104
|
+
covered by this License.
|
|
105
|
+
|
|
106
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
107
|
+
document.
|
|
108
|
+
|
|
109
|
+
4. Combined Works.
|
|
110
|
+
|
|
111
|
+
You may convey a Combined Work under terms of your choice that,
|
|
112
|
+
taken together, effectively do not restrict modification of the
|
|
113
|
+
portions of the Library contained in the Combined Work and reverse
|
|
114
|
+
engineering for debugging such modifications, if you also do each of
|
|
115
|
+
the following:
|
|
116
|
+
|
|
117
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
118
|
+
the Library is used in it and that the Library and its use are
|
|
119
|
+
covered by this License.
|
|
120
|
+
|
|
121
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
122
|
+
document.
|
|
123
|
+
|
|
124
|
+
c) For a Combined Work that displays copyright notices during
|
|
125
|
+
execution, include the copyright notice for the Library among
|
|
126
|
+
these notices, as well as a reference directing the user to the
|
|
127
|
+
copies of the GNU GPL and this license document.
|
|
128
|
+
|
|
129
|
+
d) Do one of the following:
|
|
130
|
+
|
|
131
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
132
|
+
License, and the Corresponding Application Code in a form
|
|
133
|
+
suitable for, and under terms that permit, the user to
|
|
134
|
+
recombine or relink the Application with a modified version of
|
|
135
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
136
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
137
|
+
Corresponding Source.
|
|
138
|
+
|
|
139
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
140
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
141
|
+
a copy of the Library already present on the user's computer
|
|
142
|
+
system, and (b) will operate properly with a modified version
|
|
143
|
+
of the Library that is interface-compatible with the Linked
|
|
144
|
+
Version.
|
|
145
|
+
|
|
146
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
147
|
+
be required to provide such information under section 6 of the
|
|
148
|
+
GNU GPL, and only to the extent that such information is
|
|
149
|
+
necessary to install and execute a modified version of the
|
|
150
|
+
Combined Work produced by recombining or relinking the
|
|
151
|
+
Application with a modified version of the Linked Version. (If
|
|
152
|
+
you use option 4d0, the Installation Information must accompany
|
|
153
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
154
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
155
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
156
|
+
for conveying Corresponding Source.)
|
|
157
|
+
|
|
158
|
+
5. Combined Libraries.
|
|
159
|
+
|
|
160
|
+
You may place library facilities that are a work based on the
|
|
161
|
+
Library side by side in a single library together with other library
|
|
162
|
+
facilities that are not Applications and are not covered by this
|
|
163
|
+
License, and convey such a combined library under terms of your
|
|
164
|
+
choice, if you do both of the following:
|
|
165
|
+
|
|
166
|
+
a) Accompany the combined library with a copy of the same work based
|
|
167
|
+
on the Library, uncombined with any other library facilities,
|
|
168
|
+
conveyed under the terms of this License.
|
|
169
|
+
|
|
170
|
+
b) Give prominent notice with the combined library that part of it
|
|
171
|
+
is a work based on the Library, and explaining where to find the
|
|
172
|
+
accompanying uncombined form of the same work.
|
|
173
|
+
|
|
174
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
175
|
+
|
|
176
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
177
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
178
|
+
versions will be similar in spirit to the present version, but may
|
|
179
|
+
differ in detail to address new problems or concerns.
|
|
180
|
+
|
|
181
|
+
Each version is given a distinguishing version number. If the
|
|
182
|
+
Library as you received it specifies that a certain numbered version
|
|
183
|
+
of the GNU Lesser General Public License "or any later version"
|
|
184
|
+
applies to it, you have the option of following the terms and
|
|
185
|
+
conditions either of that published version or of any later version
|
|
186
|
+
published by the Free Software Foundation. If the Library as you
|
|
187
|
+
received it does not specify a version number of the GNU Lesser
|
|
188
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
189
|
+
General Public License ever published by the Free Software Foundation.
|
|
190
|
+
|
|
191
|
+
If the Library as you received it specifies that a proxy can decide
|
|
192
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
193
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
194
|
+
permanent authorization for you to choose that version for the
|
|
195
|
+
Library.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.PHONY: help
|
|
2
|
+
help :
|
|
3
|
+
@echo
|
|
4
|
+
@echo 'Commands:'
|
|
5
|
+
@echo
|
|
6
|
+
@echo ' make test run tests'
|
|
7
|
+
@echo ' make lint run linter'
|
|
8
|
+
@echo ' make format run code formatter'
|
|
9
|
+
@echo ' make check run static type checker'
|
|
10
|
+
@echo
|
|
11
|
+
|
|
12
|
+
.PHONY: test
|
|
13
|
+
test :
|
|
14
|
+
pytest -v --cov=arrakis_backend_frames --cov-report=term-missing .
|
|
15
|
+
|
|
16
|
+
.PHONY: lint
|
|
17
|
+
lint :
|
|
18
|
+
ruff check
|
|
19
|
+
|
|
20
|
+
.PHONY: format
|
|
21
|
+
format :
|
|
22
|
+
ruff format
|
|
23
|
+
|
|
24
|
+
.PHONY: check
|
|
25
|
+
check :
|
|
26
|
+
mypy .
|
|
27
|
+
|
|
28
|
+
.PHONY: all
|
|
29
|
+
all : format lint check test
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: arrakis-backend-frames
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Frame backend for the Arrakis server
|
|
5
|
+
Project-URL: Homepage, https://git.ligo.org/ngdd/backends/arrakis-backend-frames
|
|
6
|
+
Project-URL: Documentation, https://docs.ligo.org/ngdd/backends/arrakis-backend-frames
|
|
7
|
+
Project-URL: Issue Tracker, https://git.ligo.org/ngdd/backends/arrakis-backend-frames/issues
|
|
8
|
+
Project-URL: Source Code, https://git.ligo.org/ngdd/backends/arrakis-backend-frames.git
|
|
9
|
+
Author-email: Patrick Godwin <patrick.godwin@ligo.org>
|
|
10
|
+
Maintainer-email: Patrick Godwin <patrick.godwin@ligo.org>
|
|
11
|
+
License-Expression: GPL-3.0-or-later
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
17
|
+
Classifier: Natural Language :: English
|
|
18
|
+
Classifier: Operating System :: POSIX
|
|
19
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
20
|
+
Classifier: Programming Language :: Python
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
25
|
+
Requires-Python: >=3.11
|
|
26
|
+
Requires-Dist: arrakis-server>=0.9
|
|
27
|
+
Requires-Dist: arrakis>=0.11
|
|
28
|
+
Requires-Dist: gwframe>=0.3.1
|
|
29
|
+
Requires-Dist: numpy
|
|
30
|
+
Requires-Dist: python-memcached
|
|
31
|
+
Requires-Dist: requests
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: markdown-callouts>=0.2; extra == 'dev'
|
|
34
|
+
Requires-Dist: markdown-exec>=0.5; extra == 'dev'
|
|
35
|
+
Requires-Dist: mkdocs-coverage>=0.2; extra == 'dev'
|
|
36
|
+
Requires-Dist: mkdocs-gen-files>=0.3; extra == 'dev'
|
|
37
|
+
Requires-Dist: mkdocs-literate-nav>=0.4; extra == 'dev'
|
|
38
|
+
Requires-Dist: mkdocs-material-igwn; extra == 'dev'
|
|
39
|
+
Requires-Dist: mkdocs-section-index>=0.3; extra == 'dev'
|
|
40
|
+
Requires-Dist: mkdocs>=1.3; extra == 'dev'
|
|
41
|
+
Requires-Dist: mkdocstrings[python]; extra == 'dev'
|
|
42
|
+
Requires-Dist: mypy; extra == 'dev'
|
|
43
|
+
Requires-Dist: mypy-extensions; extra == 'dev'
|
|
44
|
+
Requires-Dist: pip; extra == 'dev'
|
|
45
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
46
|
+
Requires-Dist: pytest-cov; extra == 'dev'
|
|
47
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
48
|
+
Requires-Dist: toml>=0.10; extra == 'dev'
|
|
49
|
+
Provides-Extra: docs
|
|
50
|
+
Requires-Dist: markdown-callouts>=0.2; extra == 'docs'
|
|
51
|
+
Requires-Dist: markdown-exec>=0.5; extra == 'docs'
|
|
52
|
+
Requires-Dist: mkdocs-coverage>=0.2; extra == 'docs'
|
|
53
|
+
Requires-Dist: mkdocs-gen-files>=0.3; extra == 'docs'
|
|
54
|
+
Requires-Dist: mkdocs-literate-nav>=0.4; extra == 'docs'
|
|
55
|
+
Requires-Dist: mkdocs-material-igwn; extra == 'docs'
|
|
56
|
+
Requires-Dist: mkdocs-section-index>=0.3; extra == 'docs'
|
|
57
|
+
Requires-Dist: mkdocs>=1.3; extra == 'docs'
|
|
58
|
+
Requires-Dist: mkdocstrings[python]; extra == 'docs'
|
|
59
|
+
Requires-Dist: toml>=0.10; extra == 'docs'
|
|
60
|
+
Provides-Extra: lint
|
|
61
|
+
Requires-Dist: mypy; extra == 'lint'
|
|
62
|
+
Requires-Dist: mypy-extensions; extra == 'lint'
|
|
63
|
+
Requires-Dist: pip; extra == 'lint'
|
|
64
|
+
Requires-Dist: ruff; extra == 'lint'
|
|
65
|
+
Provides-Extra: test
|
|
66
|
+
Requires-Dist: pytest; extra == 'test'
|
|
67
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
68
|
+
Description-Content-Type: text/markdown
|
|
69
|
+
|
|
70
|
+
<h1 align="center">arrakis-backend-frames</h1>
|
|
71
|
+
|
|
72
|
+
<p align="center">Arrakis server frame backend</p>
|
|
73
|
+
|
|
74
|
+
<p align="center">
|
|
75
|
+
<a href="https://git.ligo.org/ngdd/backends/arrakis-backend-frames/-/pipelines/latest">
|
|
76
|
+
<img alt="ci" src="https://git.ligo.org/ngdd/backends/arrakis-backend-frames/badges/main/pipeline.svg" />
|
|
77
|
+
</a>
|
|
78
|
+
<a href="https://ngdd.docs.ligo.org/backends/arrakis-backend-frames/">
|
|
79
|
+
<img alt="documentation" src="https://img.shields.io/badge/docs-mkdocs%20material-blue.svg?style=flat" />
|
|
80
|
+
</a>
|
|
81
|
+
</p>
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Installation
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
pip install git+https://git.ligo.org/ngdd/backends/arrakis-backend-frames.git
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Docker
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
docker run --net=host -it docker://containers.ligo.org/ngdd/backends/arrakis-backend-frames:main
|
|
95
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<h1 align="center">arrakis-backend-frames</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">Arrakis server frame backend</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://git.ligo.org/ngdd/backends/arrakis-backend-frames/-/pipelines/latest">
|
|
7
|
+
<img alt="ci" src="https://git.ligo.org/ngdd/backends/arrakis-backend-frames/badges/main/pipeline.svg" />
|
|
8
|
+
</a>
|
|
9
|
+
<a href="https://ngdd.docs.ligo.org/backends/arrakis-backend-frames/">
|
|
10
|
+
<img alt="documentation" src="https://img.shields.io/badge/docs-mkdocs%20material-blue.svg?style=flat" />
|
|
11
|
+
</a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
pip install git+https://git.ligo.org/ngdd/backends/arrakis-backend-frames.git
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Docker
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
docker run --net=host -it docker://containers.ligo.org/ngdd/backends/arrakis-backend-frames:main
|
|
26
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Copyright (c) 2025, California Institute of Technology and contributors
|
|
2
|
+
#
|
|
3
|
+
# You should have received a copy of the licensing terms for this
|
|
4
|
+
# software included in the file "LICENSE" located in the top-level
|
|
5
|
+
# directory of this package. If you did not, you can view a copy at
|
|
6
|
+
# https://git.ligo.org/ngdd/arrakis-server/-/raw/main/LICENSE
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
from ._version import version as __version__
|
|
10
|
+
except ModuleNotFoundError:
|
|
11
|
+
import setuptools_scm
|
|
12
|
+
|
|
13
|
+
__version__ = setuptools_scm.get_version(fallback_version="?.?.?")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.1.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 0)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|