midstate 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.
- midstate-0.0.1/LICENSE +21 -0
- midstate-0.0.1/PKG-INFO +55 -0
- midstate-0.0.1/README.md +29 -0
- midstate-0.0.1/pyproject.toml +79 -0
- midstate-0.0.1/pyproject.toml.orig +57 -0
- midstate-0.0.1/src/midstate/__init__.py +7 -0
- midstate-0.0.1/src/midstate/py.typed +0 -0
midstate-0.0.1/LICENSE
ADDED
|
@@ -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.
|
midstate-0.0.1/PKG-INFO
ADDED
|
@@ -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.
|
midstate-0.0.1/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# midstate
|
|
2
|
+
|
|
3
|
+
Declarative state for TrueNAS SCALE. Describe the state you want, see the plan, apply it.
|
|
4
|
+
|
|
5
|
+
> **Status: planning.** Version 0.0.1 holds the name. It has no features yet.
|
|
6
|
+
|
|
7
|
+
## Intent
|
|
8
|
+
|
|
9
|
+
- A core library with no dependency on Ansible. It compares the desired state with the
|
|
10
|
+
state of the NAS and makes a plan. Then it applies the plan.
|
|
11
|
+
- Ports and adapters. The core talks to TrueNAS through one port. The first adapters are the
|
|
12
|
+
WebSocket JSON-RPC API with an API key, and `midclt` over SSH.
|
|
13
|
+
- Front ends on top of the core: an Ansible collection, `waltervargas.midstate`, and a
|
|
14
|
+
command line, `midstate plan` and `midstate apply`.
|
|
15
|
+
- The minimum TrueNAS version is SCALE 25.10.
|
|
16
|
+
|
|
17
|
+
## Development
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
uv sync
|
|
21
|
+
uv run pytest
|
|
22
|
+
uv run ruff check . && uv run ruff format --check .
|
|
23
|
+
uv run mypy
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Licence
|
|
27
|
+
|
|
28
|
+
MIT. TrueNAS is a trademark of iXsystems, Inc. This project is not affiliated with
|
|
29
|
+
iXsystems.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "midstate"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "Declarative state for TrueNAS SCALE: describe it, plan the changes, apply them."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.11"
|
|
9
|
+
dependencies = []
|
|
10
|
+
keywords = [
|
|
11
|
+
"truenas",
|
|
12
|
+
"zfs",
|
|
13
|
+
"nas",
|
|
14
|
+
"infrastructure-as-code",
|
|
15
|
+
"ansible",
|
|
16
|
+
]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 1 - Planning",
|
|
19
|
+
"Intended Audience :: System Administrators",
|
|
20
|
+
"Operating System :: OS Independent",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3.13",
|
|
26
|
+
"Topic :: System :: Systems Administration",
|
|
27
|
+
"Topic :: System :: Filesystems",
|
|
28
|
+
"Typing :: Typed",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[[project.authors]]
|
|
32
|
+
name = "Walter Vargas"
|
|
33
|
+
email = "waltervargas@linux.com"
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Homepage = "https://github.com/waltervargas/midstate"
|
|
37
|
+
Source = "https://github.com/waltervargas/midstate"
|
|
38
|
+
Issues = "https://github.com/waltervargas/midstate/issues"
|
|
39
|
+
|
|
40
|
+
[build-system]
|
|
41
|
+
requires = ["uv_build>=0.13.12,<0.14.0"]
|
|
42
|
+
build-backend = "uv_build"
|
|
43
|
+
|
|
44
|
+
[dependency-groups]
|
|
45
|
+
dev = [
|
|
46
|
+
"mypy>=1.13",
|
|
47
|
+
"pytest>=8.3",
|
|
48
|
+
"ruff>=0.8",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
[tool.pytest.ini_options]
|
|
52
|
+
testpaths = ["tests"]
|
|
53
|
+
addopts = [
|
|
54
|
+
"--strict-markers",
|
|
55
|
+
"--strict-config",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[tool.ruff]
|
|
59
|
+
line-length = 100
|
|
60
|
+
target-version = "py311"
|
|
61
|
+
|
|
62
|
+
[tool.ruff.lint]
|
|
63
|
+
select = [
|
|
64
|
+
"E",
|
|
65
|
+
"F",
|
|
66
|
+
"W",
|
|
67
|
+
"I",
|
|
68
|
+
"B",
|
|
69
|
+
"UP",
|
|
70
|
+
"SIM",
|
|
71
|
+
"RUF",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
[tool.mypy]
|
|
75
|
+
strict = true
|
|
76
|
+
files = [
|
|
77
|
+
"src",
|
|
78
|
+
"tests",
|
|
79
|
+
]
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "midstate"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "Declarative state for TrueNAS SCALE: describe it, plan the changes, apply them."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "Walter Vargas", email = "waltervargas@linux.com" }
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.11"
|
|
12
|
+
dependencies = []
|
|
13
|
+
keywords = ["truenas", "zfs", "nas", "infrastructure-as-code", "ansible"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 1 - Planning",
|
|
16
|
+
"Intended Audience :: System Administrators",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
|
+
"Topic :: System :: Systems Administration",
|
|
24
|
+
"Topic :: System :: Filesystems",
|
|
25
|
+
"Typing :: Typed",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://github.com/waltervargas/midstate"
|
|
30
|
+
Source = "https://github.com/waltervargas/midstate"
|
|
31
|
+
Issues = "https://github.com/waltervargas/midstate/issues"
|
|
32
|
+
|
|
33
|
+
[build-system]
|
|
34
|
+
requires = ["uv_build>=0.13.12,<0.14.0"]
|
|
35
|
+
build-backend = "uv_build"
|
|
36
|
+
|
|
37
|
+
[dependency-groups]
|
|
38
|
+
dev = [
|
|
39
|
+
"mypy>=1.13",
|
|
40
|
+
"pytest>=8.3",
|
|
41
|
+
"ruff>=0.8",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[tool.pytest.ini_options]
|
|
45
|
+
testpaths = ["tests"]
|
|
46
|
+
addopts = ["--strict-markers", "--strict-config"]
|
|
47
|
+
|
|
48
|
+
[tool.ruff]
|
|
49
|
+
line-length = 100
|
|
50
|
+
target-version = "py311"
|
|
51
|
+
|
|
52
|
+
[tool.ruff.lint]
|
|
53
|
+
select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF"]
|
|
54
|
+
|
|
55
|
+
[tool.mypy]
|
|
56
|
+
strict = true
|
|
57
|
+
files = ["src", "tests"]
|
|
File without changes
|