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.0.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.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file knot0_schemas-2.0.0.tar.gz.

File metadata

  • Download URL: knot0_schemas-2.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2c4547fede65c18c7cc27cc717dad67d139547eddc02ebd83dcfb02969509e6d
MD5 e1146d931c97a0e3c51fbacbc36f7a9d
BLAKE2b-256 6b38bbd5cd82b138dce7b5d3a9fdcfff508d288280e09f118aed7ea2d023b60a

See more details on using hashes here.

Provenance

The following attestation bundles were made for knot0_schemas-2.0.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: knot0_schemas-2.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5c610f07d9236d6ad2568662deffa01d0c4fdb3416e701f4830d7356200571d
MD5 c64e1e4007dd2d8d41e852fad2071baa
BLAKE2b-256 0307dadec536c388cfad99cb060e961bc838d54938f65defc61695f61b65ec13

See more details on using hashes here.

Provenance

The following attestation bundles were made for knot0_schemas-2.0.0-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