Knot0 JSON Schemas and validation (Python)
Project description
knot0-schemas (Python)
Simple helpers to load Knot0 v2 JSON Schemas from the monorepo and validate manifests.
Usage
# Build schemas first
node knot0-src/schemas-v2/scripts/build.mjs
from knot0_schemas import validator
ok, errors = validator.validate('Component', {
'kind': 'Component',
'schema_version': '2.0',
'metadata': {'name': 'hello'},
'contract': {},
'body': {'execution': {'runner': 'python', 'run': 'print(1)'}}
})
print(ok, errors)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file knot0_schemas-2.0.3.tar.gz.
File metadata
- Download URL: knot0_schemas-2.0.3.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c392d6fb1b57c459a8c611fb6ae774f422d6f567ef8f127b2a2ea234ca917974
|
|
| MD5 |
4dfcd877d2441ef77aaa4f833d0386bd
|
|
| BLAKE2b-256 |
1463de8ffe570159084be6324606bc861f3a59eb93dfe6f84a90839b31a02ff6
|
Provenance
The following attestation bundles were made for knot0_schemas-2.0.3.tar.gz:
Publisher:
publish-packages.yml on knot0-com/knot0-main
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
knot0_schemas-2.0.3.tar.gz -
Subject digest:
c392d6fb1b57c459a8c611fb6ae774f422d6f567ef8f127b2a2ea234ca917974 - Sigstore transparency entry: 381806520
- Sigstore integration time:
-
Permalink:
knot0-com/knot0-main@51e320b21d2874c20a9897c69e6c684f222619d1 -
Branch / Tag:
refs/tags/v2.0.28 - Owner: https://github.com/knot0-com
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@51e320b21d2874c20a9897c69e6c684f222619d1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file knot0_schemas-2.0.3-py3-none-any.whl.
File metadata
- Download URL: knot0_schemas-2.0.3-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e7b508a02bc56b14e508315ff3a853f4ac027d5fa15fe2031060a994eecd714
|
|
| MD5 |
90822c3d0f09ad7ad5332e2eb42d2f66
|
|
| BLAKE2b-256 |
3f68ce04a5610117da67bc6f6c84daf1efa78741e34b1c3a75edaef8d352adfe
|
Provenance
The following attestation bundles were made for knot0_schemas-2.0.3-py3-none-any.whl:
Publisher:
publish-packages.yml on knot0-com/knot0-main
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
knot0_schemas-2.0.3-py3-none-any.whl -
Subject digest:
3e7b508a02bc56b14e508315ff3a853f4ac027d5fa15fe2031060a994eecd714 - Sigstore transparency entry: 381806542
- Sigstore integration time:
-
Permalink:
knot0-com/knot0-main@51e320b21d2874c20a9897c69e6c684f222619d1 -
Branch / Tag:
refs/tags/v2.0.28 - Owner: https://github.com/knot0-com
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@51e320b21d2874c20a9897c69e6c684f222619d1 -
Trigger Event:
push
-
Statement type: