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 senpai_validators 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.2.1.tar.gz (70.0 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.2.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: senpai_validators-0.2.1.tar.gz
  • Upload date:
  • Size: 70.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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.2.1.tar.gz
Algorithm Hash digest
SHA256 24b97fcc22db4c9fc2d50c6c5429e6baaeb7dff0c550987fb79d80b664f7cfe8
MD5 9778de2381802a6f75c2361988e0b3df
BLAKE2b-256 d4a55a4b6099a304881fed51ad69e67fc7991dfe296166a759d0e602ebe97e14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: senpai_validators-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01714d9157b4b942c93b7679b4a4ae6190c9dc51f79792513a1acd4975243781
MD5 903acb96a38cc3a4e806988f67d935f0
BLAKE2b-256 3a7dd47250977bcb0e0cd118e3da81b59aa46538dac8ddf81b1d56aef058b794

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