~/talk

Project templates with Cookiecuter

Talkat PyConES 2018 · 2018-10-05..10-07· [developer-experience, python]
links:none on file
slides:none on file

Shows how to turn a live repo into a reusable template with Cookiecutter, using cookiecutter.json to validate variables and Jinja variables to render filenames and file contents, plus pre/post-generation hooks for dependency checks and cleanup. Recommends keeping template and example repo together, updating templates as projects evolve, swapping unit tests to pytest, adding Docker files and Make targets, extracting shared code to private libs, using direnv and a .env file to centralize environment variables and avoid human errors.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:29Why use project templates
  3. 6:24What is Cookiecutter
  4. 10:12Creating your own template
  5. 14:09Converting project to template
  6. 18:36Iterating and improving templates
  7. 20:21Recap and next steps
  8. 21:06Making choices in templates
  9. 24:23Tools and alternatives
  10. 25:48Demos and resources
  11. 26:51Environment variables with dotenv
  12. 27:32Homework and closing
~/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.