Di
Download
1 / 19

distributed programming with pyropython remote objectsalfredo dezapycon 2010 - PowerPoint PPT Presentation


  • 398 Views
  • Uploaded on

Di stributed Programming with PYRO (PYthon Remote Objects) Alfredo Deza PyCon 2010. “ Simple to get going with, but is already quite powerful even in the simplest form ” Irmen de Jong. Distributed Object Technology Remote Objects behave like local ones No external dependencies

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'distributed programming with pyropython remote objectsalfredo dezapycon 2010' - elina


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Slide1 l.jpg

Distributed Programming with PYRO

(PYthon Remote Objects)

Alfredo Deza

PyCon 2010


Slide2 l.jpg

Simple to get going with,

but is already quite powerful

even in the simplest form”

Irmen de Jong


Slide3 l.jpg

  • Distributed Object Technology

  • Remote Objects behave like local ones

  • No external dependencies

  • Multi-threaded by default

  • Automatic reconnection

  • Heavily Tested


Slide4 l.jpg




Slide7 l.jpg

Examples

One master, one slave

Send tasks,

instant feedback


Slide8 l.jpg

1 pyroloc ='PYROLOC://127.0.1.1:766/remote'

2 task = Pyro.core.getProxyForURI(pyroloc)

3 task.remote()


Slide9 l.jpg

Naming Service

dude where is my object?



Slide11 l.jpg

Android calls Nexus

Nexus calls Android

But Android tries to call Nexus... again?!?!


Slide12 l.jpg

Nexus: “The number you have dialed

doesn't exist”

ConnectionClosedError


Slide13 l.jpg

Validation

and encryption


Slide14 l.jpg

SSL SERVER

1 Pyro.config.PYROSSL_CERT="server.pem"

2 Pyro.config.PYROSSL_KEY="server.key"

3 daemon = Pyro.core.Daemon(prtcol='PYROSSL')

4 daemon.setNewConnectionValidator(printCertValidator())

SSL CLIENT

1 Pyro.config.PYROSSL_CERT="client.pem"


Slide15 l.jpg

Examples

handle remote services

the website is down


Slide17 l.jpg

Examples

why not to use Pyro?


Slide18 l.jpg

Examples

References:

PYRO:

http://pyro.sourceforge.net/

This Presentation and Code:

http://www.alfredodeza.com/pycon_2010.tar.gz


Slide19 l.jpg

Thanks!

[email protected]

http://www.alfredodeza.com

this presentation was proudly made with Linux, Mercurial and other open source tools


ad