awara 0.0.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.
- awara-0.0.0/.gitignore +8 -0
- awara-0.0.0/LICENSE +21 -0
- awara-0.0.0/PKG-INFO +49 -0
- awara-0.0.0/README.md +37 -0
- awara-0.0.0/js/LICENSE +21 -0
- awara-0.0.0/js/README.md +37 -0
- awara-0.0.0/pyproject.toml +19 -0
- awara-0.0.0/rust/LICENSE +21 -0
- awara-0.0.0/rust/README.md +37 -0
- awara-0.0.0/src/awara/__init__.py +39 -0
- awara-0.0.0/src/awara/recipe.schema.json +75 -0
awara-0.0.0/.gitignore
ADDED
awara-0.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Suhail Suhail
|
|
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.
|
awara-0.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: awara
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Portable creative workflow recipe schema and validator
|
|
5
|
+
Project-URL: Repository, https://github.com/orbyts/awara
|
|
6
|
+
Author: Suhail Suhail
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: >=3.11
|
|
10
|
+
Requires-Dist: jsonschema<5,>=4.23
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# Awara
|
|
14
|
+
|
|
15
|
+
Portable creative workflow recipes, schemas, and validation tools.
|
|
16
|
+
|
|
17
|
+
Version 0.0.0 is a functional experimental release: validate a recipe, export its JSON Schema, or use the validator as a library. It does not configure Resolve, ingest media, apply LUTs, or verify color accuracy. Settings are application-defined data, not checked against application APIs.
|
|
18
|
+
|
|
19
|
+
## CLI
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
awara validate examples/resolve-manual-dwg.json
|
|
23
|
+
awara schema
|
|
24
|
+
awara --version
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Exit codes: 0 valid/success, 1 schema validation failed, 2 file/JSON/usage error.
|
|
28
|
+
|
|
29
|
+
Python: `uv tool install awara`. JavaScript: `npx awara validate recipe.json`. Rust: `cargo install awara`. Each provides the same command name; install one CLI implementation per environment.
|
|
30
|
+
|
|
31
|
+
## Libraries and website use
|
|
32
|
+
|
|
33
|
+
Python: `from awara import validate, schema`.
|
|
34
|
+
JavaScript: `import {validate, schema} from 'awara'` (browser-bundler compatible).
|
|
35
|
+
Rust: `awara::validate(&serde_json::Value)` and `awara::SCHEMA`.
|
|
36
|
+
|
|
37
|
+
Validation is read-only and never executes recipe steps. The JavaScript library has no Node filesystem dependency; filesystem access is confined to its CLI. A website can use the same schema for forms and validation later.
|
|
38
|
+
|
|
39
|
+
## Ownership
|
|
40
|
+
|
|
41
|
+
Awara describes reusable application workflows. Kairo owns device identities/capture settings. Kestreel owns ingestion/project scaffolding and may consume Awara recipes. No paid LUTs, plugins, personal media, or credentials are distributed here.
|
|
42
|
+
|
|
43
|
+
## Development
|
|
44
|
+
|
|
45
|
+
`uv run python -m unittest discover -s tests`; `cd js && npm ci && npm test`; `cargo test --manifest-path rust/Cargo.toml`.
|
|
46
|
+
|
|
47
|
+
The canonical schema lives in `schemas/recipe.schema.json`; package copies must match. Shared contract fixtures test all three implementations. Schema version 1 is experimental and may evolve before a stable release.
|
|
48
|
+
|
|
49
|
+
MIT licensed.
|
awara-0.0.0/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Awara
|
|
2
|
+
|
|
3
|
+
Portable creative workflow recipes, schemas, and validation tools.
|
|
4
|
+
|
|
5
|
+
Version 0.0.0 is a functional experimental release: validate a recipe, export its JSON Schema, or use the validator as a library. It does not configure Resolve, ingest media, apply LUTs, or verify color accuracy. Settings are application-defined data, not checked against application APIs.
|
|
6
|
+
|
|
7
|
+
## CLI
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
awara validate examples/resolve-manual-dwg.json
|
|
11
|
+
awara schema
|
|
12
|
+
awara --version
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Exit codes: 0 valid/success, 1 schema validation failed, 2 file/JSON/usage error.
|
|
16
|
+
|
|
17
|
+
Python: `uv tool install awara`. JavaScript: `npx awara validate recipe.json`. Rust: `cargo install awara`. Each provides the same command name; install one CLI implementation per environment.
|
|
18
|
+
|
|
19
|
+
## Libraries and website use
|
|
20
|
+
|
|
21
|
+
Python: `from awara import validate, schema`.
|
|
22
|
+
JavaScript: `import {validate, schema} from 'awara'` (browser-bundler compatible).
|
|
23
|
+
Rust: `awara::validate(&serde_json::Value)` and `awara::SCHEMA`.
|
|
24
|
+
|
|
25
|
+
Validation is read-only and never executes recipe steps. The JavaScript library has no Node filesystem dependency; filesystem access is confined to its CLI. A website can use the same schema for forms and validation later.
|
|
26
|
+
|
|
27
|
+
## Ownership
|
|
28
|
+
|
|
29
|
+
Awara describes reusable application workflows. Kairo owns device identities/capture settings. Kestreel owns ingestion/project scaffolding and may consume Awara recipes. No paid LUTs, plugins, personal media, or credentials are distributed here.
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
`uv run python -m unittest discover -s tests`; `cd js && npm ci && npm test`; `cargo test --manifest-path rust/Cargo.toml`.
|
|
34
|
+
|
|
35
|
+
The canonical schema lives in `schemas/recipe.schema.json`; package copies must match. Shared contract fixtures test all three implementations. Schema version 1 is experimental and may evolve before a stable release.
|
|
36
|
+
|
|
37
|
+
MIT licensed.
|
awara-0.0.0/js/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Suhail Suhail
|
|
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.
|
awara-0.0.0/js/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Awara
|
|
2
|
+
|
|
3
|
+
Portable creative workflow recipes, schemas, and validation tools.
|
|
4
|
+
|
|
5
|
+
Version 0.0.0 is a functional experimental release: validate a recipe, export its JSON Schema, or use the validator as a library. It does not configure Resolve, ingest media, apply LUTs, or verify color accuracy. Settings are application-defined data, not checked against application APIs.
|
|
6
|
+
|
|
7
|
+
## CLI
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
awara validate examples/resolve-manual-dwg.json
|
|
11
|
+
awara schema
|
|
12
|
+
awara --version
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Exit codes: 0 valid/success, 1 schema validation failed, 2 file/JSON/usage error.
|
|
16
|
+
|
|
17
|
+
Python: `uv tool install awara`. JavaScript: `npx awara validate recipe.json`. Rust: `cargo install awara`. Each provides the same command name; install one CLI implementation per environment.
|
|
18
|
+
|
|
19
|
+
## Libraries and website use
|
|
20
|
+
|
|
21
|
+
Python: `from awara import validate, schema`.
|
|
22
|
+
JavaScript: `import {validate, schema} from 'awara'` (browser-bundler compatible).
|
|
23
|
+
Rust: `awara::validate(&serde_json::Value)` and `awara::SCHEMA`.
|
|
24
|
+
|
|
25
|
+
Validation is read-only and never executes recipe steps. The JavaScript library has no Node filesystem dependency; filesystem access is confined to its CLI. A website can use the same schema for forms and validation later.
|
|
26
|
+
|
|
27
|
+
## Ownership
|
|
28
|
+
|
|
29
|
+
Awara describes reusable application workflows. Kairo owns device identities/capture settings. Kestreel owns ingestion/project scaffolding and may consume Awara recipes. No paid LUTs, plugins, personal media, or credentials are distributed here.
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
`uv run python -m unittest discover -s tests`; `cd js && npm ci && npm test`; `cargo test --manifest-path rust/Cargo.toml`.
|
|
34
|
+
|
|
35
|
+
The canonical schema lives in `schemas/recipe.schema.json`; package copies must match. Shared contract fixtures test all three implementations. Schema version 1 is experimental and may evolve before a stable release.
|
|
36
|
+
|
|
37
|
+
MIT licensed.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "awara"
|
|
3
|
+
version = "0.0.0"
|
|
4
|
+
description = "Portable creative workflow recipe schema and validator"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
authors = [{name = "Suhail Suhail"}]
|
|
9
|
+
dependencies = ["jsonschema>=4.23,<5"]
|
|
10
|
+
[project.urls]
|
|
11
|
+
Repository = "https://github.com/orbyts/awara"
|
|
12
|
+
[project.scripts]
|
|
13
|
+
awara = "awara:main"
|
|
14
|
+
[build-system]
|
|
15
|
+
requires = ["hatchling"]
|
|
16
|
+
build-backend = "hatchling.build"
|
|
17
|
+
|
|
18
|
+
[tool.hatch.build.targets.sdist]
|
|
19
|
+
include = ["src/awara", "README.md", "LICENSE", "pyproject.toml"]
|
awara-0.0.0/rust/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Suhail Suhail
|
|
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,37 @@
|
|
|
1
|
+
# Awara
|
|
2
|
+
|
|
3
|
+
Portable creative workflow recipes, schemas, and validation tools.
|
|
4
|
+
|
|
5
|
+
Version 0.0.0 is a functional experimental release: validate a recipe, export its JSON Schema, or use the validator as a library. It does not configure Resolve, ingest media, apply LUTs, or verify color accuracy. Settings are application-defined data, not checked against application APIs.
|
|
6
|
+
|
|
7
|
+
## CLI
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
awara validate examples/resolve-manual-dwg.json
|
|
11
|
+
awara schema
|
|
12
|
+
awara --version
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Exit codes: 0 valid/success, 1 schema validation failed, 2 file/JSON/usage error.
|
|
16
|
+
|
|
17
|
+
Python: `uv tool install awara`. JavaScript: `npx awara validate recipe.json`. Rust: `cargo install awara`. Each provides the same command name; install one CLI implementation per environment.
|
|
18
|
+
|
|
19
|
+
## Libraries and website use
|
|
20
|
+
|
|
21
|
+
Python: `from awara import validate, schema`.
|
|
22
|
+
JavaScript: `import {validate, schema} from 'awara'` (browser-bundler compatible).
|
|
23
|
+
Rust: `awara::validate(&serde_json::Value)` and `awara::SCHEMA`.
|
|
24
|
+
|
|
25
|
+
Validation is read-only and never executes recipe steps. The JavaScript library has no Node filesystem dependency; filesystem access is confined to its CLI. A website can use the same schema for forms and validation later.
|
|
26
|
+
|
|
27
|
+
## Ownership
|
|
28
|
+
|
|
29
|
+
Awara describes reusable application workflows. Kairo owns device identities/capture settings. Kestreel owns ingestion/project scaffolding and may consume Awara recipes. No paid LUTs, plugins, personal media, or credentials are distributed here.
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
`uv run python -m unittest discover -s tests`; `cd js && npm ci && npm test`; `cargo test --manifest-path rust/Cargo.toml`.
|
|
34
|
+
|
|
35
|
+
The canonical schema lives in `schemas/recipe.schema.json`; package copies must match. Shared contract fixtures test all three implementations. Schema version 1 is experimental and may evolve before a stable release.
|
|
36
|
+
|
|
37
|
+
MIT licensed.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Portable Awara workflow recipe validation."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import json
|
|
5
|
+
from importlib.resources import files
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from jsonschema import Draft202012Validator
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def schema() -> dict:
|
|
12
|
+
return json.loads(files(__package__).joinpath("recipe.schema.json").read_text())
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def validate(recipe: object) -> list[str]:
|
|
16
|
+
"""Return schema errors; an empty list means structurally valid."""
|
|
17
|
+
return [
|
|
18
|
+
f"{list(e.absolute_path)}: {e.message}"
|
|
19
|
+
for e in Draft202012Validator(schema()).iter_errors(recipe)
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def main() -> int:
|
|
24
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
25
|
+
parser.add_argument("--version", action="version", version="awara 0.0.0")
|
|
26
|
+
sub = parser.add_subparsers(dest="command", required=True)
|
|
27
|
+
sub.add_parser("schema")
|
|
28
|
+
sub.add_parser("validate").add_argument("file", type=Path)
|
|
29
|
+
args = parser.parse_args()
|
|
30
|
+
if args.command == "schema":
|
|
31
|
+
print(json.dumps(schema(), indent=2))
|
|
32
|
+
return 0
|
|
33
|
+
try:
|
|
34
|
+
errors = validate(json.loads(args.file.read_text()))
|
|
35
|
+
except (OSError, ValueError) as exc:
|
|
36
|
+
print(f"Error: {exc}")
|
|
37
|
+
return 2
|
|
38
|
+
print("\n".join(errors) if errors else "Valid Awara recipe")
|
|
39
|
+
return int(bool(errors))
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/orbyts/awara/main/schemas/recipe.schema.json",
|
|
4
|
+
"title": "Awara workflow recipe v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"id",
|
|
10
|
+
"version",
|
|
11
|
+
"application",
|
|
12
|
+
"steps"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"schema_version": {
|
|
16
|
+
"const": 1
|
|
17
|
+
},
|
|
18
|
+
"id": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
21
|
+
},
|
|
22
|
+
"version": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
25
|
+
},
|
|
26
|
+
"description": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"application": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": [
|
|
33
|
+
"id"
|
|
34
|
+
],
|
|
35
|
+
"properties": {
|
|
36
|
+
"id": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1
|
|
39
|
+
},
|
|
40
|
+
"settings": {
|
|
41
|
+
"type": "object"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"steps": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"minItems": 1,
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": [
|
|
52
|
+
"id",
|
|
53
|
+
"mode",
|
|
54
|
+
"description"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"minLength": 1
|
|
60
|
+
},
|
|
61
|
+
"mode": {
|
|
62
|
+
"enum": [
|
|
63
|
+
"manual",
|
|
64
|
+
"automated"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"description": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 1
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|