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
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…
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
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
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&
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
21 matches
Mail list logo