I wish to send an object (only one class, but many objects)
from python running on one computer to python on another.
It will be over the internet, so needs to be 'secure'.
Is twisted the only way to go, or is there something
simpler for my app? The code for twisted is fairly simple (I found http://twistedmatrix.com/documents/c...to/pb-copyable)
but the library is a bit heavy and I don't want to go through the
hassle of dependencies/compiling etc if there's a simpler way.
thx in advance
Paul 9 1671
Hi Paul, I wish to send an object (only one class, but many objects) from python running on one computer to python on another. It will be over the internet, so needs to be 'secure'.
Is twisted the only way to go, or is there something simpler for my app? The code for twisted is fairly simple (I found
I don't know if it's simpler, but there's PyRO: http://pyro.sourceforge.net/
Best regards,
Lars
On Tue, 27 Apr 2004 13:00:17 +0000 (UTC)
Paul Sweeney wrote: Is twisted the only way to go, or is there something simpler for my app? The code for twisted is fairly simple (I found http://twistedmatrix.com/documents/c...to/pb-copyable) but the library is a bit heavy and I don't want to go through the hassle of dependencies/compiling etc if there's a simpler way.
Using only modules shipped with python, a simpler way (in term of
dependencies only) would be to pickle the objects and
then send the result throught a socket.
On the other side, you may need to write more code to do that.
--
mutah
"Mutah" <mu***@NOSPAM-libertysurf.fr> wrote in message
news:20040427152051.50234c65.mu***@NOSPAM-libertysurf.fr... On Tue, 27 Apr 2004 13:00:17 +0000 (UTC) Paul Sweeney wrote:
Is twisted the only way to go, or is there something simpler for my app? The code for twisted is fairly simple (I found http://twistedmatrix.com/documents/c...to/pb-copyable) but the library is a bit heavy and I don't want to go through the hassle of dependencies/compiling etc if there's a simpler way.
Using only modules shipped with python, a simpler way (in term of dependencies only) would be to pickle the objects and then send the result throught a socket.
On the other side, you may need to write more code to do that.
I was considering that but there is all the associated problems of knowing
when a complete object has been received, guarding against spoof data being
received from the internet etc.
It is a case of balancing "reinventing the wheel" vs getting a pre-built
wheel but with a huge road-train undesirably attached.
Paul
"Lars Heuer" <py****@quixs.com> wrote in message
news:ma*************************************@pytho n.org... I wish to send an object (only one class, but many objects) from python running on one computer to python on another. It will be over the internet, so needs to be 'secure'.
Is twisted the only way to go, or is there something simpler for my app? The code for twisted is fairly simple (I found
I don't know if it's simpler, but there's PyRO: http://pyro.sourceforge.net/
I meant to say I had looked at that too, but I just want to operate a queue
of objects sent between systems, so the whole name server/URI approach is
quite a lot of unnecessary overhead. Thanks for the post though. :-)
Paul
SSH is typically available (and already running as a daemon) on most
computers I touch these days. It would provide for the secure
transport needed. Any reason not to use it?
--kyler
"Kyler Laird" <Ky***@news.Lairds.org> wrote in message
news:uc************@snout.lairds.org... SSH is typically available (and already running as a daemon) on most computers I touch these days. It would provide for the secure transport needed. Any reason not to use it?
--kyler
It's quite likely this is going the way of xml-rpc over ssh.
Good call, thx
Paul
Paul Sweeney wrote: I don't know if it's simpler, but there's PyRO: http://pyro.sourceforge.net/
I meant to say I had looked at that too, but I just want to operate a queue of objects sent between systems, so the whole name server/URI approach is quite a lot of unnecessary overhead. Thanks for the post though. :-)
Are you aware that it's not necessary to use a name server/URIs?
Pyro can also work without it. See the example at the top of this
page of the manual: http://pyro.sourceforge.net/pyro-manual/8-example.html
Well, you still have to point your client to the location of the
other computer, so that's where the PYROLOC URI comes in, but
this example works without starting a Name server etc.
Regards
Irmen de Jong.
Paul Sweeney wrote: It's quite likely this is going the way of xml-rpc over ssh.
I'm sorry I forgot to mention in my other reply, that Pyro
supports SSL by itself (using the m2crypto module). No SSH
needed to set up a secure shell session.
--Irmen de JOng
"Paul Sweeney" <re*******************@nothypgnal.delrest.co.uk> writes: SSH is typically available (and already running as a daemon) on most computers I touch these days. It would provide for the secure transport needed. Any reason not to use it?
It's quite likely this is going the way of xml-rpc over ssh.
That seems like a bit of overhead for something that might be simpler.
(I'm making guesses about your situation.) Both sides are running
Python so it could just be a matter of pickling the object, pushing it
to the other side, and unpickling it, right?
--kyler This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Paul Moore |
last post by:
I hit a problem yesterday with my mail connection. In a desparate
attempt to understand what was going on, I wanted to log the
connection traffic. After a bit of searching, I found a post on c.l.p...
|
by: Fazer |
last post by:
Hello,
I am very interested in fooling around with Twisted Matrix's HTTP Web
Server. I was thinking if .rpy scripts would run much faster than
traditional CGI scripts?
After looking how...
|
by: Mark Carter |
last post by:
I'm trying to create a mail server in Twisted.
I either get
SMTPSenderRefused
or
SMTPException: SMTP AUTH extension not supported by server.
What do I need to do to get it to work?
|
by: Taki Jeden |
last post by:
Hi
Anybody used wxPython with twisted?
I started putting together a Twisted-based app with wx GUI, and the widgets
just don't work - some controls do not show up etc. - at least on my
system....
|
by: SeSe |
last post by:
Hi, I am new to Twisted. I use a Twisted 1.3.0 on MS Windows XP Home
Edition, my python version is 2.3
I try the TCP echoserv.py and echoclient.py example. But the client
always fail with...
|
by: Christopher Subich |
last post by:
I'm building an application that makes several user-specified internet
connections; twisted meets my needs more or less perfectly.
I'm running into a problem, however, in that twisted is not...
|
by: Matthew Warren |
last post by:
Looking through those docs quickly leads me into quite a bewildering
maze.
As a kind of way to perhaps get me heading in the right direction and
understanding how I start to hang all that...
|
by: sndive |
last post by:
i have a lot of trouble selling twisted a a client lib for network
access
(on embedded platform)
the group i'm a member of wants to write some
unmaintainable threaded blocking junk in c--.
does...
|
by: Jean-Paul Calderone |
last post by:
On Wed, 25 Jun 2008 10:28:10 -0500, Larry Bates <larry.bates@websafe.com`wrote:
Twisted PB goes out of its way to *not* allow arbitrary code specified by
a peer to be executed, actually. :) It...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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,...
|
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: 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...
| |