Files
python_example/pack.yaml
David Culbreth 57532efabd Convert all schemas to flat format with inline required/secret
All schemas (parameters, output, output_schema, conf_schema) now use the
StackStorm-style flat format expected by Attune:
  { param_name: { type, description, required, secret, ... } }

Instead of the standard JSON Schema format:
  { type: object, properties: { ... }, required: [...] }

Also fix rule template syntax: trigger.payload.* -> event.payload.*
2026-02-23 08:46:05 -06:00

52 lines
1.2 KiB
YAML

# Python Example Pack
# Demonstrates Python actions, sensors, triggers, and keystore integration
ref: python_example
label: "Python Example Pack"
description: "Example pack demonstrating Python actions, a counter sensor with keystore integration, and HTTP requests"
version: "1.0.0"
author: "Attune Team"
email: "support@attune.io"
system: false
enabled: true
# Pack configuration schema (flat format with inline required/secret)
conf_schema:
counter_key_prefix:
type: string
description: "Prefix for counter keys in the keystore"
default: "python_example.counter"
# Default pack configuration
config:
counter_key_prefix: "python_example.counter"
# Pack metadata
meta:
category: "examples"
keywords:
- "python"
- "examples"
- "counter"
- "sensor"
- "keystore"
- "http"
python_dependencies:
- "requests>=2.28.0"
- "pika>=1.3.0"
documentation_url: "https://github.com/attune-automation/pack-python-example"
repository_url: "https://github.com/attune-automation/pack-python-example"
# Tags for categorization
tags:
- python
- examples
- counter
- sensor
- http
# Runtime dependencies
runtime_deps:
- python3