Plug life into your codebase: Making established Python codebase pluggable
summary
Introduces the pluggy Python framework and shows how to use it to make an existing codebase plugin-friendly. Uses the conda project as a concrete, real-world example of adding a plugin API to a ten-year-old codebase to extend and rejuvenate it.
AI-written summary · about
chapters (18)
- 0:00Start
- 5:06What are plugins? (recap)
- 5:42Plugin examples
- 6:00Why plugins?
- 6:41Plugin fundamentals
- 7:23Introducing: pluggy!
- 8:04How to use pluggy
- 8:44Why pluggy?
- 13:34A real-world example: Conda
- 15:45Conda's plugin project structure
- 17:03conda/plugins/hookspec.py
- 18:50ascii_graph/ascii_graph.py
- 20:51Plugin Installation (in development mode)
- 21:36Invoking the subcommand plugin!
- 22:07Different plugins, same plugin API
- 22:57Plugin use cases
- 24:33Subcommand Tutorial
- 24:56Presentation Materials
related talks
23mBuild plugins using Pluggy
30mExtensible Python: Robustness Through Addition
42mInheriting a Sloppy Codebase: A Practical Guide to Wrangling Chaotic Code
30mHow to give your Python code to someone else
14mPYLIVE: On-the-Fly Code Change for Python-based Online Services
22mPublishing well formed Python packages
24mPython for Humans, Designing Python Code Like a User Interface
27mDream in Code
