toolviper 0.0.1__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.
Files changed (30) hide show
  1. toolviper-0.0.1/LICENSE +28 -0
  2. toolviper-0.0.1/MANIFEST.in +8 -0
  3. toolviper-0.0.1/PKG-INFO +70 -0
  4. toolviper-0.0.1/README.md +2 -0
  5. toolviper-0.0.1/pyproject.toml +49 -0
  6. toolviper-0.0.1/setup.cfg +4 -0
  7. toolviper-0.0.1/src/toolviper/__init__.py +17 -0
  8. toolviper-0.0.1/src/toolviper/config/client.param.json +40 -0
  9. toolviper-0.0.1/src/toolviper/dask/__init__.py +4 -0
  10. toolviper-0.0.1/src/toolviper/dask/client.py +585 -0
  11. toolviper-0.0.1/src/toolviper/dask/menrva.py +200 -0
  12. toolviper-0.0.1/src/toolviper/dask/plugins/__init__.py +0 -0
  13. toolviper-0.0.1/src/toolviper/dask/plugins/scheduler.py +377 -0
  14. toolviper-0.0.1/src/toolviper/dask/plugins/worker.py +105 -0
  15. toolviper-0.0.1/src/toolviper/utils/__init__.py +10 -0
  16. toolviper-0.0.1/src/toolviper/utils/console.py +235 -0
  17. toolviper-0.0.1/src/toolviper/utils/data/__init__.py +3 -0
  18. toolviper-0.0.1/src/toolviper/utils/data/download.py +341 -0
  19. toolviper-0.0.1/src/toolviper/utils/display.py +10 -0
  20. toolviper-0.0.1/src/toolviper/utils/logger.py +320 -0
  21. toolviper-0.0.1/src/toolviper/utils/parameter.py +269 -0
  22. toolviper-0.0.1/src/toolviper/utils/plugins/__init__.py +0 -0
  23. toolviper-0.0.1/src/toolviper/utils/plugins/worker_logger.py +77 -0
  24. toolviper-0.0.1/src/toolviper/utils/protego.py +84 -0
  25. toolviper-0.0.1/src/toolviper.egg-info/PKG-INFO +70 -0
  26. toolviper-0.0.1/src/toolviper.egg-info/SOURCES.txt +28 -0
  27. toolviper-0.0.1/src/toolviper.egg-info/dependency_links.txt +1 -0
  28. toolviper-0.0.1/src/toolviper.egg-info/requires.txt +32 -0
  29. toolviper-0.0.1/src/toolviper.egg-info/top_level.txt +1 -0
  30. toolviper-0.0.1/tests/test_client.py +156 -0
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, CASA
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,8 @@
1
+ include README.md
2
+ include MANIFEST.in
3
+ include LICENSE
4
+ include CONTRIBUTOR_LICENSING_AGREEMENT
5
+
6
+ recursive-include src/toolviper/utils/data *
7
+ recursive-include src/toolviper/utils/data/.dropbox *
8
+ recursive-include src/toolviper/config *
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.1
2
+ Name: toolviper
3
+ Version: 0.0.1
4
+ Author-email: Joshua Hoskins <jhoskins@nrao.edu>, Jan Willem-Steeb <jsteeb@nrao.edu>
5
+ License: BSD 3-Clause License
6
+
7
+ Copyright (c) 2024, CASA
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions are met:
11
+
12
+ 1. Redistributions of source code must retain the above copyright notice, this
13
+ list of conditions and the following disclaimer.
14
+
15
+ 2. Redistributions in binary form must reproduce the above copyright notice,
16
+ this list of conditions and the following disclaimer in the documentation
17
+ and/or other materials provided with the distribution.
18
+
19
+ 3. Neither the name of the copyright holder nor the names of its
20
+ contributors may be used to endorse or promote products derived from
21
+ this software without specific prior written permission.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+
34
+ Requires-Python: <3.13,>=3.9
35
+ Description-Content-Type: text/markdown
36
+ License-File: LICENSE
37
+ Requires-Dist: cerberus
38
+ Requires-Dist: dask
39
+ Requires-Dist: dask_jobqueue
40
+ Requires-Dist: distributed
41
+ Requires-Dist: numba>=0.57.0
42
+ Requires-Dist: numpy
43
+ Requires-Dist: psutil
44
+ Requires-Dist: ipywidgets
45
+ Requires-Dist: pytest
46
+ Requires-Dist: pytest-cov
47
+ Requires-Dist: pytest-html
48
+ Requires-Dist: rich
49
+ Requires-Dist: tqdm
50
+ Requires-Dist: zarr
51
+ Requires-Dist: bokeh
52
+ Requires-Dist: jupyterlab
53
+ Requires-Dist: pyarrow
54
+ Requires-Dist: graphviz
55
+ Provides-Extra: docs
56
+ Requires-Dist: ipykernel; extra == "docs"
57
+ Requires-Dist: ipympl; extra == "docs"
58
+ Requires-Dist: ipython; extra == "docs"
59
+ Requires-Dist: jupyter-client; extra == "docs"
60
+ Requires-Dist: nbsphinx; extra == "docs"
61
+ Requires-Dist: recommonmark; extra == "docs"
62
+ Requires-Dist: scanpydoc; extra == "docs"
63
+ Requires-Dist: sphinx-autoapi; extra == "docs"
64
+ Requires-Dist: sphinx-autosummary-accessors; extra == "docs"
65
+ Requires-Dist: sphinx_rtd_theme; extra == "docs"
66
+ Requires-Dist: twine; extra == "docs"
67
+ Requires-Dist: pandoc; extra == "docs"
68
+
69
+ # toolviper
70
+ Tools and utilities for otimized radio astronomy processing using the VIPER framework.
@@ -0,0 +1,2 @@
1
+ # toolviper
2
+ Tools and utilities for otimized radio astronomy processing using the VIPER framework.
@@ -0,0 +1,49 @@
1
+ [project]
2
+ name = "toolviper"
3
+ version = "0.0.1"
4
+ description = ""
5
+ authors = [
6
+ {name = "Joshua Hoskins", email="jhoskins@nrao.edu"},
7
+ {name = "Jan Willem-Steeb", email="jsteeb@nrao.edu"}
8
+ ]
9
+ license = {file = "LICENSE"}
10
+ readme = "README.md"
11
+ requires-python = ">= 3.9, < 3.13"
12
+
13
+ dependencies = [
14
+ 'cerberus',
15
+ 'dask',
16
+ 'dask_jobqueue',
17
+ 'distributed',
18
+ 'numba>=0.57.0',
19
+ 'numpy',
20
+ 'psutil',
21
+ 'ipywidgets',
22
+ 'pytest',
23
+ 'pytest-cov',
24
+ 'pytest-html',
25
+ 'rich',
26
+ 'tqdm',
27
+ 'zarr',
28
+ 'bokeh',
29
+ 'jupyterlab',
30
+ 'pyarrow',
31
+ 'graphviz',
32
+ ]
33
+
34
+
35
+ [project.optional-dependencies]
36
+ docs = [
37
+ 'ipykernel',
38
+ 'ipympl',
39
+ 'ipython',
40
+ 'jupyter-client',
41
+ 'nbsphinx',
42
+ 'recommonmark',
43
+ 'scanpydoc',
44
+ 'sphinx-autoapi',
45
+ 'sphinx-autosummary-accessors',
46
+ 'sphinx_rtd_theme',
47
+ 'twine',
48
+ 'pandoc'
49
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,17 @@
1
+ import os
2
+
3
+ from importlib.metadata import version
4
+ from toolviper.utils.logger import setup_logger
5
+
6
+ __version__ = version("toolviper")
7
+
8
+ # Setup default logger instance for module
9
+ if not os.getenv("VIPER_LOGGER_NAME"):
10
+ os.environ["VIPER_LOGGER_NAME"] = "toolviper"
11
+ setup_logger(
12
+ logger_name="toolviper",
13
+ log_to_term=True,
14
+ log_to_file=False,
15
+ log_file="toolviper-logfile",
16
+ log_level="INFO",
17
+ )
@@ -0,0 +1,40 @@
1
+ {
2
+ "local_client":{
3
+ "cores":{
4
+ "type":["int"],
5
+ "nullable": true
6
+ },
7
+ "autorestrictor": {
8
+ "type": ["boolean"],
9
+ "nullable": true
10
+ },
11
+ "local_dir": {
12
+ "type": ["boolean"],
13
+ "nullable": true
14
+ },
15
+ "wait_for_workers": {
16
+ "type": ["boolean"],
17
+ "nullable": true
18
+ },
19
+ "serial_execution": {
20
+ "type": ["boolean"],
21
+ "nullable": true
22
+ },
23
+ "memory_limit":{
24
+ "type":["str"],
25
+ "nullable": true
26
+ },
27
+ "dask_local_dir":{
28
+ "type":["str"],
29
+ "nullable": true
30
+ },
31
+ "log_params":{
32
+ "type":["dict"],
33
+ "nullable": true
34
+ },
35
+ "worker_log_params":{
36
+ "type":["dict"],
37
+ "nullable": true
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,4 @@
1
+ from .client import local_client, slurm_cluster_client
2
+ from .client import get_thread_info, get_client, get_cluster
3
+
4
+ __all__ = [s for s in dir() if not s.startswith("_")]