schedint 0.0.1__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.
- schedint-0.0.1/LICENSE +12 -0
- schedint-0.0.1/PKG-INFO +37 -0
- schedint-0.0.1/README.md +8 -0
- schedint-0.0.1/pyproject.toml +27 -0
- schedint-0.0.1/setup.cfg +4 -0
- schedint-0.0.1/src/schedint/__init__.py +2 -0
- schedint-0.0.1/src/schedint/cli.py +156 -0
- schedint-0.0.1/src/schedint/core.py +7 -0
- schedint-0.0.1/src/schedint.egg-info/PKG-INFO +37 -0
- schedint-0.0.1/src/schedint.egg-info/SOURCES.txt +13 -0
- schedint-0.0.1/src/schedint.egg-info/dependency_links.txt +1 -0
- schedint-0.0.1/src/schedint.egg-info/entry_points.txt +2 -0
- schedint-0.0.1/src/schedint.egg-info/requires.txt +7 -0
- schedint-0.0.1/src/schedint.egg-info/top_level.txt +1 -0
- schedint-0.0.1/tests/test_smoke.py +5 -0
schedint-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright 2026 University of Manchester
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
|
+
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 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 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 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.
|
|
12
|
+
|
schedint-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: schedint
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Jodrell bank pulsar schedule editor
|
|
5
|
+
Author: Benjamin Shaw
|
|
6
|
+
License: Copyright 2026 University of Manchester
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
15
|
+
|
|
16
|
+
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 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 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 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.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Requires-Python: >=3.7
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest; extra == "dev"
|
|
24
|
+
Requires-Dist: tox; extra == "dev"
|
|
25
|
+
Requires-Dist: flake8; extra == "dev"
|
|
26
|
+
Requires-Dist: build; extra == "dev"
|
|
27
|
+
Requires-Dist: twine; extra == "dev"
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# schedint
|
|
31
|
+
|
|
32
|
+
Skeleton package of Jodrell Bank pulsar schedule interruptions
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
schedint --ping
|
schedint-0.0.1/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "schedint"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "Jodrell bank pulsar schedule editor"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.7"
|
|
11
|
+
license = { file = "LICENSE" }
|
|
12
|
+
authors = [{ name = "Benjamin Shaw" }]
|
|
13
|
+
|
|
14
|
+
[project.optional-dependencies]
|
|
15
|
+
dev = [
|
|
16
|
+
"pytest",
|
|
17
|
+
"tox",
|
|
18
|
+
"flake8",
|
|
19
|
+
"build",
|
|
20
|
+
"twine",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[project.scripts]
|
|
24
|
+
schedint = "schedint.cli:main"
|
|
25
|
+
|
|
26
|
+
[tools.setuptools]
|
|
27
|
+
package-dir = {"" = "src"}
|
schedint-0.0.1/setup.cfg
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def main() -> int:
|
|
5
|
+
parser = argparse.ArgumentParser(
|
|
6
|
+
prog="schedint",
|
|
7
|
+
description="Jodrell Bank pulsar observing schedule editor",
|
|
8
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
group = parser.add_argument_group("General options")
|
|
12
|
+
|
|
13
|
+
group.add_argument(
|
|
14
|
+
"--version",
|
|
15
|
+
help="Show version info",
|
|
16
|
+
required=False,
|
|
17
|
+
action="store_true"
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
group.add_argument(
|
|
21
|
+
"--export-yaml-template",
|
|
22
|
+
help="Write out yaml template to submit new override request",
|
|
23
|
+
required=False,
|
|
24
|
+
action="store_true"
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
group = parser.add_argument_group("Read Overrides")
|
|
28
|
+
|
|
29
|
+
group.add_argument(
|
|
30
|
+
"--export-all",
|
|
31
|
+
help="Export full list of overrides",
|
|
32
|
+
required=False,
|
|
33
|
+
action="store_true"
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
group.add_argument(
|
|
37
|
+
"--export-by-user",
|
|
38
|
+
help="Export full list of overrides requested by a user",
|
|
39
|
+
required=False,
|
|
40
|
+
default=None,
|
|
41
|
+
type=str
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
group.add_argument(
|
|
45
|
+
"--export-by-source",
|
|
46
|
+
help="Export full list of overrides for a specific source",
|
|
47
|
+
required=False,
|
|
48
|
+
default=None,
|
|
49
|
+
type=str
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
group.add_argument(
|
|
53
|
+
"--export-by-id",
|
|
54
|
+
help="Export override by id",
|
|
55
|
+
required=False,
|
|
56
|
+
default=None,
|
|
57
|
+
type=str
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
group.add_argument(
|
|
61
|
+
"--export-all-active",
|
|
62
|
+
help="Export full list of active overrides",
|
|
63
|
+
required=False,
|
|
64
|
+
action="store_true"
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
group.add_argument(
|
|
68
|
+
"--export-all-expired",
|
|
69
|
+
help="Export full list of expired overrides",
|
|
70
|
+
required=False,
|
|
71
|
+
action="store_true"
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
group.add_argument(
|
|
75
|
+
"--export-all-between-dates",
|
|
76
|
+
help="Export full list of expired overrides",
|
|
77
|
+
required=False,
|
|
78
|
+
default=None,
|
|
79
|
+
type=list
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
group = parser.add_argument_group("Submit new override")
|
|
83
|
+
|
|
84
|
+
group.add_argument(
|
|
85
|
+
"--source",
|
|
86
|
+
help="Name of source to be overriden",
|
|
87
|
+
required=False,
|
|
88
|
+
default=None,
|
|
89
|
+
type=str
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
group.add_argument(
|
|
93
|
+
"--start-time",
|
|
94
|
+
help="Time at which override becomes active (def=now)",
|
|
95
|
+
required=False,
|
|
96
|
+
type=str
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
group.add_argument(
|
|
100
|
+
"--end-time",
|
|
101
|
+
help="Time at which override expires",
|
|
102
|
+
required=False,
|
|
103
|
+
type=str
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
group.add_argument(
|
|
107
|
+
"--set-cadence",
|
|
108
|
+
help="New cadence (days)",
|
|
109
|
+
required=False,
|
|
110
|
+
type=int
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
group.add_argument(
|
|
114
|
+
"--set-tobs",
|
|
115
|
+
help="New integration time",
|
|
116
|
+
required=False,
|
|
117
|
+
type=int
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
group.add_argument(
|
|
121
|
+
"--set-stars",
|
|
122
|
+
help="New priority tier in stars",
|
|
123
|
+
required=False,
|
|
124
|
+
type=int
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
group.add_argument(
|
|
128
|
+
"--reason",
|
|
129
|
+
help="Reason for submission",
|
|
130
|
+
required=False,
|
|
131
|
+
type=str
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
group.add_argument(
|
|
135
|
+
"--submit-file",
|
|
136
|
+
help="Submit submission in yaml format",
|
|
137
|
+
required=False,
|
|
138
|
+
type=str
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
group = parser.add_argument_group("Delete existing override")
|
|
142
|
+
|
|
143
|
+
group.add_argument(
|
|
144
|
+
"--delete-by-id",
|
|
145
|
+
help="id of override to remove",
|
|
146
|
+
required=False,
|
|
147
|
+
type=str
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
args = parser.parse_args()
|
|
151
|
+
|
|
152
|
+
if args:
|
|
153
|
+
pass
|
|
154
|
+
|
|
155
|
+
parser.print_help()
|
|
156
|
+
return 0
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: schedint
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Jodrell bank pulsar schedule editor
|
|
5
|
+
Author: Benjamin Shaw
|
|
6
|
+
License: Copyright 2026 University of Manchester
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
15
|
+
|
|
16
|
+
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 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 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 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.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Requires-Python: >=3.7
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest; extra == "dev"
|
|
24
|
+
Requires-Dist: tox; extra == "dev"
|
|
25
|
+
Requires-Dist: flake8; extra == "dev"
|
|
26
|
+
Requires-Dist: build; extra == "dev"
|
|
27
|
+
Requires-Dist: twine; extra == "dev"
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# schedint
|
|
31
|
+
|
|
32
|
+
Skeleton package of Jodrell Bank pulsar schedule interruptions
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
schedint --ping
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/schedint/__init__.py
|
|
5
|
+
src/schedint/cli.py
|
|
6
|
+
src/schedint/core.py
|
|
7
|
+
src/schedint.egg-info/PKG-INFO
|
|
8
|
+
src/schedint.egg-info/SOURCES.txt
|
|
9
|
+
src/schedint.egg-info/dependency_links.txt
|
|
10
|
+
src/schedint.egg-info/entry_points.txt
|
|
11
|
+
src/schedint.egg-info/requires.txt
|
|
12
|
+
src/schedint.egg-info/top_level.txt
|
|
13
|
+
tests/test_smoke.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
schedint
|