overture-schema-cli 0.1.1.dev0__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,38 @@
1
+ Metadata-Version: 2.4
2
+ Name: overture-schema-cli
3
+ Version: 0.1.1.dev0
4
+ Summary: Command-line interface for Overture Maps schema validation and JSON Schema generation
5
+ License-Expression: MIT
6
+ Requires-Dist: overture-schema-common>=0.1.1
7
+ Requires-Dist: overture-schema-system>=0.1.1
8
+ Requires-Dist: pydantic>=2.13.0
9
+ Requires-Dist: pyyaml>=6.0.2
10
+ Requires-Dist: click>=8.1
11
+ Requires-Dist: rich>=13.0
12
+ Requires-Dist: yamlcore>=0.0.4
13
+ Maintainer: Overture Maps Schema Working Group
14
+ Requires-Python: >=3.10
15
+ Project-URL: Homepage, https://overturemaps.org
16
+ Project-URL: Source, https://github.com/OvertureMaps/schema
17
+ Project-URL: Issues, https://github.com/OvertureMaps/schema/issues
18
+ Description-Content-Type: text/markdown
19
+
20
+ # overture-schema-cli
21
+
22
+ Command-line interface for validating and working with Overture Maps schema.
23
+
24
+ This package provides the `overture-schema` command for validating GeoJSON and YAML files against Overture Maps schemas.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install overture-schema-cli
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```bash
35
+ overture-schema validate <file>
36
+ ```
37
+
38
+ See the main [overture-schema](https://github.com/OvertureMaps/schema) documentation for more details.
@@ -0,0 +1,19 @@
1
+ # overture-schema-cli
2
+
3
+ Command-line interface for validating and working with Overture Maps schema.
4
+
5
+ This package provides the `overture-schema` command for validating GeoJSON and YAML files against Overture Maps schemas.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pip install overture-schema-cli
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ overture-schema validate <file>
17
+ ```
18
+
19
+ See the main [overture-schema](https://github.com/OvertureMaps/schema) documentation for more details.
@@ -0,0 +1,47 @@
1
+ [project]
2
+ dependencies = [
3
+ "overture-schema-common>=0.1.1",
4
+ "overture-schema-system>=0.1.1",
5
+ "pydantic>=2.13.0",
6
+ "pyyaml>=6.0.2",
7
+ "click>=8.1",
8
+ "rich>=13.0",
9
+ "yamlcore>=0.0.4",
10
+ ]
11
+ description = "Command-line interface for Overture Maps schema validation and JSON Schema generation"
12
+ version = "0.1.1.dev0"
13
+ license = "MIT"
14
+ name = "overture-schema-cli"
15
+ readme = "README.md"
16
+ requires-python = ">=3.10"
17
+
18
+ [[project.maintainers]]
19
+ name = "Overture Maps Schema Working Group"
20
+
21
+ [project.urls]
22
+ Homepage = "https://overturemaps.org"
23
+ Source = "https://github.com/OvertureMaps/schema"
24
+ Issues = "https://github.com/OvertureMaps/schema/issues"
25
+
26
+ [project.scripts]
27
+ overture-schema = "overture.schema.cli:cli"
28
+
29
+ [tool.uv.sources.overture-schema-common]
30
+ workspace = true
31
+
32
+ [tool.uv.sources.overture-schema-system]
33
+ workspace = true
34
+
35
+ [tool.uv.build-backend]
36
+ module-name = "overture.schema.cli"
37
+
38
+ [build-system]
39
+ requires = ["uv_build>=0.11.32,<0.13"]
40
+ build-backend = "uv_build"
41
+
42
+ [dependency-groups]
43
+ dev = [
44
+ "pytest>=9.0.0",
45
+ "ruff>=0.16.0",
46
+ "mypy>=1.17.0",
47
+ ]
@@ -0,0 +1,45 @@
1
+ [project]
2
+ maintainers = [
3
+ {name = "Overture Maps Schema Working Group"},
4
+ ]
5
+ dependencies = [
6
+ "overture-schema-common>=0.1.1",
7
+ "overture-schema-system>=0.1.1",
8
+ "pydantic>=2.13.0",
9
+ "pyyaml>=6.0.2",
10
+ "click>=8.1",
11
+ "rich>=13.0",
12
+ "yamlcore>=0.0.4",
13
+ ]
14
+ description = "Command-line interface for Overture Maps schema validation and JSON Schema generation"
15
+ version = "0.1.1.dev0"
16
+ license = "MIT"
17
+ name = "overture-schema-cli"
18
+ readme = "README.md"
19
+ requires-python = ">=3.10"
20
+
21
+ [project.urls]
22
+ Homepage = "https://overturemaps.org"
23
+ Source = "https://github.com/OvertureMaps/schema"
24
+ Issues = "https://github.com/OvertureMaps/schema/issues"
25
+
26
+ [tool.uv.sources]
27
+ overture-schema-common = { workspace = true }
28
+ overture-schema-system = { workspace = true }
29
+
30
+ [build-system]
31
+ requires = ["uv_build>=0.11.32,<0.13"]
32
+ build-backend = "uv_build"
33
+
34
+ [dependency-groups]
35
+ dev = [
36
+ "pytest>=9.0.0",
37
+ "ruff>=0.16.0",
38
+ "mypy>=1.17.0",
39
+ ]
40
+
41
+ [tool.uv.build-backend]
42
+ module-name = "overture.schema.cli"
43
+
44
+ [project.scripts]
45
+ overture-schema = "overture.schema.cli:cli"
@@ -0,0 +1,29 @@
1
+ """CLI subpackage for overture-schema."""
2
+
3
+ from .commands import (
4
+ cli,
5
+ create_union_type_from_models,
6
+ handle_generic_error,
7
+ handle_validation_error,
8
+ load_input,
9
+ perform_validation,
10
+ resolve_types,
11
+ )
12
+ from .types import (
13
+ ErrorLocation,
14
+ UnionType,
15
+ ValidationErrorDict,
16
+ )
17
+
18
+ __all__ = [
19
+ "cli",
20
+ "create_union_type_from_models",
21
+ "handle_generic_error",
22
+ "handle_validation_error",
23
+ "load_input",
24
+ "perform_validation",
25
+ "resolve_types",
26
+ "ErrorLocation",
27
+ "UnionType",
28
+ "ValidationErrorDict",
29
+ ]
@@ -0,0 +1,6 @@
1
+ """Support for python -m overture.schema.cli."""
2
+
3
+ from .commands import cli
4
+
5
+ if __name__ == "__main__":
6
+ cli()