How to use the appier.get_a function in appier

To help you get started, we’ve selected a few appier examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hivesolutions / appier / examples / async / async.py View on Github external
def http(self):
        url = self.field("url", "https://www.flickr.com/")
        delay = self.field("delay", 0.0, cast = float)
        self.request.content_type = "text/html"
        yield from appier.header_a()
        yield from appier.sleep(delay)
        yield (yield from appier.get_a(url))
github hivesolutions / appier / examples / async / async_old.py View on Github external
def http(self):
        url = self.field("url", "https://www.flickr.com/")
        delay = self.field("delay", 0.0, cast = float)
        self.request.content_type = "text/html"
        for value in appier.header_a(): yield value
        for value in appier.sleep(delay): yield value
        for value in appier.get_a(url):
            yield value
            yield value.result()