by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 27 19:38
  • Aug 24 12:43
    dbsantos1981 commented #26
  • Aug 24 12:36
    dbsantos1981 closed #24
  • Aug 24 12:36
    dbsantos1981 commented #24
  • Aug 24 12:33
    dbsantos1981 closed #26
  • Aug 24 12:33
    dbsantos1981 commented #26
  • Aug 24 10:32
    JeswinSunsi commented #26
  • Aug 21 09:06
    manatlan commented #26
  • Aug 17 11:59
    dbsantos1981 opened #26
  • Jul 15 15:19
  • Jun 28 09:28

    manatlan on master

    prepare the next prepare 0.7.5 Merge pull request #25 from man… (compare)

  • Jun 28 09:28
    manatlan closed #25
  • Jun 28 09:27
    manatlan opened #25
  • Jun 28 09:27

    manatlan on develop

    prepare 0.7.5 (compare)

  • Jun 08 19:50
  • Jun 04 20:43
  • Jun 04 01:22
    dbsantos1981 commented #24
  • Jun 02 20:26
    manatlan commented #24
  • May 30 14:38
    dbsantos1981 opened #24
  • May 27 15:22

    manatlan on develop

    prepare the next (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