~/talk

Double Click: continue building better CLIs

Talkat PyCon Canada 2017 · 2017-11-18..11-21· [developer-experience]
links:none on file
slides:none on file

Shows how to use Click to build a real weather CLI that actually stores an API key and fetches forecasts using two subcommands config and forecast, with a config file written to ~/weather.cfg and tests that run in an isolated temp filesystem. Demonstrates Click’s Path type for config validation, a custom Location parameter type that accepts names or numeric city IDs by overriding convert, and end to end tests with CliRunner invoking commands and prompts. Packaging uses setup entry_points to install a weather console script that works.

AI-written summary · about

  1. 0:00Introduction to Click
  2. 2:40CLI basics and parameters
  3. 5:30Building a simple command
  4. 7:55Developing a weather tool
  5. 11:13Custom parameters and inputs
  6. 14:27Advanced parameter handling
  7. 19:01Testing CLI applications
  8. 22:53Packaging and distribution
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.