param

Define Python classes with typed, validated, and reactive parameters.

3|Updated May 31, 2023
One-click install
npx skills add https://github.com/Subaru-PFS/spt_etc_webapp --skill param-subaru-pfs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: param
Source: https://github.com/Subaru-PFS/spt_etc_webapp/tree/main/.claude/skills/developing-with-holoviz/skills/param
Command: npx skills add https://github.com/Subaru-PFS/spt_etc_webapp --skill param-subaru-pfs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the complexity of managing state in Python applications by providing a robust framework for defining classes with typed, validated, and reactive parameters.

Core Features & Use Cases

  • Reactive Dependencies: Automatically trigger updates or side effects when specific parameters change using declarative decorators.
  • Type Validation: Enforce data integrity at the class level with built-in parameter types like Integer, String, and Selector.
  • Use Case: When building a complex dashboard, use this Skill to link a data-source selector to a filtering parameter, ensuring that the UI updates dynamically and only valid data ranges are processed.

Quick Start

Use the param skill to define a new Parameterized class that validates user input and triggers a reactive update function.

Frequently Asked Questions about param

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build reactive Python classes for state management?

To build reactive Python classes for state management, define a Parameterized class with typed attributes that automatically trigger updates and side effects when values change.

What is the best way to enforce type validation in Python application state?

The best way to enforce type validation in Python application state is to declare parameters with built-in types like Integer and String, ensuring data integrity at the class level.

How do I link UI components to data sources in a HoloViz dashboard?

To link UI components to data sources in a HoloViz dashboard, use declarative decorators to establish reactive dependencies that dynamically update filtering parameters when the data source changes.

Can I trigger side effects automatically when a Python parameter changes?

Yes, you can trigger side effects automatically when a Python parameter changes by using declarative decorators to watch specific attributes and propagate reactive events across your application.

Do I need the param library to create validated Python classes?

Yes, you need the param library to create validated Python classes because it provides the descriptor-based attribute management required to handle reactive event propagation and type validation.

When should I use parameterized classes instead of standard Python classes?

Use parameterized classes instead of standard Python classes when managing complex application state requires strict type validation, reactive dependency tracking, and dynamic UI component updates.