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.1.tar.gz (31.8 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.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: senpai_validators-0.1.1.tar.gz
  • Upload date:
  • Size: 31.8 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.1.tar.gz
Algorithm Hash digest
SHA256 3c0a497f5b21c4ff35dcce6bc73511a19b193ac709ea9a0c0cdd5125784dbe06
MD5 37342d328fc7ede84595660c3151f1d4
BLAKE2b-256 00e6158be45ed0a63dc102294b285e13539481d8cb7e9b8901941336251ff2f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: senpai_validators-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d84bfcec09fa524c782efa7c717a489e9677ecaa42d24a7793896603b854fe5
MD5 2a1eb107fabcd55725ea8daf4a8299e0
BLAKE2b-256 c12327be97b04dc3ca88d1384db2f5579a05a676a7573eeb6d5fc6f44d7b5433

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