p2api 1.1.6__tar.gz → 1.1.9__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.
- {p2api-1.1.6 → p2api-1.1.9}/PKG-INFO +1 -1
- p2api-1.1.9/p2api/__about__.py +1 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/p2api.py +1 -1
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/rrm_trigger.py +11 -3
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/rrm_trigger_add_fc.py +11 -2
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/too_trigger.py +20 -10
- p2api-1.1.6/p2api/__about__.py +0 -1
- {p2api-1.1.6 → p2api-1.1.9}/.gitignore +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/LICENSE +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/README.md +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/__init__.py +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/__init__.py +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/eso_period.py +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/fits_time.py +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/generate_finding_charts.py +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/p2api_utils.py +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/p2api/utils/tz_utc.py +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/pyproject.toml +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/setup.cfg +0 -0
- {p2api-1.1.6 → p2api-1.1.9}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: p2api
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.9
|
|
4
4
|
Summary: Binding for the ESO phase 2 programmatic API
|
|
5
5
|
Project-URL: Homepage, https://www.eso.org/copdemo/apidoc/index.html
|
|
6
6
|
Author-email: Thomas Bierwirth <thomas.bierwirth@eso.org>, John Pritchard <john.pritchard@eso.org>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.1.9"
|
|
@@ -1742,7 +1742,7 @@ class ApiConnection(object):
|
|
|
1742
1742
|
files=None
|
|
1743
1743
|
_calibs=[]
|
|
1744
1744
|
if len(calibrations) > 0 :
|
|
1745
|
-
_calibs=calibrations.split(',')
|
|
1745
|
+
_calibs=[int(x) for x in calibrations.split(',')]
|
|
1746
1746
|
data={
|
|
1747
1747
|
"phone": phone,
|
|
1748
1748
|
"notify": notify.split(','),
|
|
@@ -37,6 +37,7 @@ class get_options:
|
|
|
37
37
|
group.add_argument("--account_id", dest="account_id", help="account_id [required]", type=int, default=None)
|
|
38
38
|
group.add_argument("--RA", dest="RA", help="RA hh:mm:ss.sss [required]", default=None)
|
|
39
39
|
group.add_argument("--DEC", dest="DEC", help="DEC (+/-)dd:mm:ss.sss [required]", default=None)
|
|
40
|
+
group.add_argument("-u", "--user", dest="user", help="the User Portal account of the user to use, e.g. ASMITHSONIAN [required for production (not required for demo)]", default=None)
|
|
40
41
|
|
|
41
42
|
group = parser.add_argument_group("Alternative input OB(s)")
|
|
42
43
|
#group.add_argument("--instrument", dest="instrument", help="instrument", default=None)
|
|
@@ -63,7 +64,6 @@ class get_options:
|
|
|
63
64
|
|
|
64
65
|
group = parser.add_argument_group("p2 server selection, options and password management")
|
|
65
66
|
group.add_argument("--env", dest="env", help="Use the %s environment [optional], default = production" %("|".join(p2api.API_URL.keys())), default='production')
|
|
66
|
-
group.add_argument("-u", "--user", dest="user", help="the User Portal account of the user to use, e.g. ASMITHSONIAN [required for production (not required for demo)]", default=None)
|
|
67
67
|
group.add_argument("-S", "--PWstore", dest="pwstore", help="Store the password in the keyring, default=False", action="store_true", default=False)
|
|
68
68
|
group.add_argument("-R", "--PWreenter", dest="pwreenter", help="Reenter the password, thus overriding any PW in the keyring, default=False", action="store_true", default=False)
|
|
69
69
|
group.add_argument("-Z", "--PWremove", dest="pwremove", help="Remove any password from the keyring, default=False", action="store_true", default=False)
|
|
@@ -100,7 +100,15 @@ class get_options:
|
|
|
100
100
|
and
|
|
101
101
|
options.old_fmt_email_file
|
|
102
102
|
)
|
|
103
|
-
|
|
103
|
+
and not (
|
|
104
|
+
options.pwstore
|
|
105
|
+
or
|
|
106
|
+
options.pw.pwreenter
|
|
107
|
+
or
|
|
108
|
+
options.pw.remove
|
|
109
|
+
)
|
|
110
|
+
or not options.user
|
|
111
|
+
) :
|
|
104
112
|
parser.print_help()
|
|
105
113
|
sys.exit(2)
|
|
106
114
|
|
|
@@ -332,7 +340,7 @@ def main():
|
|
|
332
340
|
checked_runs=(options.runId or '').split(',')
|
|
333
341
|
if options.runId is None :
|
|
334
342
|
checked_runs="runs scheduled in P{cep}".format(cep=cep)
|
|
335
|
-
for run in runs :
|
|
343
|
+
for run in (runs or []) :
|
|
336
344
|
if (
|
|
337
345
|
( options.runId is None and run['scheduledPeriod'] == cep )
|
|
338
346
|
or
|
|
@@ -38,6 +38,7 @@ class get_options:
|
|
|
38
38
|
group.add_argument("--account_id", dest="account_id", help="account_id [required]", type=int, default=None)
|
|
39
39
|
group.add_argument("--RA", dest="RA", help="RA hhmmss.sss [required]", default=None)
|
|
40
40
|
group.add_argument("--DEC", dest="DEC", help="DEC (+/-)ddmmss.sss [required]", default=None)
|
|
41
|
+
group.add_argument("-u", "--user", dest="user", help="the User Portal account of the user to use, e.g. ASMITHSONIAN [required for production (not required for demo)]", default=None)
|
|
41
42
|
|
|
42
43
|
group = parser.add_argument_group("Alternative input OB(s)")
|
|
43
44
|
#group.add_argument("--instrument", dest="instrument", help="instrument", default=None)
|
|
@@ -58,7 +59,6 @@ class get_options:
|
|
|
58
59
|
|
|
59
60
|
group = parser.add_argument_group("p2 server selection, options and password management")
|
|
60
61
|
group.add_argument("--env", dest="env", help="Use the %s environment [optional], default = production" %("|".join(p2api.API_URL.keys())), default='production')
|
|
61
|
-
group.add_argument("-u", "--user", dest="user", help="the User Portal account of the user to use, e.g. ASMITHSONIAN [required for production (not required for demo)]", default=None)
|
|
62
62
|
group.add_argument("-S", "--PWstore", dest="pwstore", help="Store the password in the keyring, default=False", action="store_true", default=False)
|
|
63
63
|
group.add_argument("-R", "--PWreenter", dest="pwreenter", help="Reenter the password, thus overriding any PW in the keyring, default=False", action="store_true", default=False)
|
|
64
64
|
group.add_argument("-Z", "--PWremove", dest="pwremove", help="Remove any password from the keyring, default=False", action="store_true", default=False)
|
|
@@ -107,6 +107,14 @@ class get_options:
|
|
|
107
107
|
and
|
|
108
108
|
options.old_fmt_email_file
|
|
109
109
|
)
|
|
110
|
+
and not (
|
|
111
|
+
options.pwstore
|
|
112
|
+
or
|
|
113
|
+
options.pw.pwreenter
|
|
114
|
+
or
|
|
115
|
+
options.pw.remove
|
|
116
|
+
)
|
|
117
|
+
or not options.user
|
|
110
118
|
) :
|
|
111
119
|
parser.print_help()
|
|
112
120
|
sys.exit(2)
|
|
@@ -120,6 +128,7 @@ class get_options:
|
|
|
120
128
|
self.DEC = options.DEC
|
|
121
129
|
|
|
122
130
|
self.OBname = options.OBname
|
|
131
|
+
self.runId = options.runId
|
|
123
132
|
|
|
124
133
|
self.old_fmt_ftp_file = options.old_fmt_ftp_file
|
|
125
134
|
|
|
@@ -294,7 +303,7 @@ def main():
|
|
|
294
303
|
checked_runs=(options.runId or '').split(',')
|
|
295
304
|
if options.runId is None :
|
|
296
305
|
checked_runs="runs scheduled in P{cep}".format(cep=cep)
|
|
297
|
-
for run in runs :
|
|
306
|
+
for run in (runs or []) :
|
|
298
307
|
if (
|
|
299
308
|
( options.runId is None and run['scheduledPeriod'] == cep )
|
|
300
309
|
or
|
|
@@ -33,6 +33,7 @@ class get_options:
|
|
|
33
33
|
group.add_argument("--phone", dest="phone", help="phone", default=None)
|
|
34
34
|
group.add_argument("--notify", dest="notify", help="notify", default=None)
|
|
35
35
|
group.add_argument("--comments", dest="comments", help="comments", default=None)
|
|
36
|
+
group.add_argument("-u", "--user", dest="user", help="the User Portal account of the user to use, e.g. ASMITHSONIAN [required for production (not required for demo)]", default=None)
|
|
36
37
|
|
|
37
38
|
group = parser.add_argument_group("Optional input OB(s)")
|
|
38
39
|
group.add_argument("--calibrations", dest="calibrations", help="calibrations", default=None)
|
|
@@ -40,7 +41,6 @@ class get_options:
|
|
|
40
41
|
|
|
41
42
|
group = parser.add_argument_group("p2 server selection, options and password management")
|
|
42
43
|
group.add_argument("--env", dest="env", help="Use the %s environment [optional], default = production" %("|".join(p2api.API_URL.keys())), default='production')
|
|
43
|
-
group.add_argument("-u", "--user", dest="user", help="the User Portal account of the user to use, e.g. ASMITHSONIAN [required for production (not required for demo)]", default=None)
|
|
44
44
|
group.add_argument("-S", "--PWstore", dest="pwstore", help="Store the password in the keyring, default=False", action="store_true", default=False)
|
|
45
45
|
group.add_argument("-R", "--PWreenter", dest="pwreenter", help="Reenter the password, thus overriding any PW in the keyring, default=False", action="store_true", default=False)
|
|
46
46
|
group.add_argument("-Z", "--PWremove", dest="pwremove", help="Remove any password from the keyring, default=False", action="store_true", default=False)
|
|
@@ -54,15 +54,25 @@ class get_options:
|
|
|
54
54
|
options=parser.parse_args()
|
|
55
55
|
|
|
56
56
|
if (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
not (
|
|
58
|
+
options.folderId
|
|
59
|
+
and
|
|
60
|
+
options.priority
|
|
61
|
+
and
|
|
62
|
+
options.phone
|
|
63
|
+
and
|
|
64
|
+
options.notify
|
|
65
|
+
and
|
|
66
|
+
options.comments
|
|
67
|
+
)
|
|
68
|
+
and not (
|
|
69
|
+
options.pwstore
|
|
70
|
+
or
|
|
71
|
+
options.pw.pwreenter
|
|
72
|
+
or
|
|
73
|
+
options.pw.remove
|
|
74
|
+
)
|
|
75
|
+
or not options.user
|
|
66
76
|
) :
|
|
67
77
|
parser.print_help()
|
|
68
78
|
sys.exit(2)
|
p2api-1.1.6/p2api/__about__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.1.6"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|