Esempio n. 1
0
File: run.py Progetto: f-PLT/birdy
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()
Esempio n. 2
0
 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()
Esempio n. 3
0
File: base.py Progetto: f-PLT/birdy
 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()
Esempio n. 4
0
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)
Esempio n. 5
0
 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()
Esempio n. 6
0
File: run.py Progetto: f-PLT/birdy
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