473,395 Members | 1,706 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,395 software developers and data experts.

Best way to share a python list of objects

So I have a central list of python objects that I want to be able to
share between different process that are possibly on different
computers on the network. Some of the processes will add objects to
list and another process will be a GUI that will view objects in the
list. I want this all to happen in real-time (e.g once a processes adds
an object to the list the GUI will see it.)

What would be the best way to accomplish this. Some of my ideas:
- An XML file r/w-able by all processes
- Send pickled objects between all processes and each keeps it own list
locally
- A ascii type protocol akin to ftp the hands out all the info to the
processes

Any other ideas? What would work the best

Oct 8 '05 #1
3 1968
"kyle.tk" <ky*****@gmail.com> wrote:
So I have a central list of python objects that I want to be able to
share between different process that are possibly on different
computers on the network. Some of the processes will add objects to
list and another process will be a GUI that will view objects in the
list. I want this all to happen in real-time (e.g once a processes adds
an object to the list the GUI will see it.)

What would be the best way to accomplish this. Some of my ideas:
- An XML file r/w-able by all processes
- Send pickled objects between all processes and each keeps it own list
locally
- A ascii type protocol akin to ftp the hands out all the info to the
processes

Any other ideas? What would work the best


If all the processes are python, I would check Pyro first: http://pyro.sourceforge.net/.

George
Oct 8 '05 #2
kyle.tk wrote:
So I have a central list of python objects that I want to be able to
share between different process that are possibly on different
computers on the network. Some of the processes will add objects to
list and another process will be a GUI that will view objects in the
list. I want this all to happen in real-time (e.g once a processes adds
an object to the list the GUI will see it.)

What would be the best way to accomplish this. Some of my ideas:
- An XML file r/w-able by all processes
- Send pickled objects between all processes and each keeps it own list
locally
- A ascii type protocol akin to ftp the hands out all the info to the
processes

Any other ideas? What would work the best


Relational database are useful for sharing data in a controlled way.
A better option for arbirary Python objects might be ZODB with ZEO.

http://www.zope.org/Wikis/ZODB/FrontPage
http://www.zope.org/Wikis/ZODB/Front...ide/index.html
Oct 11 '05 #3

"Magnus Lycka" <ly***@carmen.se> wrote in message
news:di**********@wake.carmen.se...
kyle.tk wrote:
So I have a central list of python objects that I want to be able to
share between different process that are possibly on different
computers on the network. Some of the processes will add objects to
list and another process will be a GUI that will view objects in the
list. I want this all to happen in real-time (e.g once a processes adds
an object to the list the GUI will see it.)

What would be the best way to accomplish this. Some of my ideas:
- An XML file r/w-able by all processes
- Send pickled objects between all processes and each keeps it own list
locally
- A ascii type protocol akin to ftp the hands out all the info to the
processes

Any other ideas? What would work the best


Relational database are useful for sharing data in a controlled way.
A better option for arbirary Python objects might be ZODB with ZEO.

http://www.zope.org/Wikis/ZODB/FrontPage
http://www.zope.org/Wikis/ZODB/Front...ide/index.html


Another one to consider is wddx, quite useful if you need to share data
between different languages.

--Tim
Oct 11 '05 #4

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

Similar topics

11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
14
by: Howard | last post by:
Hi, I recently had a problem where I decided to store objects in a vector. (Previously, I had always stored pointers in vectors). Well, naturally, when storing an object in a vector, using...
0
by: David Helgason | last post by:
I think those best practices threads are a treat to follow (might even consider archiving some of them in a sort of best-practices faq), so here's one more. In coding an game asset server I want...
45
by: Summercoolness | last post by:
it seems that range() can be really slow: the following program will run, and the last line shows how long it ran for: import time startTime = time.time() a = 1.0
2
by: Jean-Paul Calderone | last post by:
On Mon, 16 Jun 2008 08:39:52 +1000, Ben Finney <bignose+hates-spam@benfinney.id.auwrote: Maybe. I'm no expert on Debian packaging. However, exarkun@boson:~$ ls -l...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.