~/talk

Click: A Pleasure To Write, A Pleasure To Use

Talkat PyCon AU 2016 · 2016-08-12..08-16· [python, developer-experience]
links:none on file
slides:none on file

Demonstrates building a working "ad notifier" CLI that scrapes Craigslist with BeautifulSoup, detects new listings via a simple cache (file or Redis), and sends notification emails, using click for decorator-based commands, options/flags, subcommands and environment-variable defaults. Shows how to share global settings through a context object, get automatic help and parameter validation, write unit tests with click’s test runner, and enable bash autocompletion for a pleasant, composable CLI that runs as a one-off or periodic job.

AI-written summary · about

  1. 0:00Introduction
  2. 2:20Terminology
  3. 4:38Commands
  4. 10:12Building a Command Line Client
  5. 12:41Command Line Client
  6. 15:36Cache Invalidation
  7. 16:29Flags
  8. 17:11Grouping
  9. 20:49Documentation
  10. 21:51Conclusion
  11. 23:08Questions
~/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.