midstate 0.0.1__py3-none-any.whl

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.
midstate/__init__.py ADDED
@@ -0,0 +1,7 @@
1
+ """Declarative state for TrueNAS SCALE."""
2
+
3
+ from importlib.metadata import version
4
+
5
+ __version__ = version("midstate")
6
+
7
+ __all__ = ["__version__"]
midstate/py.typed ADDED
File without changes
@@ -0,0 +1,55 @@
1
+ Metadata-Version: 2.4
2
+ Name: midstate
3
+ Version: 0.0.1
4
+ Summary: Declarative state for TrueNAS SCALE: describe it, plan the changes, apply them.
5
+ Keywords: truenas,zfs,nas,infrastructure-as-code,ansible
6
+ Author: Walter Vargas
7
+ Author-email: Walter Vargas <waltervargas@linux.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 1 - Planning
11
+ Classifier: Intended Audience :: System Administrators
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: System :: Systems Administration
19
+ Classifier: Topic :: System :: Filesystems
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Project-URL: Homepage, https://github.com/waltervargas/midstate
23
+ Project-URL: Source, https://github.com/waltervargas/midstate
24
+ Project-URL: Issues, https://github.com/waltervargas/midstate/issues
25
+ Description-Content-Type: text/markdown
26
+
27
+ # midstate
28
+
29
+ Declarative state for TrueNAS SCALE. Describe the state you want, see the plan, apply it.
30
+
31
+ > **Status: planning.** Version 0.0.1 holds the name. It has no features yet.
32
+
33
+ ## Intent
34
+
35
+ - A core library with no dependency on Ansible. It compares the desired state with the
36
+ state of the NAS and makes a plan. Then it applies the plan.
37
+ - Ports and adapters. The core talks to TrueNAS through one port. The first adapters are the
38
+ WebSocket JSON-RPC API with an API key, and `midclt` over SSH.
39
+ - Front ends on top of the core: an Ansible collection, `waltervargas.midstate`, and a
40
+ command line, `midstate plan` and `midstate apply`.
41
+ - The minimum TrueNAS version is SCALE 25.10.
42
+
43
+ ## Development
44
+
45
+ ```bash
46
+ uv sync
47
+ uv run pytest
48
+ uv run ruff check . && uv run ruff format --check .
49
+ uv run mypy
50
+ ```
51
+
52
+ ## Licence
53
+
54
+ MIT. TrueNAS is a trademark of iXsystems, Inc. This project is not affiliated with
55
+ iXsystems.
@@ -0,0 +1,6 @@
1
+ midstate/__init__.py,sha256=3FTOqhyBmtcNExADPzHNY-P-lLw2zkaJ5eAO4Hy6irc,145
2
+ midstate/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ midstate-0.0.1.dist-info/licenses/LICENSE,sha256=fC_3H5PEITZM0ueN_aSRCnxVFXFpV3I_wJa0y9KYhXA,1070
4
+ midstate-0.0.1.dist-info/WHEEL,sha256=kiPuyMTIXtn3KwIlb6zIkrxfbMkdQGyzN-kjAsvva48,81
5
+ midstate-0.0.1.dist-info/METADATA,sha256=cQjL8oI24NQVGcwoNO1Zramb6fZ-qQvndR_XmT8mA_E,2020
6
+ midstate-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.13.12
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Walter Vargas
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.