Basic plugin architecture

2016-04-06 Thread Nick Sarbicki
Hi, Question on how people here would design a basic plugin architecture: I'm playing with the idea of having a pluggable system where the users can create some simple classes which can then be accessed in a Django app. I want to make it as __simple__ as possible for the user. Hopefully t

ANN: straight.command 0.1a1 - A command framework with a plugin architecture

2012-05-17 Thread Calvin Spealman
I'd like to announce a new project, based on straight.plugin, a command framework that provides a declarative way to define command-line options, sub-commands, and allows plugins from third-parties to expand commands. This is all very early, I'm calling this version 0.1a1 and lots of things are mi

Re: Plugin architecture

2010-02-15 Thread Florian Ludwig
s > available in Python (and some major web framework, like Pylons or Django)? You should really look into the web framework you're using, there probably already is some plugin architecture. But being not content myself with the architectures I've seen or worked with I was looking f

Re: Plugin architecture

2010-02-15 Thread Daniel Fetchinson
> I'm thinking about writing plugin-style architecture for (a new) > web-based app (with SQLAlchemy as backend). > > Say, there's core web app and someone decides to write plugin Accounting > for this web app that would work with SQA objects of the core app or > other plugins. > > I found this: > >

Plugin architecture

2010-02-15 Thread mk
Hello everyone, I'm thinking about writing plugin-style architecture for (a new) web-based app (with SQLAlchemy as backend). Say, there's core web app and someone decides to write plugin Accounting for this web app that would work with SQA objects of the core app or other plugins. I found

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
Jorge Godoy wrote: > escalation746 wrote: > > I have updated documentation for this on my blog, diagrammes modernes. > > Surf: > >http://diagrammes-modernes.blogspot.com/ > > Your motivation looks a lot like what is solved by setuptools, eggs and > entry points. Though that problem domain looks d

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread Jorge Godoy
escalation746 wrote: > I have updated documentation for this on my blog, diagrammes modernes. > Surf: > http://diagrammes-modernes.blogspot.com/ Your motivation looks a lot like what is solved by setuptools, eggs and entry points. http://peak.telecommunity.com/DevCenter/PkgResources http://docs.

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
I have updated documentation for this on my blog, diagrammes modernes. Surf: http://diagrammes-modernes.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
Wojciech Mu a wrote: > These names don't match. I replaced Valuable() with proper name, > and everything work fine. That was a result of a transcription error when posting to the newsgroup. My actual test code did not have this error but nevertheless did not work. However, copying the code I *d

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread Wojciech Muła
escalation746 wrote: > def ViewValuable(): [...] > code = """ > Hello() > Plus() > Valuable() > """ These names don't match. I replaced Valuable() with proper name, and everything work fine. w. -- http://mail.python.org/mailman/listinfo/python-list

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
faulkner wrote: > sys._getframe(1).f_locals Brilliant. That one's pretty well hidden and labeled "should be used for internal and specialized purposes only". Guess I'm officially special. :-) To implement this with minimal requirements on the author of the plugin, I created a function in master.

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread faulkner
On Jul 22, 10:06 am, escalation746 <[EMAIL PROTECTED]> wrote: > I've got a namespace query that amounts to this: How can an imported > function see data in the parent custom namespace? I have read through > numerous posts which skirt this issue without answering it. > > To illustrate, create plugin

custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
I've got a namespace query that amounts to this: How can an imported function see data in the parent custom namespace? I have read through numerous posts which skirt this issue without answering it. To illustrate, create plugin.py with a couple of functions. The second will obviously fail. d

Re: "Plugin" architecture - how to do?

2007-06-04 Thread anglozaxxon
On Apr 10, 10:26 pm, c james <[EMAIL PROTECTED]> wrote: > Take a look at Trac. This might give you some ideas. > > http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture Thanks cJames, that's exactly what I'm looking for. -- http://mail.python.org/mailman/listinfo/python-list

Re: "Plugin" architecture - how to do?

2007-04-10 Thread c james
Take a look at Trac. This might give you some ideas. http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture -- http://mail.python.org/mailman/listinfo/python-list

Re: "Plugin" architecture - how to do?

2007-04-09 Thread anglozaxxon
On Apr 6, 9:59 am, "Nate Finch" <[EMAIL PROTECTED]> wrote: > On Apr 5, 10:57 am, [EMAIL PROTECTED] wrote: > > > I'm making a program that consists of a main engine + plugins. Both > > are in Python. My question is, how do I go about importing arbitrary > > code and have it be able to use the engi

Re: "Plugin" architecture - how to do?

2007-04-06 Thread Nate Finch
On Apr 5, 10:57 am, [EMAIL PROTECTED] wrote: > I'm making a program that consists of a main engine + plugins. Both > are in Python. My question is, how do I go about importing arbitrary > code and have it be able to use the engine's functions, classes, etc? For a true plugi

"Plugin" architecture - how to do?

2007-04-05 Thread anglozaxxon
I'm making a program that consists of a main engine + plugins. Both are in Python. My question is, how do I go about importing arbitrary code and have it be able to use the engine's functions, classes, etc? First, here's how it's laid out on the filesystem: -mainstarterscript.py - -__init__.py