Skip to main content

Crate varpulis_cli

Crate varpulis_cli 

Source
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 @import statements 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