Designing Plug-in Systems in Python

Jorge Godoy godoy at ieee.org
Mon May 8 08:48:41 EDT 2006


mystilleef wrote:
> 
> Are there any good tutorials on how to design good plug-in
> systems with Python, or any language? What are the best
> practices for designing plug-in systems in Python? How would
> you go about designing one? What are common pitfalls in
> designing one? Any pointers, suggestions, resources and
> advice is welcome.

I am liking to use setuptools and its entry points.  With this, your program
can check for a specific thing and load all modules that provides something
like "myapp.plugins".  

Take a look at it.

-- 
Jorge Godoy      <godoy at ieee.org>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.



More information about the Python-list mailing list