Skip to main content

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

Metadata

Release files for senpai-validators 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for senpai-validators 0.2.1
File Size Uploaded
senpai_validators-0.2.1.tar.gz 70.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for senpai-validators 0.2.1
File Interpreter ABI Platform
senpai_validators-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 93.4 kB

Release files / senpai_validators-0.2.1.tar.gz

Download URL senpai_validators-0.2.1.tar.gz
Size 70.0 kB
Tags Source
SHA-256 checksum
How to use checksums
24b97fcc22db4c9fc2d50c6c5429e6baaeb7dff0c550987fb79d80b664f7cfe8
BLAKE2b-256 checksum
How to use checksums
d4a55a4b6099a304881fed51ad69e67fc7991dfe296166a759d0e602ebe97e14
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / senpai_validators-0.2.1-py3-none-any.whl

Download URL senpai_validators-0.2.1-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01714d9157b4b942c93b7679b4a4ae6190c9dc51f79792513a1acd4975243781
BLAKE2b-256 checksum
How to use checksums
3a7dd47250977bcb0e0cd118e3da81b59aa46538dac8ddf81b1d56aef058b794
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page