Re: Managing plug-ins

2020-05-27 Thread George Fischhof
DL Neil via Python-list ezt írta (időpont: 2020. máj. 26., K, 3:10): > On 26/05/20 11:35 AM, Benjamin Schollnick wrote: > > Did you ever find anything that met your requirements? > > > > If not, I have a prototype that I need to build out some more… > > > > https://github.com/bschollnick/PyPlugIn

Re: Managing plug-ins

2020-05-25 Thread DL Neil via Python-list
On 26/05/20 11:35 AM, Benjamin Schollnick wrote: Did you ever find anything that met your requirements? If not, I have a prototype that I need to build out some more… https://github.com/bschollnick/PyPlugInMgr I use it for some home grown utilities, but it needs to be fleshed out some more…

Re: Managing plug-ins

2020-05-25 Thread Benjamin Schollnick
re… If you’re interested feel free to take a look. - Benjamin > On Feb 23, 2020, at 5:45 PM, DL Neil via Python-list > wrote: > > Please recommend a library which will manage plug-ins. > > > (Regret that searching PyPi or using a web SE results in an overw

Managing plug-ins

2020-02-23 Thread DL Neil via Python-list
Please recommend a library which will manage plug-ins. (Regret that searching PyPi or using a web SE results in an overwhelming number of 'false positives') Not wanting to 'reinvent the wheel, have been looking for an 'approved' way to manage a set of previously-pr

Do I want multidispatch or object plug-ins or something else?

2006-11-09 Thread Chris Cioffi
d code in each class. HOWEVER, I'm finding it difficult to add new statistic gathering methods because the code is already rather complex. That leads me to think I've got bad design. What I _think_ I want is a way to register plug-ins that say "I work with transactions of type X,Y,Z&

Re: Plug-Ins In A Python Application

2006-04-18 Thread Fredrik Lundh
scan a folder in the application direcotry > for XML files containing information about the plug-ins, including the > modules that implement them.) a simple approach is to do something like for file in list_of_plugins: ns = {} execfile(file, ns) # pick up interesting

Re: Plug-Ins In A Python Application

2006-04-18 Thread Jay Parlar
cation direcotry > for XML files containing information about the plug-ins, including the > modules that implement them.) > Well, the "state of the art" in Python plugins is moving towards Eggs: http://peak.telecommunity.com/DevCenter/PythonEggs Though that might be a bit much for

Re: Plug-Ins In A Python Application

2006-04-18 Thread Gary Herron
d use "modules" containing plug-in code >written by third party developers into a running instance of the >framework? How would I do this? Do I need to "dynamically load" the >module at runtime? (I will scan a folder in the application direcotry >for XML files contain

Plug-Ins In A Python Application

2006-04-18 Thread redefined . horizons
ritten by third party developers into a running instance of the framework? How would I do this? Do I need to "dynamically load" the module at runtime? (I will scan a folder in the application direcotry for XML files containing information about the plug-ins, including the modules that impleme

Re: plug-ins

2005-05-07 Thread Dave Brueck
Eric Nieuwland wrote: > The app I'm working on keeps getting new transforms and I'm tired of > adding them by hand. So here it goes: > Can anyone provide me with clues/examples/references on how to create a > plug-in framework? The biggest task is defining the interface between your app and the

plug-ins

2005-05-07 Thread Eric Nieuwland
Hi all, The app I'm working on keeps getting new transforms and I'm tired of adding them by hand. So here it goes: Can anyone provide me with clues/examples/references on how to create a plug-in framework? tx, --eric -- http://mail.python.org/mailman/listinfo/python-list

Re: How to write python plug-ins for your own python program?

2005-03-05 Thread Reinhold Birkenfeld
David M. Cooke wrote: > Simon Wittber <[EMAIL PROTECTED]> writes: > >>> You mean like 'import'? :) >> >> That's how I would do it. It's the simplest thing, that works. >> >> exec("import %s as plugin" % pluginName) >> plugin.someMethod() >> >> where pluginName is the name of the python file, minus

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread hemanth
Andre wrote: > Mark Rowe <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > On Mar 3, 2005, at 9:33 PM, Simon Wittber wrote: > > > > >> You mean like 'import'? :) > > > > > > That's how I would do it. It's the simplest thing, that works. > > > > > > exec("import %s as plugin" % pl

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread Andre
Mark Rowe <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Mar 3, 2005, at 9:33 PM, Simon Wittber wrote: > > >> You mean like 'import'? :) > > > > That's how I would do it. It's the simplest thing, that works. > > > > exec("import %s as plugin" % pluginName) > > plugin.someMet

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread Andrew Dalke
Mark Rowe wrote: > A better method would be something along the lines of: > > plugin = __import__(pluginName) > plugin.someMethod() In the one time I did a plugin architecture I found that state = ... set up intial state for my program ... ... plugin = __import__(pluginName) plugin.someMethod

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread David M. Cooke
Simon Wittber <[EMAIL PROTECTED]> writes: >> You mean like 'import'? :) > > That's how I would do it. It's the simplest thing, that works. > > exec("import %s as plugin" % pluginName) > plugin.someMethod() > > where pluginName is the name of the python file, minus the ".py" extension. You'd bette

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread Terry Hancock
On Wednesday 02 March 2005 11:28 pm, Tian wrote: > I am writing an audio game using Python. in this game you can apply > some sound effects for the clips you have recorded. I want to make this > function extensible. I want user to be able to add new sound effect > plug-ins in the fu

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread Mark Rowe
On Mar 3, 2005, at 9:33 PM, Simon Wittber wrote: You mean like 'import'? :) That's how I would do it. It's the simplest thing, that works. exec("import %s as plugin" % pluginName) plugin.someMethod() where pluginName is the name of the python file, minus the ".py" extension. A better method would

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread Simon Wittber
> You mean like 'import'? :) That's how I would do it. It's the simplest thing, that works. exec("import %s as plugin" % pluginName) plugin.someMethod() where pluginName is the name of the python file, minus the ".py" extension. Sw. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to write python plug-ins for your own python program?

2005-03-02 Thread alex23
Tian wrote: > Is there any good method to > read in python code and test availability and invoke the functions > inside? You mean like 'import'? :) - alex23 -- http://mail.python.org/mailman/listinfo/python-list

How to write python plug-ins for your own python program?

2005-03-02 Thread Tian
I am writing an audio game using Python. in this game you can apply some sound effects for the clips you have recorded. I want to make this function extensible. I want user to be able to add new sound effect plug-ins in the future. I want the plug-in to be a simple python code (text file) and a