Designing Plug-in Systems in Python

M

mystilleef

Hello,

I need to design a plug-in system for a project. The goal is
to allow third party developers interact with an application
via plug-ins in a clean and robust manner. At this point I
am overwhelmed by my inexperience with designing plug-in
systems.

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.

Thanks
 
J

Jorge Godoy

mystilleef said:
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 <[email protected]>

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top