~/talk

Growler - Using asyncio to Build a Web Framework

Talkat PyOhio 2015 · 2015-08-01..08-02· [python, web-platform]
links:none on file
slides:none on file

Growler is an asyncio-based web framework for Python 3.4+ that implements an Express-like middleware chain, is pip-installable but still unstable, and aims to handle HTTP and websocket upgrades without threads. It uses asyncio primitives (coroutines, event loop, futures/tasks, stream readers/writers) and favors a responder stack over patching data handlers, chooses create_server vs start_server consciously for parsing vs file-like reads, provides decorator routes and routerify via docstrings, and does not use run_in_executor in its core.

AI-written summary · about

  1. 0:00Intro
  2. 0:28import asyncio
  3. 0:58Terms
  4. 1:38What is a Coroutine?
  5. 7:17What is an EventLoop? · Object in charge of scheduling and executing the coroutines
  6. 8:52What is a Future?
  7. 9:36What is a Task?
  8. 11:03What is run_in_executor?
  9. 12:37What is a Server?
  10. 13:47What is a Transport?
  11. 14:06What is a Protocol?
  12. 15:13What is a StreamReader? StreamWriter?
  13. 17:23Writing a Server? Which to use?
  14. 18:20My Suggestion
  15. 21:21Express Example
  16. 25:06Growler Example
  17. 26:14Which Server Method?
  18. 29:22Need Flexible Protocol
  19. 30:19Growler Solution: "Responder" Stack
  20. 33:11Responder Stack
  21. 38:52Things I've Learned
  22. 40:47Interesting Projects
  23. 41:25The Future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.