diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-12-06 17:31:00 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-12-06 17:31:00 -0800 |
| commit | f72d7dc6a5a926f56790151e3dde36eaf7978ba0 (patch) | |
| tree | 1620560f424ffc558ac30ae1b6246d4b7df2eeac /ricky/pbbreaker/params.py | |
| parent | 8ebd9d7eb7b3289a722cdae6a4bdcdd4cd21ff86 (diff) | |
cleaned up names
Diffstat (limited to 'ricky/pbbreaker/params.py')
| -rw-r--r-- | ricky/pbbreaker/params.py | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/ricky/pbbreaker/params.py b/ricky/pbbreaker/params.py new file mode 100644 index 0000000..57c93f3 --- /dev/null +++ b/ricky/pbbreaker/params.py @@ -0,0 +1,58 @@ +from ricky.params import Params as _Params +from ricky.param.username import Username +from ricky.param.imageurl import PbageUrl +from ricky.param.enum import Enum +from ricky.param.constrainednumber import ConstrainedNumber +from ricky.param.bool import Bool + + +_BREAKTYPE_OPTIONS = [ + "CLASSIC", + "REDUX", + "BLURRY_BREAK", + "BLURRY_BREAK_2", + "SWIPE", + "RGB_WASH", + "RGB_WASH_2", + "NOISY_BREAK", + "BROKEN_VIGNETTE", + "FAX_MACHINE", + "STRIPES", + "PHOTOCOPY" +] +_BREAKMODE_OPTIONS = [ + "extreme", + "subtle", +] +_FINALFORMAT_OPTIONS = [ + "png", + "jpg", + "gif", +] + + +class Params(_Params): + def __init__(self): + self._params = ( + Username(name="username", required=False), + PbageUrl(name="url", required=True), + Enum( + name="finalformat", + required=False, + options=_FINALFORMAT_OPTIONS), + Enum( + name="breaktype", + required=True, + options=_BREAKTYPE_OPTIONS), + ConstrainedNumber( + name="breakangle", + required=False, + enforce_int=True, + min=-180, + max=180), + Enum( + name="breakmode", + required=True, + options=_BREAKMODE_OPTIONS), + Bool(name="expanded", required=False) + ) |
