cwms-cli 0.3.2__tar.gz → 0.3.4__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.
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/PKG-INFO +14 -3
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/README.md +13 -2
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/__main__.py +1 -0
- cwms_cli-0.3.4/cwmscli/commands/blob.py +700 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/commands_cwms.py +94 -12
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/README.md +21 -0
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/__main__.py +130 -0
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/config.py +119 -0
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/doclinks.py +16 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/examples/complete_config.json +7 -1
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/parser.py +74 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/tests/data/sample_config.json +2 -1
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/tests/test_dateutils.py +147 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/tests/test_expressions.py +6 -1
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/tests/test_fileio.py +75 -0
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/tests/test_main.py +492 -0
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/transform.py +257 -0
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/utils/__init__.py +11 -0
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/utils/dateutils.py +224 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/utils/expression.py +21 -5
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/utils/fileio.py +3 -2
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/utils/logging.py +3 -3
- cwms_cli-0.3.4/cwmscli/commands/csv2cwms/writer.py +31 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/__init__.py +25 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/click_help.py +47 -5
- cwms_cli-0.3.4/cwmscli/utils/intervals.py +71 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/pyproject.toml +1 -1
- cwms_cli-0.3.2/cwmscli/commands/blob.py +0 -437
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/README.md +0 -51
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/__main__.py +0 -265
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/examples/hourly.json +0 -243
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/examples/minutes.json +0 -315
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/tests/test_dateutils.py +0 -68
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/tests/test_fileio.py +0 -43
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/utils/__init__.py +0 -5
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/utils/dateutils.py +0 -105
- cwms_cli-0.3.2/cwmscli/commands/csv2cwms/utils/terminal.py +0 -45
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/LICENSE +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/__init__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/callbacks/__init__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/.gitignore +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/__init__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/tests/__init__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/tests/data/.gitignore +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/tests/data/expected_brok_output.json +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/tests/data/sample_brok.csv +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/csv2cwms/tests/skip_test_integration_pipeline.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/commands/shef_critfile_import.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/README.md +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/__init__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/__main__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/location/location.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/location/location_ids.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/location/location_ids_bygroup.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/root.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/timeseries/timeseries.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/load/timeseries/timeseries_ids.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/requirements.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/usgs/__init__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/usgs/__main__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/usgs/getUSGS_ratings_cda.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/usgs/getusgs_cda.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/usgs/getusgs_measurements_cda.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/usgs/rating_ini_file_import.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/colors.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/deps.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/io.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/logging/__init__.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/logging/formatters.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/ssl_errors.py +0 -0
- {cwms_cli-0.3.2 → cwms_cli-0.3.4}/cwmscli/utils/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cwms-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Command line utilities for Corps Water Management Systems (CWMS) python scripts. This is a collection of shared scripts across the enterprise Water Management Enterprise System (WMES) teams.
|
|
5
5
|
License: LICENSE
|
|
6
6
|
License-File: LICENSE
|
|
@@ -30,9 +30,20 @@ A collection of scripts to create, read, update, list, and delete data through C
|
|
|
30
30
|
## Install
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
|
|
33
|
+
pip install cwms-cli
|
|
34
|
+
```
|
|
35
|
+
Note: You may need to run `python -m pip install cwms-cli` if PIP is not in your path.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Update
|
|
39
|
+
```sh
|
|
40
|
+
pip install cwms-cli --upgrade
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Or as of version `0.3.0+`
|
|
44
|
+
```sh
|
|
45
|
+
cwms-cli update
|
|
34
46
|
```
|
|
35
|
-
Note: If you are on Windows OS, you may just need to use the command `pip`
|
|
36
47
|
|
|
37
48
|
## Command line implementation
|
|
38
49
|
|
|
@@ -7,9 +7,20 @@ A collection of scripts to create, read, update, list, and delete data through C
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
|
|
10
|
+
pip install cwms-cli
|
|
11
|
+
```
|
|
12
|
+
Note: You may need to run `python -m pip install cwms-cli` if PIP is not in your path.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Update
|
|
16
|
+
```sh
|
|
17
|
+
pip install cwms-cli --upgrade
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or as of version `0.3.0+`
|
|
21
|
+
```sh
|
|
22
|
+
cwms-cli update
|
|
11
23
|
```
|
|
12
|
-
Note: If you are on Windows OS, you may just need to use the command `pip`
|
|
13
24
|
|
|
14
25
|
## Command line implementation
|
|
15
26
|
|
|
@@ -52,6 +52,7 @@ def cli(log_file: Optional[str], no_color: bool, log_level: str) -> None:
|
|
|
52
52
|
cli.add_command(usgs_group, name="usgs")
|
|
53
53
|
cli.add_command(commands_cwms.shefcritimport)
|
|
54
54
|
cli.add_command(commands_cwms.csv2cwms_cmd)
|
|
55
|
+
cli.add_command(commands_cwms.update_cli_cmd)
|
|
55
56
|
cli.add_command(commands_cwms.blob_group)
|
|
56
57
|
cli.add_command(load.load_group)
|
|
57
58
|
add_version_to_help_tree(cli)
|