by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 30 14:38
    dbsantos1981 opened #24
  • May 27 15:22

    manatlan on develop

    prepare the next (compare)

  • May 27 15:22

    manatlan on master

    prepare post 0.7.3 FIX: autoreload was broken r0.7.4 and 1 more (compare)

  • May 27 15:22
    manatlan closed #23
  • May 27 15:21
    manatlan opened #23
  • May 27 15:19

    manatlan on develop

    r0.7.4 (compare)

  • May 27 15:17

    manatlan on develop

    prepare post 0.7.3 FIX: autoreload was broken (compare)

  • May 26 18:11

    manatlan on master

    the future clearly a build or a render the concept is better and 12 more (compare)

  • May 26 18:11
    manatlan closed #22
  • May 26 18:11
    manatlan opened #22
  • May 26 18:10

    manatlan on develop

    prepare the 0.7.3 (compare)

  • May 26 18:05

    manatlan on develop

    automatically apply a "wsguy" c… (compare)

  • May 26 17:20

    manatlan on develop

    remove justguy -> see gtag add a gtag link Add guy.WSGUY (compare)

  • May 15 17:49

    manatlan on develop

    <- really good (compare)

  • May 15 17:44

    manatlan on develop

    <- this is good ;-) (compare)

  • May 15 17:33

    manatlan on develop

    add comments (compare)

  • May 15 17:27

    manatlan on develop

    add tests & relooking (compare)

  • May 15 16:21

    manatlan on develop

    sounds good (compare)

  • May 15 16:16

    manatlan on develop

    exit works (compare)

  • May 15 15:44

    manatlan on develop

    the concept is better (compare)

manatlan
@manatlan
Hi, just a gitter, to talk about guy https://github.com/manatlan/guy ;-)
manatlan
@manatlan
from guy import Guy

class Simple(Guy):
    """<button onclick="self.test()">test</button>"""

    async def test(self):
        print("Your name is", await self.js.prompt("What's your name ?") )

if __name__ == "__main__":
    app=Simple()
    app.run()
here is a simple example ^^
Dmytro Ferens
@dferens
Hi, I have a question. I need to serve files (images) but your library does not allow custom endpoints, it even ignores handler return values when it's not Guy instance: https://github.com/manatlan/guy/blob/master/guy.py#L82
I made a PR but later realised that tornado server runs in it's own thread
manatlan
@manatlan
Sorry for the late response ... But you can add you custom endpoints by using the http decorator, see here : https://guy-docs.glitch.me/server/#hook-http