Skip to main content

Remote objects communication library

https://img.shields.io/pypi/v/Pyro5.svg https://anaconda.org/conda-forge/pyro5/badges/version.svg

Project status: super low maintenance mode. Not really worked on anymore, only reported bugs will be looked at.

Info

Pyro enables you to build applications in which objects can talk to each other over the network, with minimal programming effort. You can just use normal Python method calls, and Pyro takes care of locating the right object on the right computer to execute the method. It is designed to be very easy to use, and to stay out of your way. But it also provides a set of powerful features that enables you to build distributed applications rapidly and effortlessly. Pyro is a pure Python library and runs on many different platforms and Python versions.

Pyro is copyright © Irmen de Jong (irmen@razorvine.net | http://www.razorvine.net). Please read the file license.

Pyro can be found on Pypi as Pyro5. Source is on Github: https://github.com/irmen/Pyro5 Documentation is here: https://pyro5.readthedocs.io/

Pyro5 is the current version of Pyro. Pyro4 is the predecessor that only gets important bugfixes and security fixes, but is otherwise no longer being improved. New code should use Pyro5 if at all possible.

Features

  • written in 100% Python so extremely portable, supported on CPython 3 and Pypy 3

  • works between different system architectures and operating systems.

  • able to communicate between different Python versions transparently.

  • defaults to a safe serializer (serpent) that supports many Python data types.

  • supports different serializers (serpent, json, marshal, msgpack).

  • can use IPv4, IPv6 and Unix domain sockets.

  • optional secure connections via SSL/TLS (encryption, authentication and integrity), including certificate validation on both ends (2-way ssl).

  • lightweight client library available for .NET and Java native code (‘Pyrolite’, provided separately).

  • designed to be very easy to use and get out of your way as much as possible, but still provide a lot of flexibility when you do need it.

  • name server that keeps track of your object’s actual locations so you can move them around transparently.

  • yellow-pages type lookups possible, based on metadata tags on registrations in the name server.

  • support for automatic reconnection to servers in case of interruptions.

  • automatic proxy-ing of Pyro objects which means you can return references to remote objects just as if it were normal objects.

  • one-way invocations for enhanced performance.

  • batched invocations for greatly enhanced performance of many calls on the same object.

  • remote iterator on-demand item streaming avoids having to create large collections upfront and transfer them as a whole.

  • you can define timeouts on network communications to prevent a call blocking forever if there’s something wrong.

  • remote exceptions will be raised in the caller, as if they were local. You can extract detailed remote traceback information.

  • http gateway available for clients wanting to use http+json (such as browser scripts).

  • custom handshake data can be exchanged during connection setup.

  • message annotations support attaching custom metadata to every call.

  • correlation ids on every call for end-to-end request tracing.

  • SerializedBlob for efficient transfer of large serialized data blobs.

  • stable network communication code that has worked reliably on many platforms for over a decade.

  • can hook onto existing sockets created for instance with socketpair() to communicate efficiently between threads or sub-processes.

  • possibility to integrate Pyro’s event loop into your own (or third party) event loop.

  • three different possible instance modes for your remote objects (singleton, one per session, one per call).

  • many simple examples included to show various features and techniques.

  • large amount of unit tests and high test coverage.

  • reliable and established: built upon more than 20 years of existing Pyro history, with ongoing support and development.

Release files for Pyro5 5.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Pyro5 5.17
File Size Uploaded
pyro5-5.17.tar.gz 268.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Pyro5 5.17
File Interpreter ABI Platform
pyro5-5.17-py3-none-any.whl Python 3 none any Details

Total release size: 348.4 kB

Release files / pyro5-5.17.tar.gz

Download URL pyro5-5.17.tar.gz
Size 268.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cfac69638d80943aff9cc5f1466755dd0fef8aed0bb4bda41b5eb045818ce6fc
BLAKE2b-256 checksum
How to use checksums
bab9312055148dbd9d0c829d30e0fbc0cff9bcc6c6311bada80737879c7f5cc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / pyro5-5.17-py3-none-any.whl

Download URL pyro5-5.17-py3-none-any.whl
Size 79.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e08866d46fe4e315fd1a6403c66e354a6bc75c5cc3d19cd3495bb292ece4eaa
BLAKE2b-256 checksum
How to use checksums
2462878386c290088c6f614bf50e59c362e23c8aaa86de9a1d74d4ee67108736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

5.17 This release

2 release files

5.16

2 release files

5.15

2 release files

5.14

2 release files

5.13.1

2 release files

5.13

2 release files

5.12

2 release files

5.11

2 release files

5.10

2 release files

5.9.2

2 release files

5.9.1

2 release files

5.9

2 release files

5.8

2 release files

5.7

2 release files

5.6

2 release files

5.5.1

2 release files

5.5

2 release files

5.4

2 release files

5.3

2 release files

5.2

2 release files

5.1

2 release files

5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page