gridworks-base 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 (41) hide show
  1. gridworks_base-0.0.1/LICENSE +21 -0
  2. gridworks_base-0.0.1/PKG-INFO +98 -0
  3. gridworks_base-0.0.1/README.md +73 -0
  4. gridworks_base-0.0.1/pyproject.toml +87 -0
  5. gridworks_base-0.0.1/src/gwbase/.DS_Store +0 -0
  6. gridworks_base-0.0.1/src/gwbase/__init__.py +8 -0
  7. gridworks_base-0.0.1/src/gwbase/actor_base.py +1323 -0
  8. gridworks_base-0.0.1/src/gwbase/config.py +244 -0
  9. gridworks_base-0.0.1/src/gwbase/data_classes/.DS_Store +0 -0
  10. gridworks_base-0.0.1/src/gwbase/data_classes/__init__.py +0 -0
  11. gridworks_base-0.0.1/src/gwbase/data_classes/base_g_node.py +607 -0
  12. gridworks_base-0.0.1/src/gwbase/data_classes/g_node.py +171 -0
  13. gridworks_base-0.0.1/src/gwbase/data_classes/g_node_instance.py +191 -0
  14. gridworks_base-0.0.1/src/gwbase/data_classes/g_node_strategy.py +122 -0
  15. gridworks_base-0.0.1/src/gwbase/data_classes/gps_point.py +27 -0
  16. gridworks_base-0.0.1/src/gwbase/data_classes/supervisor_container.py +39 -0
  17. gridworks_base-0.0.1/src/gwbase/enums/.DS_Store +0 -0
  18. gridworks_base-0.0.1/src/gwbase/enums/__init__.py +56 -0
  19. gridworks_base-0.0.1/src/gwbase/enums/core_g_node_role.py +167 -0
  20. gridworks_base-0.0.1/src/gwbase/enums/g_node_role.py +206 -0
  21. gridworks_base-0.0.1/src/gwbase/enums/g_node_status.py +152 -0
  22. gridworks_base-0.0.1/src/gwbase/enums/gni_status.py +148 -0
  23. gridworks_base-0.0.1/src/gwbase/enums/message_category.py +169 -0
  24. gridworks_base-0.0.1/src/gwbase/enums/message_category_symbol.py +168 -0
  25. gridworks_base-0.0.1/src/gwbase/enums/strategy_name.py +175 -0
  26. gridworks_base-0.0.1/src/gwbase/enums/supervisor_container_status.py +161 -0
  27. gridworks_base-0.0.1/src/gwbase/enums/universe_type.py +142 -0
  28. gridworks_base-0.0.1/src/gwbase/py.typed +0 -0
  29. gridworks_base-0.0.1/src/gwbase/types/.DS_Store +0 -0
  30. gridworks_base-0.0.1/src/gwbase/types/__init__.py +38 -0
  31. gridworks_base-0.0.1/src/gwbase/types/base_asl_types.py +75 -0
  32. gridworks_base-0.0.1/src/gwbase/types/base_g_node_gt.py +515 -0
  33. gridworks_base-0.0.1/src/gwbase/types/g_node_gt.py +583 -0
  34. gridworks_base-0.0.1/src/gwbase/types/g_node_instance_gt.py +390 -0
  35. gridworks_base-0.0.1/src/gwbase/types/heartbeat_a.py +198 -0
  36. gridworks_base-0.0.1/src/gwbase/types/old_versions/__init__.py +0 -0
  37. gridworks_base-0.0.1/src/gwbase/types/old_versions/heartbeat_a_001.py +67 -0
  38. gridworks_base-0.0.1/src/gwbase/types/ready.py +257 -0
  39. gridworks_base-0.0.1/src/gwbase/types/sim_timestep.py +342 -0
  40. gridworks_base-0.0.1/src/gwbase/types/super_starter.py +241 -0
  41. gridworks_base-0.0.1/src/gwbase/types/supervisor_container_gt.py +326 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright © 2022 GridWorks
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.1
2
+ Name: gridworks-base
3
+ Version: 0.0.1
4
+ Summary: Gridworks Base
5
+ Home-page: https://github.com/thegridelectric/gridworks-base
6
+ License: MIT
7
+ Author: GridWorks
8
+ Author-email: gridworks@gridworks-consulting.com
9
+ Requires-Python: >=3.11,<4.0
10
+ Classifier: Development Status :: 2 - Pre-Alpha
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Requires-Dist: gridworks (>=1.1.3,<2.0.0)
16
+ Requires-Dist: pika (>=1.3.2,<2.0.0)
17
+ Requires-Dist: py-algorand-sdk (>=2.6.1)
18
+ Requires-Dist: pydantic (>=1.10.2,<2.0.0)
19
+ Requires-Dist: python-dotenv (>=1.0.0)
20
+ Project-URL: Changelog, https://github.com/thegridelectric/gridworks-base/releases
21
+ Project-URL: Documentation, https://gridworks-base.readthedocs.io
22
+ Project-URL: Repository, https://github.com/thegridelectric/gridworks-base
23
+ Description-Content-Type: text/markdown
24
+
25
+ # Gridworks Base
26
+
27
+ [![PyPI](https://img.shields.io/pypi/v/gridworks-base.svg)][pypi_]
28
+ [![Status](https://img.shields.io/pypi/status/gridworks-base.svg)][status]
29
+ [![Python Version](https://img.shields.io/pypi/pyversions/gridworks-base)][python version]
30
+ [![License](https://img.shields.io/pypi/l/gridworks-base)][license]
31
+
32
+ [![Read the documentation at https://gridworks-base.readthedocs.io/](https://img.shields.io/readthedocs/gridworks-base/latest.svg?label=Read%20the%20Docs)][read the docs]
33
+ [![Tests](https://github.com/thegridelectric/gridworks-base/workflows/Tests/badge.svg)][tests]
34
+ [![Codecov](https://codecov.io/gh/thegridelectric/gridworks-base/branch/main/graph/badge.svg)][codecov]
35
+
36
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
37
+ [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
38
+
39
+ [pypi_]: https://pypi.org/project/gridworks-base/
40
+ [status]: https://pypi.org/project/gridworks-base/
41
+ [python version]: https://pypi.org/project/gridworks-base
42
+ [read the docs]: https://gridworks-base.readthedocs.io/
43
+ [tests]: https://github.com/thegridelectric/gridworks-base/actions?workflow=Tests
44
+ [codecov]: https://app.codecov.io/gh/thegridelectric/gridworks-base
45
+ [pre-commit]: https://github.com/pre-commit/pre-commit
46
+ [black]: https://github.com/psf/black
47
+
48
+ ## Features
49
+
50
+ - TODO
51
+
52
+ ## Requirements
53
+
54
+ - TODO
55
+
56
+ ## Installation
57
+
58
+ You can install _Gridworks Base_ via [pip] from [PyPI]:
59
+
60
+ ```console
61
+ $ pip install gridworks-base
62
+ ```
63
+
64
+ ## Usage
65
+
66
+ Please see the [Command-line Reference] for details.
67
+
68
+ ## Contributing
69
+
70
+ Contributions are very welcome.
71
+ To learn more, see the [Contributor Guide].
72
+
73
+ ## License
74
+
75
+ Distributed under the terms of the [MIT license][license],
76
+ _Gridworks Base_ is free and open source software.
77
+
78
+ ## Issues
79
+
80
+ If you encounter any problems,
81
+ please [file an issue] along with a detailed description.
82
+
83
+ ## Credits
84
+
85
+ This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.
86
+
87
+ [@cjolowicz]: https://github.com/cjolowicz
88
+ [pypi]: https://pypi.org/
89
+ [hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
90
+ [file an issue]: https://github.com/thegridelectric/gridworks-base/issues
91
+ [pip]: https://pip.pypa.io/
92
+
93
+ <!-- github-only -->
94
+
95
+ [license]: https://github.com/thegridelectric/gridworks-base/blob/main/LICENSE
96
+ [contributor guide]: https://github.com/thegridelectric/gridworks-base/blob/main/CONTRIBUTING.md
97
+ [command-line reference]: https://gridworks-base.readthedocs.io/en/latest/usage.html
98
+
@@ -0,0 +1,73 @@
1
+ # Gridworks Base
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/gridworks-base.svg)][pypi_]
4
+ [![Status](https://img.shields.io/pypi/status/gridworks-base.svg)][status]
5
+ [![Python Version](https://img.shields.io/pypi/pyversions/gridworks-base)][python version]
6
+ [![License](https://img.shields.io/pypi/l/gridworks-base)][license]
7
+
8
+ [![Read the documentation at https://gridworks-base.readthedocs.io/](https://img.shields.io/readthedocs/gridworks-base/latest.svg?label=Read%20the%20Docs)][read the docs]
9
+ [![Tests](https://github.com/thegridelectric/gridworks-base/workflows/Tests/badge.svg)][tests]
10
+ [![Codecov](https://codecov.io/gh/thegridelectric/gridworks-base/branch/main/graph/badge.svg)][codecov]
11
+
12
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
13
+ [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
14
+
15
+ [pypi_]: https://pypi.org/project/gridworks-base/
16
+ [status]: https://pypi.org/project/gridworks-base/
17
+ [python version]: https://pypi.org/project/gridworks-base
18
+ [read the docs]: https://gridworks-base.readthedocs.io/
19
+ [tests]: https://github.com/thegridelectric/gridworks-base/actions?workflow=Tests
20
+ [codecov]: https://app.codecov.io/gh/thegridelectric/gridworks-base
21
+ [pre-commit]: https://github.com/pre-commit/pre-commit
22
+ [black]: https://github.com/psf/black
23
+
24
+ ## Features
25
+
26
+ - TODO
27
+
28
+ ## Requirements
29
+
30
+ - TODO
31
+
32
+ ## Installation
33
+
34
+ You can install _Gridworks Base_ via [pip] from [PyPI]:
35
+
36
+ ```console
37
+ $ pip install gridworks-base
38
+ ```
39
+
40
+ ## Usage
41
+
42
+ Please see the [Command-line Reference] for details.
43
+
44
+ ## Contributing
45
+
46
+ Contributions are very welcome.
47
+ To learn more, see the [Contributor Guide].
48
+
49
+ ## License
50
+
51
+ Distributed under the terms of the [MIT license][license],
52
+ _Gridworks Base_ is free and open source software.
53
+
54
+ ## Issues
55
+
56
+ If you encounter any problems,
57
+ please [file an issue] along with a detailed description.
58
+
59
+ ## Credits
60
+
61
+ This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.
62
+
63
+ [@cjolowicz]: https://github.com/cjolowicz
64
+ [pypi]: https://pypi.org/
65
+ [hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
66
+ [file an issue]: https://github.com/thegridelectric/gridworks-base/issues
67
+ [pip]: https://pip.pypa.io/
68
+
69
+ <!-- github-only -->
70
+
71
+ [license]: https://github.com/thegridelectric/gridworks-base/blob/main/LICENSE
72
+ [contributor guide]: https://github.com/thegridelectric/gridworks-base/blob/main/CONTRIBUTING.md
73
+ [command-line reference]: https://gridworks-base.readthedocs.io/en/latest/usage.html
@@ -0,0 +1,87 @@
1
+ [tool.poetry]
2
+ name = "gridworks-base"
3
+ version = "0.0.1"
4
+ description = "Gridworks Base"
5
+ authors = ["GridWorks <gridworks@gridworks-consulting.com>"]
6
+ license = "MIT"
7
+ readme = "README.md"
8
+ homepage = "https://github.com/thegridelectric/gridworks-base"
9
+ repository = "https://github.com/thegridelectric/gridworks-base"
10
+ documentation = "https://gridworks-base.readthedocs.io"
11
+ packages = [
12
+ { include = "gwbase", from = "src" },
13
+ ]
14
+ classifiers = [
15
+ "Development Status :: 2 - Pre-Alpha",
16
+ ]
17
+
18
+ [tool.poetry.urls]
19
+ Changelog = "https://github.com/thegridelectric/gridworks-base/releases"
20
+
21
+ [tool.poetry.dependencies]
22
+ python = ">=3.11, <4.0"
23
+ python-dotenv = ">=1.0.0"
24
+ pydantic = "^1.10.2"
25
+
26
+ pika = "^1.3.2"
27
+ py-algorand-sdk = ">=2.6.1"
28
+ gridworks = "^1.1.3"
29
+ #gridworks = {path="../gridworks", develop=true}
30
+
31
+ [tool.poetry.dev-dependencies]
32
+ Pygments = ">=2.10.0"
33
+ black = ">=21.10b0"
34
+ coverage = {extras = ["toml"], version = ">=6.2"}
35
+ darglint = ">=1.8.1"
36
+ flake8 = ">=4.0.1"
37
+ flake8-bandit = ">=2.1.2"
38
+ flake8-bugbear = ">=21.9.2"
39
+ flake8-docstrings = ">=1.6.0"
40
+ flake8-rst-docstrings = ">=0.2.5"
41
+ furo = ">=2021.11.12"
42
+ isort = ">=5.10.1"
43
+ mypy = ">=0.930"
44
+ pep8-naming = ">=0.12.1"
45
+ pre-commit = ">=2.16.0"
46
+ pre-commit-hooks = ">=4.1.0"
47
+ pytest = ">=6.2.5"
48
+ pyupgrade = ">=2.29.1"
49
+ safety = ">=1.10.3"
50
+ sphinx = ">=4.3.2"
51
+ sphinx-autobuild = ">=2021.3.14"
52
+ sphinx-click = ">=3.0.2"
53
+ typeguard = ">=2.13.3"
54
+ xdoctest = {extras = ["colors"], version = ">=0.15.10"}
55
+ myst-parser = {version = ">=0.16.1"}
56
+
57
+ [tool.poetry.scripts]
58
+ gridworks-base = "gwbase.__main__:main"
59
+
60
+ [tool.coverage.paths]
61
+ source = ["src", "*/site-packages"]
62
+ tests = ["tests", "*/tests"]
63
+
64
+ [tool.coverage.run]
65
+ branch = true
66
+ source = ["gwbase", "tests"]
67
+
68
+ [tool.coverage.report]
69
+ show_missing = true
70
+ fail_under = 100
71
+
72
+ [tool.isort]
73
+ profile = "black"
74
+ force_single_line = true
75
+ lines_after_imports = 2
76
+
77
+ [tool.mypy]
78
+ strict = true
79
+ warn_unreachable = true
80
+ pretty = true
81
+ show_column_numbers = true
82
+ show_error_codes = true
83
+ show_error_context = true
84
+
85
+ [build-system]
86
+ requires = ["poetry-core>=1.0.0"]
87
+ build-backend = "poetry.core.masonry.api"
@@ -0,0 +1,8 @@
1
+ """Gridworks Base for rabbit actors."""
2
+
3
+ import gw.errors as errors
4
+
5
+ from gwbase.actor_base import ActorBase
6
+
7
+
8
+ __all__ = ["errors", "ActorBase"]