index.toml 0.1.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.
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.3
2
+ Name: index.toml
3
+ Version: 0.1.0
4
+ Summary: Python API and CLI for ecosystem-neutral package indexes
5
+ Classifier: Programming Language :: Python :: 3.10
6
+ Classifier: Programming Language :: Python :: 3.11
7
+ Classifier: Programming Language :: Python :: 3.12
8
+ Classifier: Programming Language :: Python :: 3.13
9
+ Classifier: Programming Language :: Python :: 3.14
10
+ Classifier: Programming Language :: Python :: 3.15
11
+ Requires-Dist: index-toml-cli>=0.1.0,<0.2
12
+ Requires-Dist: index-toml-core>=0.1.0,<0.2
13
+ Requires-Python: >=3.10, <3.16
14
+ Project-URL: Repository, https://github.com/groupsum/index.toml
15
+ Description-Content-Type: text/markdown
16
+
17
+ # index.toml
18
+
19
+ Use `index-toml validate` to validate `pkgs/index.toml` from the repository root. The global `--file` option selects another path. Run `index-toml --help` for the available commands.
20
+
21
+ The `index-toml` entry point forwards to the CLI implementation in `index.toml-cli`.
22
+
23
+ `from index_toml import IndexFile` provides file-backed validation and CRUD for layers and packages. Call `initialize()` to create an empty index. Add operations take an ID and explicit order. Package creation also takes a layer and path. Updates patch fields and use `None` to remove optional fields. Read operations return decoded dictionaries.
24
+
25
+ Each edit locks the index for cooperating writers, validates the whole candidate document, and replaces the file atomically. To delete a referenced record, update the records that refer to it first.
@@ -0,0 +1,9 @@
1
+ # index.toml
2
+
3
+ Use `index-toml validate` to validate `pkgs/index.toml` from the repository root. The global `--file` option selects another path. Run `index-toml --help` for the available commands.
4
+
5
+ The `index-toml` entry point forwards to the CLI implementation in `index.toml-cli`.
6
+
7
+ `from index_toml import IndexFile` provides file-backed validation and CRUD for layers and packages. Call `initialize()` to create an empty index. Add operations take an ID and explicit order. Package creation also takes a layer and path. Updates patch fields and use `None` to remove optional fields. Read operations return decoded dictionaries.
8
+
9
+ Each edit locks the index for cooperating writers, validates the whole candidate document, and replaces the file atomically. To delete a referenced record, update the records that refer to it first.
@@ -0,0 +1,43 @@
1
+ [project]
2
+ name = "index.toml"
3
+ version = "0.1.0"
4
+ description = "Python API and CLI for ecosystem-neutral package indexes"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10,<3.16"
7
+ classifiers = [
8
+ "Programming Language :: Python :: 3.10",
9
+ "Programming Language :: Python :: 3.11",
10
+ "Programming Language :: Python :: 3.12",
11
+ "Programming Language :: Python :: 3.13",
12
+ "Programming Language :: Python :: 3.14",
13
+ "Programming Language :: Python :: 3.15",
14
+ ]
15
+ dependencies = [
16
+ "index.toml-cli>=0.1.0,<0.2",
17
+ "index.toml-core>=0.1.0,<0.2",
18
+ ]
19
+
20
+ [project.scripts]
21
+ index-toml = "index_toml.cli:main"
22
+
23
+ [project.urls]
24
+ Repository = "https://github.com/groupsum/index.toml"
25
+
26
+ [[tool.uv.cache-keys]]
27
+ file = "pyproject.toml"
28
+
29
+ [[tool.uv.cache-keys]]
30
+ file = "README.md"
31
+
32
+ [[tool.uv.cache-keys]]
33
+ file = "src/**/*"
34
+
35
+ [tool.uv.sources."index.toml-cli"]
36
+ workspace = true
37
+
38
+ [tool.uv.sources."index.toml-core"]
39
+ workspace = true
40
+
41
+ [build-system]
42
+ requires = ["uv_build>=0.9,<1"]
43
+ build-backend = "uv_build"
@@ -0,0 +1,35 @@
1
+ [project]
2
+ name = "index.toml"
3
+ version = "0.1.0"
4
+ description = "Python API and CLI for ecosystem-neutral package indexes"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10,<3.16"
7
+ classifiers = [
8
+ "Programming Language :: Python :: 3.10",
9
+ "Programming Language :: Python :: 3.11",
10
+ "Programming Language :: Python :: 3.12",
11
+ "Programming Language :: Python :: 3.13",
12
+ "Programming Language :: Python :: 3.14",
13
+ "Programming Language :: Python :: 3.15",
14
+ ]
15
+ dependencies = [
16
+ "index.toml-cli>=0.1.0,<0.2",
17
+ "index.toml-core>=0.1.0,<0.2",
18
+ ]
19
+
20
+ [project.scripts]
21
+ index-toml = "index_toml.cli:main"
22
+
23
+ [project.urls]
24
+ Repository = "https://github.com/groupsum/index.toml"
25
+
26
+ [tool.uv]
27
+ cache-keys = [{ file = "pyproject.toml" }, { file = "README.md" }, { file = "src/**/*" }]
28
+
29
+ [tool.uv.sources]
30
+ "index.toml-cli" = { workspace = true }
31
+ "index.toml-core" = { workspace = true }
32
+
33
+ [build-system]
34
+ requires = ["uv_build>=0.9,<1"]
35
+ build-backend = "uv_build"
@@ -0,0 +1,9 @@
1
+ """Public Python API for reading and editing package indexes."""
2
+
3
+ from index_toml_core import IndexFile, IndexValidationError, load, loads
4
+ from index_toml_core.workspace import WorkspaceCheck, WorkspaceDifference, check_workspace
5
+
6
+ __all__ = [
7
+ "IndexFile", "IndexValidationError", "WorkspaceCheck", "WorkspaceDifference",
8
+ "check_workspace", "load", "loads",
9
+ ]
@@ -0,0 +1,5 @@
1
+ """Console entry point forwarded from the CLI layer."""
2
+
3
+ from index_toml_cli import main
4
+
5
+ __all__ = ["main"]