rda-python-dscheck 2.0.6__tar.gz → 2.0.8__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.
- rda_python_dscheck-2.0.8/PKG-INFO +93 -0
- rda_python_dscheck-2.0.8/README.md +77 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/pyproject.toml +1 -1
- rda_python_dscheck-2.0.8/src/rda_python_dscheck/__init__.py +27 -0
- rda_python_dscheck-2.0.8/src/rda_python_dscheck/dscheck.usg +781 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck/pg_check.py +3 -1
- rda_python_dscheck-2.0.8/src/rda_python_dscheck.egg-info/PKG-INFO +93 -0
- rda_python_dscheck-2.0.6/PKG-INFO +0 -22
- rda_python_dscheck-2.0.6/README.md +0 -6
- rda_python_dscheck-2.0.6/src/rda_python_dscheck/__init__.py +0 -1
- rda_python_dscheck-2.0.6/src/rda_python_dscheck/dscheck.usg +0 -701
- rda_python_dscheck-2.0.6/src/rda_python_dscheck.egg-info/PKG-INFO +0 -22
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/LICENSE +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/MANIFEST.in +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/setup.cfg +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck/PgCheck.py +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck/ds_check.py +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck/dscheck.py +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck.egg-info/SOURCES.txt +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck.egg-info/dependency_links.txt +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck.egg-info/entry_points.txt +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck.egg-info/requires.txt +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/src/rda_python_dscheck.egg-info/top_level.txt +0 -0
- {rda_python_dscheck-2.0.6 → rda_python_dscheck-2.0.8}/tests/test_dscheck.py +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rda_python_dscheck
|
|
3
|
+
Version: 2.0.8
|
|
4
|
+
Summary: RDA python package to add and process batch jobs
|
|
5
|
+
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
|
+
Project-URL: Homepage, https://github.com/NCAR/rda-python-dscheck
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: rda_python_common
|
|
15
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
# dscheck
|
|
18
|
+
|
|
19
|
+
Python project to add and process batch jobs for the [NSF NCAR Geoscience Data Exchange (GDEX)](https://gdex.ucar.edu).
|
|
20
|
+
|
|
21
|
+
The user guide for this utility tool can be viewed at: [User guide](https://gdex-docs-dscheck.readthedocs.io).
|
|
22
|
+
|
|
23
|
+
## Source layout
|
|
24
|
+
|
|
25
|
+
The package lives under `src/rda_python_dscheck/`. The three files most
|
|
26
|
+
relevant to setup and customization are:
|
|
27
|
+
|
|
28
|
+
- **`dscheck.py`** — entry point installed as the `setuid_dscheck`
|
|
29
|
+
console script. Defines the `DsCheck` class which subclasses
|
|
30
|
+
`PgCheck`, parses command-line options via `self.parsing_input`, and
|
|
31
|
+
dispatches to the appropriate action handler (`add_check_info`,
|
|
32
|
+
`process_check`, `get_check_info`, `set_dscheck_options`, ...).
|
|
33
|
+
Build new actions by adding a method here and routing to it from
|
|
34
|
+
`start_actions()`.
|
|
35
|
+
|
|
36
|
+
- **`pg_check.py`** — defines the `PgCheck` class (inherits from
|
|
37
|
+
`PgCMD` in `rda_python_common`). Holds the master `OPTS` option
|
|
38
|
+
table, the `ALIAS` map for long/alias names, the `TBLHASH` table
|
|
39
|
+
field maps for `dscheck` and `dsdaemon`, and the helper methods
|
|
40
|
+
shared by every action (option validation, dynamic batch-option
|
|
41
|
+
resolution, daemon control, host/specialist resolution, etc.).
|
|
42
|
+
Add or change options here, then document them in `dscheck.usg`.
|
|
43
|
+
|
|
44
|
+
- **`dscheck.usg`** — single source of truth for the user-facing
|
|
45
|
+
documentation displayed by `dscheck -?` and rendered as the
|
|
46
|
+
[user guide](https://gdex-docs-dscheck.readthedocs.io). Section 3
|
|
47
|
+
lists Action options, Section 4 lists Mode options, and Section 5
|
|
48
|
+
lists Single- and Multi-Value Info options. When you add a new
|
|
49
|
+
option to `OPTS` in `pg_check.py`, add a matching entry to the
|
|
50
|
+
appropriate subsection of this file and (if relevant) to the
|
|
51
|
+
per-action usage block in Section 3.
|
|
52
|
+
|
|
53
|
+
### Installing from PyPI
|
|
54
|
+
|
|
55
|
+
The package is published on [PyPI](https://pypi.org/project/rda_python_dscheck/),
|
|
56
|
+
so the regular install command is:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install rda_python_dscheck
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
To upgrade an existing install to the latest published release:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pip install --upgrade rda_python_dscheck
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This pulls in `rda_python_common` (which provides `PgCMD`, `PgLOG`,
|
|
69
|
+
`PgDBI`, ...) and registers the `setuid_dscheck` console script.
|
|
70
|
+
|
|
71
|
+
### Installing for development
|
|
72
|
+
|
|
73
|
+
For local changes, clone the repo and install in editable mode so that
|
|
74
|
+
edits are picked up immediately without reinstalling:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
git clone https://github.com/NCAR/rda-python-dscheck.git
|
|
78
|
+
cd rda-python-dscheck
|
|
79
|
+
pip install -e .
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Documentation sync
|
|
83
|
+
|
|
84
|
+
The user guide rendered at
|
|
85
|
+
[gdex-docs-dscheck.readthedocs.io](https://gdex-docs-dscheck.readthedocs.io) is
|
|
86
|
+
generated from `src/rda_python_dscheck/dscheck.usg` in this repository. When a
|
|
87
|
+
pull request that modifies `dscheck.usg` is merged here, an automated workflow
|
|
88
|
+
converts the updated `dscheck.usg` into the RST-format source files in the
|
|
89
|
+
[gdex-docs-dscheck](https://github.com/NCAR/gdex-docs-dscheck) repository and
|
|
90
|
+
opens a pull request there with the regenerated docs, ready for review and
|
|
91
|
+
merge. No manual RST editing is required — keep all user-facing content in
|
|
92
|
+
`dscheck.usg` and let the sync produce the docs.
|
|
93
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# dscheck
|
|
2
|
+
|
|
3
|
+
Python project to add and process batch jobs for the [NSF NCAR Geoscience Data Exchange (GDEX)](https://gdex.ucar.edu).
|
|
4
|
+
|
|
5
|
+
The user guide for this utility tool can be viewed at: [User guide](https://gdex-docs-dscheck.readthedocs.io).
|
|
6
|
+
|
|
7
|
+
## Source layout
|
|
8
|
+
|
|
9
|
+
The package lives under `src/rda_python_dscheck/`. The three files most
|
|
10
|
+
relevant to setup and customization are:
|
|
11
|
+
|
|
12
|
+
- **`dscheck.py`** — entry point installed as the `setuid_dscheck`
|
|
13
|
+
console script. Defines the `DsCheck` class which subclasses
|
|
14
|
+
`PgCheck`, parses command-line options via `self.parsing_input`, and
|
|
15
|
+
dispatches to the appropriate action handler (`add_check_info`,
|
|
16
|
+
`process_check`, `get_check_info`, `set_dscheck_options`, ...).
|
|
17
|
+
Build new actions by adding a method here and routing to it from
|
|
18
|
+
`start_actions()`.
|
|
19
|
+
|
|
20
|
+
- **`pg_check.py`** — defines the `PgCheck` class (inherits from
|
|
21
|
+
`PgCMD` in `rda_python_common`). Holds the master `OPTS` option
|
|
22
|
+
table, the `ALIAS` map for long/alias names, the `TBLHASH` table
|
|
23
|
+
field maps for `dscheck` and `dsdaemon`, and the helper methods
|
|
24
|
+
shared by every action (option validation, dynamic batch-option
|
|
25
|
+
resolution, daemon control, host/specialist resolution, etc.).
|
|
26
|
+
Add or change options here, then document them in `dscheck.usg`.
|
|
27
|
+
|
|
28
|
+
- **`dscheck.usg`** — single source of truth for the user-facing
|
|
29
|
+
documentation displayed by `dscheck -?` and rendered as the
|
|
30
|
+
[user guide](https://gdex-docs-dscheck.readthedocs.io). Section 3
|
|
31
|
+
lists Action options, Section 4 lists Mode options, and Section 5
|
|
32
|
+
lists Single- and Multi-Value Info options. When you add a new
|
|
33
|
+
option to `OPTS` in `pg_check.py`, add a matching entry to the
|
|
34
|
+
appropriate subsection of this file and (if relevant) to the
|
|
35
|
+
per-action usage block in Section 3.
|
|
36
|
+
|
|
37
|
+
### Installing from PyPI
|
|
38
|
+
|
|
39
|
+
The package is published on [PyPI](https://pypi.org/project/rda_python_dscheck/),
|
|
40
|
+
so the regular install command is:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install rda_python_dscheck
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To upgrade an existing install to the latest published release:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install --upgrade rda_python_dscheck
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
This pulls in `rda_python_common` (which provides `PgCMD`, `PgLOG`,
|
|
53
|
+
`PgDBI`, ...) and registers the `setuid_dscheck` console script.
|
|
54
|
+
|
|
55
|
+
### Installing for development
|
|
56
|
+
|
|
57
|
+
For local changes, clone the repo and install in editable mode so that
|
|
58
|
+
edits are picked up immediately without reinstalling:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
git clone https://github.com/NCAR/rda-python-dscheck.git
|
|
62
|
+
cd rda-python-dscheck
|
|
63
|
+
pip install -e .
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Documentation sync
|
|
67
|
+
|
|
68
|
+
The user guide rendered at
|
|
69
|
+
[gdex-docs-dscheck.readthedocs.io](https://gdex-docs-dscheck.readthedocs.io) is
|
|
70
|
+
generated from `src/rda_python_dscheck/dscheck.usg` in this repository. When a
|
|
71
|
+
pull request that modifies `dscheck.usg` is merged here, an automated workflow
|
|
72
|
+
converts the updated `dscheck.usg` into the RST-format source files in the
|
|
73
|
+
[gdex-docs-dscheck](https://github.com/NCAR/gdex-docs-dscheck) repository and
|
|
74
|
+
opens a pull request there with the regenerated docs, ready for review and
|
|
75
|
+
merge. No manual RST editing is required — keep all user-facing content in
|
|
76
|
+
`dscheck.usg` and let the sync produce the docs.
|
|
77
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""rda_python_dscheck: dataset check (dscheck) utility package.
|
|
2
|
+
|
|
3
|
+
This package exposes two parallel APIs:
|
|
4
|
+
|
|
5
|
+
1. Legacy module-based API (back-compat). Import the capitalized
|
|
6
|
+
submodule and call its module-level functions, e.g.::
|
|
7
|
+
|
|
8
|
+
from rda_python_dscheck import PgCheck
|
|
9
|
+
|
|
10
|
+
2. Class-based API (preferred for new code). Import the class from the
|
|
11
|
+
lower-case module and either instantiate or subclass it, e.g.::
|
|
12
|
+
|
|
13
|
+
from rda_python_dscheck.pg_check import PgCheck
|
|
14
|
+
|
|
15
|
+
The legacy submodule is eagerly imported below so that
|
|
16
|
+
``from rda_python_dscheck import PgCheck`` continues to return the module
|
|
17
|
+
object that existing callers expect.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from . import PgCheck
|
|
21
|
+
|
|
22
|
+
__version__ = "2.0.8"
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"PgCheck",
|
|
26
|
+
"__version__",
|
|
27
|
+
]
|