Simple lightweight API descriptions prevent misunderstanding.
Add emoji symbols to help guide people's eyes when scanning the docs.
Updates a user.
from dpcontracts import require, ensure, invariant | |
@invariant("procs can never be empty", lambda self: len(self.procs) > 0) | |
@invariant("procs must consist only of positive integers", | |
lambda self: all(isinstance(x, int) and x > 0 for x in self.procs)) | |
@invariant("space must be positive integer", lambda self: self.space > 0) | |
class Meltdown: | |
def __init__(self, space, procs): | |
self.space = space | |
self.procs = procs |
Lodash: https://lodash.com/docs/4.17.10
Lodash FP: https://github.com/lodash/lodash/wiki/FP-Guide
MomentJS: https://momentjs.com/docs/
Chai/assert: http://www.chaijs.com/api/assert/
Redux Sagas: https://redux-saga.js.org/docs/api/index.html