~/talk

Fang: Pythonic dependency injection

Talkat PyCon Australia 2015 · 2015-07-31..08-04· [python]
links:none on file
slides:none on file

Fang is a ~300-line Python DI library that actually runs: about 300 lines, with resources identified by names (strings) and implementations registered as no-arg provider callables. Dependencies attach via a decorator and get injected by unpacking into functions or constructors; providers are registered at program entry so import-time singletons stay replaceable. Tests must clear and re-register providers between cases. Planned features include namespaces, stdlib/third‑party adapters, and publishing to PyPI.

AI-written summary · about

  1. 0:00Start
  2. 4:24HOW DO YOU MOCK THIS?
  3. 5:59JAVASCRIPT
  4. 8:53A SIMPLE EXAMPLE
  5. 11:54UNIT TESTING
~/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.