Expand description
Varpulis CLI library - testable functions and modules
This library provides the core functionality for the Varpulis CLI, organized into dedicated modules for security, WebSocket handling, and more.
Modules§
- api
- REST API for SaaS pipeline management
- audit
- Structured audit logging for Varpulis.
- auth
- Authentication module for Varpulis CLI
- billing
- Stripe billing integration for Varpulis Cloud.
- client
- HTTP client for interacting with a remote Varpulis server.
- config
- Configuration file support for Varpulis
- oauth
- OAuth/OIDC authentication module for Varpulis Cloud.
- oidc
- Generic OIDC authentication provider for Varpulis Cloud.
- output
- CLI output helpers for consistent formatting, colors, and progress indicators.
- playground
- Playground API — zero-friction VPL execution for the interactive playground.
- rate_
limit - Rate limiting module — re-exported from varpulis-cluster.
- security
- Security module for Varpulis CLI
- users
- Session management and password hashing utilities for local authentication.
- websocket
- WebSocket module for Varpulis CLI
Constants§
- MAX_
IMPORT_ DEPTH - Maximum depth for nested imports to prevent stack overflow
Functions§
- check_
syntax - Parse and validate VPL source code
- parse_
duration_ str - Parse a duration string like “60s”, “5m”, “1h” into seconds.
- parse_
program - Parse and return statement count
- resolve_
imports - Resolve
@importstatements by loading and parsing imported files. - simulate_
from_ source - Run a VPL program against a list of events and collect output events.
- validate_
program - Validate program can be loaded by engine