def _show_languages(ctx, param, value): if not value or ctx.resilient_parsing: return url = os.environ.get('WPS_SERVICE') or DEFAULT_URL wps = WebProcessingService(url, verify=get_ssl_verify()) click.echo(','.join(wps.languages.supported)) ctx.exit()
def __init__(self, name=None, url=None, xml=None, **attrs): click.MultiCommand.__init__(self, name, **attrs) self.url = os.environ.get('WPS_SERVICE') or url self.verify = get_ssl_verify() self.xml = xml self.wps = WebProcessingService(self.url, verify=self.verify, skip_caps=True) self.commands = OrderedDict()
def __init__(self, name=None, url=None, caps_xml=None, desc_xml=None, **attrs): click.MultiCommand.__init__(self, name, **attrs) self.url = os.environ.get('WPS_SERVICE') or url self.verify = get_ssl_verify() self.caps_xml = caps_xml self.desc_xml = desc_xml self._wps = None self.commands = OrderedDict()
def cli(ctx, cert, send, sync, token): """ Birdy is a command line client for Web Processing Services. Documentation is available on readthedocs: http://birdy.readthedocs.org/en/latest/ """ ctx.obj = dict(verify=get_ssl_verify(), cert=cert, send=send, sync=sync, token=token)
def cli(ctx, cert, send, sync, token): """ Birdy is a command line client for Web Processing Services. Documentation is available on readthedocs: http://birdy.readthedocs.org/en/latest/ """ ctx.obj = ctx.obj or dict() ctx.obj['verify'] = get_ssl_verify() ctx.obj['cert'] = cert ctx.obj['send'] = send ctx.obj['sync'] = sync ctx.obj['token'] = token