Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

knot0_schemas-2.0.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

knot0_schemas-2.0.3-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

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

Hashes for knot0_schemas-2.0.3.tar.gz
Algorithm Hash digest
SHA256 c392d6fb1b57c459a8c611fb6ae774f422d6f567ef8f127b2a2ea234ca917974
MD5 4dfcd877d2441ef77aaa4f833d0386bd
BLAKE2b-256 1463de8ffe570159084be6324606bc861f3a59eb93dfe6f84a90839b31a02ff6

See more details on using hashes here.

Provenance

The following attestation bundles were made for knot0_schemas-2.0.3.tar.gz:

Publisher: publish-packages.yml on knot0-com/knot0-main

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for knot0_schemas-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3e7b508a02bc56b14e508315ff3a853f4ac027d5fa15fe2031060a994eecd714
MD5 90822c3d0f09ad7ad5332e2eb42d2f66
BLAKE2b-256 3f68ce04a5610117da67bc6f6c84daf1efa78741e34b1c3a75edaef8d352adfe

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page