pcari.signals module

This module defines actions that should be taken on special events.

References

pcari.signals.extend_sqlite(connection=None, **_)

Monkey-patch custom functions and aggregates if the backend uses SQLite.

pcari.signals.make_stddev_aggregate(sample=False)

Create a standard deviation aggregator to pass to PySQLite. In production, where performance is critical, the chosen backend (that is, not SQLite) should implement standard deviation natively.

Parameters:sample – Whether the aggregator should calculate the sample standard deviation.
Returns:A class that defines the aggregator.