473,414 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Trivial plugin framework?

Anyone know any good, low-fat, Open Source (BSD or better) trivial
plugin framework that would allow me to put a bunch of .py-files in a
directory, with contents like:

# /tmp/py/mymod.py

class C:
pass

class CFact:
pass

__plugindict__ = {
'somefactory' : CFact
}
And then do

import plugin

# sees that implementation repository doesn't exist, so creates one by
# looking at all the modules. Having seen that 'somefactory' is in
# mymod.py it only execs that.

fact = plugin.get("/tmp/py", 'somefactory')

obj = fact()

?

It seems easy enough to do, in fact I'm implementing one as I speak
(well, not physically possible but anyway ;-), but I figured there has
to be something that fits the bell better than my would-be
implementation.

--
Ville Vainio http://tinyurl.com/2prnb
Jul 18 '05 #1
0 1016

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Simon Roses Femerling | last post by:
Dear pythonnians :) Hopeful somebody can help me about implementing plugin support. I'm working on a python/wxpython app that needs plugin support. My problem is: The way my app works is a...
1
by: Discipulus | last post by:
Hey, I'm contemplating starting a MUD client in Python, and I would like to make it so that people can write their own plugins, but I need ideas on the framework. Any suggestions?
1
by: William | last post by:
Hi folks, I am planning to develope a C++ application, which has GUI, project management, and some IO handlings, so that user can develope their algorithem and process logic and plug into the...
2
by: Edvard Majakari | last post by:
Hi, My idea is to create a system working as follows: each module knows path to plugin directory, and that directory contains modules which may add hooks to some points in the code. Inspired...
2
by: Ron | last post by:
Hello, I'm attempting to develop a plugin framework for an application that I'm working on. I wish to develop something in which all plugins exist in a directory tree. The framework need only...
3
by: Weston Weems | last post by:
Hello, I've searched before I bothered asking... I'm looking for an example of a plugin framework for a c# application etc. I understand the basic concept of it, and have an idea of how I'd do...
0
by: Dan Dorey | last post by:
I'm in the midst of creating a plugin framework with the goal of making it as easy as possible for myself and other developers to both create new plugins and work with existing ones. Each plugin...
0
by: Zeya | last post by:
Situation: Using C#, ASP.Net Requirement: 1. ASP.net application with virtual hosting service. 2. Requires a service that will run every predefined frequency in minutes (2, 30, 100, 10000)...
22
by: Wildemar Wildenburger | last post by:
To make it short: Is there something like this already? There seem to loads of python frameworks for Web-Apps, but I have a hard time finding one for desktop-apps. I imagine it wouldn't be too...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.