Design pattern for simple file tracker ...

Mike mike_4766 at hotmail.com
Thu Feb 19 14:11:39 EST 2004


Hey!

Im starting up a new python based project, its a very simple file
tracker for our network. Some people would most likely call this a
kind of asset management system but its much simplier than that!

Anyway, Im running a server for the moment which exists as a Linux
machine with a NFS share on our network. It has a mySQL server
installed as well.

What I want to do is to write some kind of command that uses a
library/module (custom) to transfer a file to the NFS share and at the
same add a post in the mySQL table.

What is the best way to design this little thing?

User->Command->Library/Module/Engine->mySQL/NFS<-Web/PHP ?

What is the best way to transfer and communicate, perhaps implementing
a basic protocol is one way to go but it feels overkill, is there any
modules in python package that can help me? I want this to be as
simple as possible.

And what about the engine, client/server, is it better to separate it?
or is it enough to make calls from the client library to the mySQL
server directly?


All feedback is more than welcome!
Thanks!

// Mike



More information about the Python-list mailing list