eptatools 0.4.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.
- eptatools-0.4.0/PKG-INFO +82 -0
- eptatools-0.4.0/README.md +72 -0
- eptatools-0.4.0/pyproject.toml +24 -0
- eptatools-0.4.0/setup.cfg +4 -0
- eptatools-0.4.0/src/eptatools.egg-info/PKG-INFO +82 -0
- eptatools-0.4.0/src/eptatools.egg-info/SOURCES.txt +20 -0
- eptatools-0.4.0/src/eptatools.egg-info/dependency_links.txt +1 -0
- eptatools-0.4.0/src/eptatools.egg-info/requires.txt +4 -0
- eptatools-0.4.0/src/eptatools.egg-info/top_level.txt +1 -0
- eptatools-0.4.0/src/eptools/__init__.py +16 -0
- eptatools-0.4.0/src/eptools/_server_runner.py +501 -0
- eptatools-0.4.0/src/eptools/_wxt_init.sh +9 -0
- eptatools-0.4.0/src/eptools/client.py +487 -0
- eptatools-0.4.0/src/eptools/job.py +95 -0
- eptatools-0.4.0/src/eptools/models.py +167 -0
- eptatools-0.4.0/src/eptools/transport.py +179 -0
- eptatools-0.4.0/tests/test_client_layout.py +115 -0
- eptatools-0.4.0/tests/test_job.py +38 -0
- eptatools-0.4.0/tests/test_models.py +83 -0
- eptatools-0.4.0/tests/test_runner.py +160 -0
- eptatools-0.4.0/tests/test_simple_client.py +71 -0
- eptatools-0.4.0/tests/test_transport.py +31 -0
eptatools-0.4.0/PKG-INFO
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eptatools
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Local Python client for remote Einstein Probe WXT and FXT pipelines
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: paramiko>=3.4
|
|
8
|
+
Provides-Extra: test
|
|
9
|
+
Requires-Dist: pytest>=7; extra == "test"
|
|
10
|
+
|
|
11
|
+
# eptools
|
|
12
|
+
|
|
13
|
+
`eptools` is a local Python client for submitting Einstein Probe WXT and FXT
|
|
14
|
+
processing jobs over SSH. The scientific pipeline code remains unchanged: a
|
|
15
|
+
small, Python-3.6-compatible runner creates an isolated workspace on the
|
|
16
|
+
server and invokes the existing entrypoints.
|
|
17
|
+
|
|
18
|
+
The server-side installation is shared, not stored in any user's home:
|
|
19
|
+
|
|
20
|
+
- WXT: `/mnt/eptools/software`
|
|
21
|
+
- FXT: `/NFS/ep-pipeline/software/eptools`
|
|
22
|
+
|
|
23
|
+
Jobs remain private under a username-specific directory in the shared job
|
|
24
|
+
area. The default client reuses the deployed `CURRENT` pipeline revision and
|
|
25
|
+
does not update shared code automatically.
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
python -m pip install eptatools
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The Python import name is `eptools`. To install from a local checkout, run
|
|
34
|
+
`python -m pip install -e .` from the repository root.
|
|
35
|
+
|
|
36
|
+
See [docs/USAGE.md](docs/USAGE.md) for SSH configuration, all supported WXT
|
|
37
|
+
and FXT input cases, interactive review states, recovery, and result download.
|
|
38
|
+
|
|
39
|
+
## Example
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from getpass import getpass
|
|
43
|
+
from eptools import EPPipelineClient
|
|
44
|
+
|
|
45
|
+
client = EPPipelineClient(input("SSH username: "), getpass("SSH password: "))
|
|
46
|
+
params = client.parameters(
|
|
47
|
+
"wxt",
|
|
48
|
+
name="EP260809a",
|
|
49
|
+
obs_id=["06800001692"], cmos_id=["32"],
|
|
50
|
+
ra=328.573, dec=17.607, T0_GCN="2026-08-09T00:38:21.800",
|
|
51
|
+
nH_Galactic=None, z=None,
|
|
52
|
+
)
|
|
53
|
+
job = client.submit(params)
|
|
54
|
+
print(job.job_id)
|
|
55
|
+
state = client.status(job)
|
|
56
|
+
print(state)
|
|
57
|
+
if state["state"] == "completed":
|
|
58
|
+
print(client.download(job))
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
A maintainer deploys a new runner and pipeline snapshot explicitly:
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
maintainer = EPPipelineClient(
|
|
65
|
+
local_pipeline_roots={
|
|
66
|
+
"wxt": input("Local WXT checkout: "),
|
|
67
|
+
"fxt": input("Local FXT checkout: "),
|
|
68
|
+
},
|
|
69
|
+
)
|
|
70
|
+
print(maintainer.deploy(("wxt", "fxt")))
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
By default WXT is routed to the SSH alias `epserver`, while FXT is routed to
|
|
74
|
+
`server`. The client uploads a versioned snapshot of the selected pipeline,
|
|
75
|
+
submits one source per job, and downloads only files listed in the server-side
|
|
76
|
+
result manifest. Credentials are kept out of request files and result
|
|
77
|
+
manifests.
|
|
78
|
+
|
|
79
|
+
For FXT, build `ep-fxt-pipeline:v2.0` on `server` from
|
|
80
|
+
`docker/fxt-pipeline.Dockerfile`. The image extends `fxtsoft:v2.0`, initializes
|
|
81
|
+
HEASoft on startup and uses the matching FXT CALDB v2.0. MultiNest is built from
|
|
82
|
+
a pinned upstream commit. See the [deployment instructions](docs/USAGE.md#10-部署失败和安全检查).
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# eptools
|
|
2
|
+
|
|
3
|
+
`eptools` is a local Python client for submitting Einstein Probe WXT and FXT
|
|
4
|
+
processing jobs over SSH. The scientific pipeline code remains unchanged: a
|
|
5
|
+
small, Python-3.6-compatible runner creates an isolated workspace on the
|
|
6
|
+
server and invokes the existing entrypoints.
|
|
7
|
+
|
|
8
|
+
The server-side installation is shared, not stored in any user's home:
|
|
9
|
+
|
|
10
|
+
- WXT: `/mnt/eptools/software`
|
|
11
|
+
- FXT: `/NFS/ep-pipeline/software/eptools`
|
|
12
|
+
|
|
13
|
+
Jobs remain private under a username-specific directory in the shared job
|
|
14
|
+
area. The default client reuses the deployed `CURRENT` pipeline revision and
|
|
15
|
+
does not update shared code automatically.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
python -m pip install eptatools
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The Python import name is `eptools`. To install from a local checkout, run
|
|
24
|
+
`python -m pip install -e .` from the repository root.
|
|
25
|
+
|
|
26
|
+
See [docs/USAGE.md](docs/USAGE.md) for SSH configuration, all supported WXT
|
|
27
|
+
and FXT input cases, interactive review states, recovery, and result download.
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from getpass import getpass
|
|
33
|
+
from eptools import EPPipelineClient
|
|
34
|
+
|
|
35
|
+
client = EPPipelineClient(input("SSH username: "), getpass("SSH password: "))
|
|
36
|
+
params = client.parameters(
|
|
37
|
+
"wxt",
|
|
38
|
+
name="EP260809a",
|
|
39
|
+
obs_id=["06800001692"], cmos_id=["32"],
|
|
40
|
+
ra=328.573, dec=17.607, T0_GCN="2026-08-09T00:38:21.800",
|
|
41
|
+
nH_Galactic=None, z=None,
|
|
42
|
+
)
|
|
43
|
+
job = client.submit(params)
|
|
44
|
+
print(job.job_id)
|
|
45
|
+
state = client.status(job)
|
|
46
|
+
print(state)
|
|
47
|
+
if state["state"] == "completed":
|
|
48
|
+
print(client.download(job))
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
A maintainer deploys a new runner and pipeline snapshot explicitly:
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
maintainer = EPPipelineClient(
|
|
55
|
+
local_pipeline_roots={
|
|
56
|
+
"wxt": input("Local WXT checkout: "),
|
|
57
|
+
"fxt": input("Local FXT checkout: "),
|
|
58
|
+
},
|
|
59
|
+
)
|
|
60
|
+
print(maintainer.deploy(("wxt", "fxt")))
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
By default WXT is routed to the SSH alias `epserver`, while FXT is routed to
|
|
64
|
+
`server`. The client uploads a versioned snapshot of the selected pipeline,
|
|
65
|
+
submits one source per job, and downloads only files listed in the server-side
|
|
66
|
+
result manifest. Credentials are kept out of request files and result
|
|
67
|
+
manifests.
|
|
68
|
+
|
|
69
|
+
For FXT, build `ep-fxt-pipeline:v2.0` on `server` from
|
|
70
|
+
`docker/fxt-pipeline.Dockerfile`. The image extends `fxtsoft:v2.0`, initializes
|
|
71
|
+
HEASoft on startup and uses the matching FXT CALDB v2.0. MultiNest is built from
|
|
72
|
+
a pinned upstream commit. See the [deployment instructions](docs/USAGE.md#10-部署失败和安全检查).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "eptatools"
|
|
7
|
+
version = "0.4.0"
|
|
8
|
+
description = "Local Python client for remote Einstein Probe WXT and FXT pipelines"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
dependencies = ["paramiko>=3.4"]
|
|
12
|
+
|
|
13
|
+
[project.optional-dependencies]
|
|
14
|
+
test = ["pytest>=7"]
|
|
15
|
+
|
|
16
|
+
[tool.setuptools.packages.find]
|
|
17
|
+
where = ["src"]
|
|
18
|
+
|
|
19
|
+
[tool.setuptools.package-data]
|
|
20
|
+
eptools = ["_wxt_init.sh"]
|
|
21
|
+
|
|
22
|
+
[tool.pytest.ini_options]
|
|
23
|
+
pythonpath = ["src"]
|
|
24
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eptatools
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Local Python client for remote Einstein Probe WXT and FXT pipelines
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: paramiko>=3.4
|
|
8
|
+
Provides-Extra: test
|
|
9
|
+
Requires-Dist: pytest>=7; extra == "test"
|
|
10
|
+
|
|
11
|
+
# eptools
|
|
12
|
+
|
|
13
|
+
`eptools` is a local Python client for submitting Einstein Probe WXT and FXT
|
|
14
|
+
processing jobs over SSH. The scientific pipeline code remains unchanged: a
|
|
15
|
+
small, Python-3.6-compatible runner creates an isolated workspace on the
|
|
16
|
+
server and invokes the existing entrypoints.
|
|
17
|
+
|
|
18
|
+
The server-side installation is shared, not stored in any user's home:
|
|
19
|
+
|
|
20
|
+
- WXT: `/mnt/eptools/software`
|
|
21
|
+
- FXT: `/NFS/ep-pipeline/software/eptools`
|
|
22
|
+
|
|
23
|
+
Jobs remain private under a username-specific directory in the shared job
|
|
24
|
+
area. The default client reuses the deployed `CURRENT` pipeline revision and
|
|
25
|
+
does not update shared code automatically.
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
python -m pip install eptatools
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The Python import name is `eptools`. To install from a local checkout, run
|
|
34
|
+
`python -m pip install -e .` from the repository root.
|
|
35
|
+
|
|
36
|
+
See [docs/USAGE.md](docs/USAGE.md) for SSH configuration, all supported WXT
|
|
37
|
+
and FXT input cases, interactive review states, recovery, and result download.
|
|
38
|
+
|
|
39
|
+
## Example
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from getpass import getpass
|
|
43
|
+
from eptools import EPPipelineClient
|
|
44
|
+
|
|
45
|
+
client = EPPipelineClient(input("SSH username: "), getpass("SSH password: "))
|
|
46
|
+
params = client.parameters(
|
|
47
|
+
"wxt",
|
|
48
|
+
name="EP260809a",
|
|
49
|
+
obs_id=["06800001692"], cmos_id=["32"],
|
|
50
|
+
ra=328.573, dec=17.607, T0_GCN="2026-08-09T00:38:21.800",
|
|
51
|
+
nH_Galactic=None, z=None,
|
|
52
|
+
)
|
|
53
|
+
job = client.submit(params)
|
|
54
|
+
print(job.job_id)
|
|
55
|
+
state = client.status(job)
|
|
56
|
+
print(state)
|
|
57
|
+
if state["state"] == "completed":
|
|
58
|
+
print(client.download(job))
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
A maintainer deploys a new runner and pipeline snapshot explicitly:
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
maintainer = EPPipelineClient(
|
|
65
|
+
local_pipeline_roots={
|
|
66
|
+
"wxt": input("Local WXT checkout: "),
|
|
67
|
+
"fxt": input("Local FXT checkout: "),
|
|
68
|
+
},
|
|
69
|
+
)
|
|
70
|
+
print(maintainer.deploy(("wxt", "fxt")))
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
By default WXT is routed to the SSH alias `epserver`, while FXT is routed to
|
|
74
|
+
`server`. The client uploads a versioned snapshot of the selected pipeline,
|
|
75
|
+
submits one source per job, and downloads only files listed in the server-side
|
|
76
|
+
result manifest. Credentials are kept out of request files and result
|
|
77
|
+
manifests.
|
|
78
|
+
|
|
79
|
+
For FXT, build `ep-fxt-pipeline:v2.0` on `server` from
|
|
80
|
+
`docker/fxt-pipeline.Dockerfile`. The image extends `fxtsoft:v2.0`, initializes
|
|
81
|
+
HEASoft on startup and uses the matching FXT CALDB v2.0. MultiNest is built from
|
|
82
|
+
a pinned upstream commit. See the [deployment instructions](docs/USAGE.md#10-部署失败和安全检查).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
src/eptatools.egg-info/PKG-INFO
|
|
4
|
+
src/eptatools.egg-info/SOURCES.txt
|
|
5
|
+
src/eptatools.egg-info/dependency_links.txt
|
|
6
|
+
src/eptatools.egg-info/requires.txt
|
|
7
|
+
src/eptatools.egg-info/top_level.txt
|
|
8
|
+
src/eptools/__init__.py
|
|
9
|
+
src/eptools/_server_runner.py
|
|
10
|
+
src/eptools/_wxt_init.sh
|
|
11
|
+
src/eptools/client.py
|
|
12
|
+
src/eptools/job.py
|
|
13
|
+
src/eptools/models.py
|
|
14
|
+
src/eptools/transport.py
|
|
15
|
+
tests/test_client_layout.py
|
|
16
|
+
tests/test_job.py
|
|
17
|
+
tests/test_models.py
|
|
18
|
+
tests/test_runner.py
|
|
19
|
+
tests/test_simple_client.py
|
|
20
|
+
tests/test_transport.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eptools
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Public API for eptools."""
|
|
2
|
+
|
|
3
|
+
from .client import EPPipelineClient
|
|
4
|
+
from .job import PipelineJob
|
|
5
|
+
from .models import FXTSource, HostProfile, WXTObservation, WXTSource
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"EPPipelineClient",
|
|
9
|
+
"PipelineJob",
|
|
10
|
+
"FXTSource",
|
|
11
|
+
"HostProfile",
|
|
12
|
+
"WXTObservation",
|
|
13
|
+
"WXTSource",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
__version__ = "0.4.0"
|