<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> import click <EOL> from sandman import app <EOL> from sandman . model import activate <EOL> def print_version ( ctx , value ) : <EOL> """<STR_LIT>""" <EOL> if not value : <EOL> return <EOL> import pkg_resources <EOL> version = None <EOL> try : <EOL> version = pkg_resources . get_distribution ( '<STR_LIT>' ) . version <EOL> finally : <EOL> del pkg_resources <EOL> click . echo ( version ) <EOL> ctx . exit ( ) <EOL> @ click . command ( ) <EOL> @ click . option ( '<STR_LIT>' , default = False , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , default = False , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , default = '<STR_LIT>' , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , default = <NUM_LIT> , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , is_flag = True , <EOL> callback = print_version , expose_value = False , is_eager = True ) <EOL> @ click . argument ( '<STR_LIT>' , metavar = '<STR_LIT>' ) <EOL> def run ( generate_pks , show_pks , host , port , uri ) : <EOL> """<STR_LIT>""" <EOL> app . config [ '<STR_LIT>' ] = uri <EOL> app . config [ '<STR_LIT>' ] = generate_pks <EOL> app . config [ '<STR_LIT>' ] = show_pks <EOL> app . config [ '<STR_LIT>' ] = host <EOL> app . config [ '<STR_LIT>' ] = port <EOL> activate ( name = '<STR_LIT>' ) <EOL> app . run ( host = host , port = int ( port ) , debug = True ) </s>
