Approval#
- class scikitplot.agent.Approval(digest, granted, approver, note='')[source]#
A person’s answer to an
ApprovalRequest.- Parameters:
- digeststr
The request’s
ApprovalRequest.digest: what is approved.- grantedbool
Trueapproves the action;Falserefuses it.- approverstr
Who answered, recorded in the state and the audit trail.
- notestr, default=””
Recorded with the answer.
- Parameters:
Examples
>>> from scikitplot.agent import Approval >>> Approval("0" * 64, granted=True, approver="allen").granted True