Wrangler is a collection of rulesets written in KRL that allow management of a single pico, groups of picos, pico lifecycle, and relationships between picos. It can be viewed as an "operating system" for the pico, where Wrangler is an environment for the pico. Through both raising events to trigger actions, such as creating a new pico, or listening to events, such as an added relationship, the KRL programmer can respond to and manipulate picos.
An example of pico creation using Wrangler:
- General pico manipulation. Preinstalled on every pico. Create and delete child picos. Install and uninstall rulesets on a pico. Manage parent-child relationships. A few general utility functions.
- Utilizes io.picolabs.subscription and io.picolabs.wrangler to allow the KRL programmer to define a set of picos and their relationships as a data structure (pico prototype), and then create that structure when desired. Useful for instantiating predetermined groups of picos and the relationships between them.
- Provides a simple cross-ruleset datastore with key-value pairs under differing domains.
- Provides a way of storing basic profile data in a pico.