Skip to content
Increment 0.1.0a6 prerelease documentation. These docs describe the increment 0.1.0a6 prerelease (v0.1.0a6). Its API may change. Install: pip install 'increment==0.1.0a6' Keep any extras requested by the guide, such as increment[dashboard]==0.1.0a6.

Assignment

Use increment.assignment.compile_allocation(config) to validate and freeze a local allocation configuration. Its AllocationEvaluator returns a Decision from decide(target, unit_id) and a Membership record from holdout_membership(holdout_key, unit_id). Both records are JSON-compatible and omit the unit ID. See the examples and deployment guide and the exact configuration and record fields.