diff options
Diffstat (limited to 'ricky/imbreak/params.py')
| -rw-r--r-- | ricky/imbreak/params.py | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/ricky/imbreak/params.py b/ricky/imbreak/params.py deleted file mode 100644 index 90ad41d..0000000 --- a/ricky/imbreak/params.py +++ /dev/null @@ -1,58 +0,0 @@ -from ricky.params import Params -from ricky.param.username import Username -from ricky.param.imageurl import ImageUrl -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 ImBreakParams(Params): - def __init__(self): - self._params = ( - Username(name="username", required=False), - ImageUrl(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) - ) |
