pastastore 1.10.2__tar.gz → 1.11.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.
- {pastastore-1.10.2 → pastastore-1.11.0}/PKG-INFO +14 -8
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/__init__.py +5 -1
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/base.py +739 -270
- pastastore-1.11.0/pastastore/connectors.py +874 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/datasets.py +23 -29
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/extensions/__init__.py +7 -3
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/extensions/hpd.py +39 -17
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/plotting.py +71 -38
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/store.py +191 -184
- pastastore-1.11.0/pastastore/typing.py +12 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/util.py +321 -88
- pastastore-1.11.0/pastastore/validator.py +474 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/version.py +1 -2
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/yaml_interface.py +37 -39
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore.egg-info/PKG-INFO +14 -8
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore.egg-info/SOURCES.txt +2 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore.egg-info/requires.txt +5 -2
- {pastastore-1.10.2 → pastastore-1.11.0}/pyproject.toml +7 -3
- {pastastore-1.10.2 → pastastore-1.11.0}/readme.md +7 -3
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/conftest.py +4 -9
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_001_import.py +2 -1
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_002_connectors.py +40 -3
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_003_pastastore.py +57 -28
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_005_maps_plots.py +12 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_006_benchmark.py +1 -1
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_007_hpdextension.py +46 -8
- pastastore-1.10.2/pastastore/connectors.py +0 -1457
- {pastastore-1.10.2 → pastastore-1.11.0}/LICENSE +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/docs/conf.py +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/extensions/accessor.py +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore/styling.py +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore.egg-info/dependency_links.txt +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/pastastore.egg-info/top_level.txt +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/setup.cfg +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_004_yaml.py +0 -0
- {pastastore-1.10.2 → pastastore-1.11.0}/tests/test_008_stressmodels.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pastastore
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.11.0
|
|
4
4
|
Summary: Tools for managing Pastas time series models.
|
|
5
5
|
Author: D.A. Brakenhoff
|
|
6
6
|
Maintainer-email: "D.A. Brakenhoff" <d.brakenhoff@artesia-water.nl>, "R. Calje" <r.calje@artesia-water.nl>, "M.A. Vonk" <m.vonk@artesia-water.nl>
|
|
@@ -52,6 +52,7 @@ License-File: LICENSE
|
|
|
52
52
|
Requires-Dist: pastas>=0.13
|
|
53
53
|
Requires-Dist: tqdm>=4.36
|
|
54
54
|
Requires-Dist: pyyaml
|
|
55
|
+
Requires-Dist: colorama
|
|
55
56
|
Provides-Extra: full
|
|
56
57
|
Requires-Dist: pastastore[arcticdb,optional]; extra == "full"
|
|
57
58
|
Requires-Dist: hydropandas; extra == "full"
|
|
@@ -63,7 +64,6 @@ Requires-Dist: pyproj; extra == "optional"
|
|
|
63
64
|
Requires-Dist: adjustText; extra == "optional"
|
|
64
65
|
Provides-Extra: arcticdb
|
|
65
66
|
Requires-Dist: arcticdb; extra == "arcticdb"
|
|
66
|
-
Requires-Dist: protobuf<6,>=3.5.0.post1; extra == "arcticdb"
|
|
67
67
|
Provides-Extra: lint
|
|
68
68
|
Requires-Dist: ruff; extra == "lint"
|
|
69
69
|
Provides-Extra: pytest
|
|
@@ -74,9 +74,6 @@ Requires-Dist: pytest-cov; extra == "pytest"
|
|
|
74
74
|
Requires-Dist: pytest-dependency; extra == "pytest"
|
|
75
75
|
Requires-Dist: pytest-benchmark; extra == "pytest"
|
|
76
76
|
Requires-Dist: codacy-coverage; extra == "pytest"
|
|
77
|
-
Provides-Extra: test
|
|
78
|
-
Requires-Dist: pastastore[arcticdb,lint,optional,pytest]; extra == "test"
|
|
79
|
-
Requires-Dist: hydropandas[full]; extra == "test"
|
|
80
77
|
Provides-Extra: docs
|
|
81
78
|
Requires-Dist: pastastore[optional]; extra == "docs"
|
|
82
79
|
Requires-Dist: sphinx_rtd_theme; extra == "docs"
|
|
@@ -84,6 +81,11 @@ Requires-Dist: Ipython; extra == "docs"
|
|
|
84
81
|
Requires-Dist: ipykernel; extra == "docs"
|
|
85
82
|
Requires-Dist: nbsphinx; extra == "docs"
|
|
86
83
|
Requires-Dist: nbsphinx_link; extra == "docs"
|
|
84
|
+
Provides-Extra: test
|
|
85
|
+
Requires-Dist: pastastore[arcticdb,optional,pytest]; extra == "test"
|
|
86
|
+
Requires-Dist: hydropandas[full]; extra == "test"
|
|
87
|
+
Provides-Extra: dev
|
|
88
|
+
Requires-Dist: pastastore[docs,lint,test]; extra == "dev"
|
|
87
89
|
Dynamic: license-file
|
|
88
90
|
|
|
89
91
|

|
|
@@ -106,8 +108,12 @@ left off without having to reload everything.
|
|
|
106
108
|
|
|
107
109
|
Install the module with `pip install pastastore`.
|
|
108
110
|
|
|
109
|
-
For
|
|
110
|
-
|
|
111
|
+
For development, clone the repository and install all development, testing, and
|
|
112
|
+
documentation dependencies with:
|
|
113
|
+
|
|
114
|
+
```sh
|
|
115
|
+
pip install -e .[dev]
|
|
116
|
+
```
|
|
111
117
|
|
|
112
118
|
For plotting background maps, the `contextily` and `pyproj` packages are
|
|
113
119
|
required. For a full install, including optional dependencies for plotting and
|
|
@@ -180,4 +186,4 @@ pstore.to_zip("my_backup.zip")
|
|
|
180
186
|
```
|
|
181
187
|
|
|
182
188
|
For more elaborate examples, refer to the
|
|
183
|
-
[Notebooks](https://pastastore.readthedocs.io/latest/examples.html#example-notebooks).
|
|
189
|
+
[Notebooks](https://pastastore.readthedocs.io/en/latest/examples.html#example-notebooks).
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
# ruff: noqa: F401 D104
|
|
2
|
+
import logging
|
|
3
|
+
|
|
2
4
|
from pastastore import connectors, styling, util
|
|
3
5
|
from pastastore.connectors import (
|
|
4
6
|
ArcticDBConnector,
|
|
@@ -6,9 +8,11 @@ from pastastore.connectors import (
|
|
|
6
8
|
PasConnector,
|
|
7
9
|
)
|
|
8
10
|
from pastastore.store import PastaStore
|
|
11
|
+
from pastastore.util import get_color_logger
|
|
9
12
|
from pastastore.version import __version__, show_versions
|
|
10
13
|
|
|
14
|
+
logger = get_color_logger("INFO", logger_name="pastastore")
|
|
11
15
|
try:
|
|
12
16
|
from pastastore import extensions
|
|
13
17
|
except ModuleNotFoundError:
|
|
14
|
-
|
|
18
|
+
logging.warning("Could not import extensions module. Update pastas to >=1.3.0!")
|