Skip to main content

Validation helpers for SENPAI YAML rules, profiles, and connectors.

Project description

senpai-validators

Validation helpers for SENPAI YAML snippets.

Installation

pip install senpai-validators

Usage

from validator import validate_rule

result = validate_rule(
    """
    name: Sample rule
    description: Demo
    conversations: all
    oracle: "some predicate"
    """
)

print(result.is_valid)
print(result.errors)
print(result.warnings)

Also available:

  • validate_profile
  • validate_connector

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

senpai_validators-0.1.4.tar.gz (63.4 kB view details)

Uploaded Source

Built Distribution

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

senpai_validators-0.1.4-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file senpai_validators-0.1.4.tar.gz.

File metadata

  • Download URL: senpai_validators-0.1.4.tar.gz
  • Upload date:
  • Size: 63.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for senpai_validators-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a57fcb37cd20b61ed3a8c81120ffacfcb684c37419f4f4d807d4e0a4ef288556
MD5 359bc641c6e04b33db0d7db60e6a1d60
BLAKE2b-256 282f8a43defde8833893f14d0888ff7c193b27d5ddefc51de5779a09b98feaab

See more details on using hashes here.

File details

Details for the file senpai_validators-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: senpai_validators-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for senpai_validators-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 139201d1130a01565ee6d3968216294a0d6e8edf459a953296744c5cce982b38
MD5 b388c31a0da1f1ae83d0d413b205575a
BLAKE2b-256 5748adda4edb7055534d74870e0e72aa56eeb462fa37b139376c5398d54d240f

See more details on using hashes here.

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