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.3.tar.gz (63.2 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.3-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: senpai_validators-0.1.3.tar.gz
  • Upload date:
  • Size: 63.2 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.3.tar.gz
Algorithm Hash digest
SHA256 5367347f697b50789f066334c709985c6206f1d86e50b737c6fd4629106b5223
MD5 989c49463061dd7d121add6d77fbfa0e
BLAKE2b-256 de08a2762340a6e473b27c4a46d669979e4ff633ae36d735d3cfaef3514a5344

See more details on using hashes here.

File details

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

File metadata

  • Download URL: senpai_validators-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b91cb34d795fcb29a52c5a2843ac8d2edba47656860af6988f8ff90dd8d111f
MD5 138003ddef25938861ac9dd5275efa44
BLAKE2b-256 a2989d2733cada7dc0c32ff52d220623ec9070ae0da9ce4e1d7b7f8614933f07

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