# Function index

{/* Generated by scripts/gen_function_index.py from docs-site/function-index.toml. Do not edit. */}

Function packages people have published for [Baler Notebooks](/code/notebooks). Install one in
your notebook with the `pip install` line shown, then find its functions with `baler_fn.list()`.
To add yours, see [Publishing a package](/code/publishing).

Packages run in **your** notebook or container, with your API key. Read a package's source before
you install it, and never install packages on the shared Baler host.

| Package | Version | Tags | Description |
|---|---|---|---|
| [baler-sample](#baler-sample) | 0.1.0 | sample, stats | Sample Baler functions: a point table, history stats and an hourly profile. The starting point for your own package. |

## baler-sample

**Version** 0.1.0 · **Author** Baler maintainers · **Date** 2026-11-07 · **License** AGPL-3.0-or-later · [Source](https://github.com/jacobnash/Baler) · [Docs](https://docs.timberdoodle.nash.engineering/code/write-a-function)

Sample Baler functions: a point table, history stats and an hourly profile. The starting point for your own package.

Tags: `sample`, `stats`

```bash
pip install "git+https://github.com/jacobnash/Baler@main#subdirectory=templates/function-project"
```

### Functions

#### `point_table`

```python
point_table(client, filter='point', limit=None)
```

Points matching a Haystack filter, one row each: id, dis, kind, unit, curVal.

Tags: `inventory`

#### `his_stats`

```python
his_stats(client, point_id, range='today')
```

Count, mean, min, max, first and last sample of one point over a Haystack range.

Tags: `history`, `stats`

#### `hourly_profile`

```python
hourly_profile(client, point_id, range='today', tz='UTC')
```

Mean, min and max of a point for each hour of the day, in the timezone tz.

Tags: `history`, `stats`
