Skip to main content

Pyro5

Remote objects communication library, fifth major version

https://img.shields.io/badge/say-thanks-ff69b4.svg https://travis-ci.org/irmen/Pyro5.svg?branch=master https://img.shields.io/pypi/v/Pyro5.svg https://anaconda.org/conda-forge/pyro5/badges/version.svg https://img.shields.io/lgtm/grade/python/g/irmen/Pyro5.svg?logo=lgtm&logoWidth=18 https://img.shields.io/lgtm/alerts/g/irmen/Pyro5.svg?logo=lgtm&logoWidth=18

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 to call objects on other machines. Pyro is a pure Python library so it runs on many different platforms and Python versions.

Pyro5 is the next major version of the Pyro library and requires Python 3.5 or later.

Documentation

Docs are here: https://pyro5.readthedocs.io/ (they are still being updated from Pyro4 to Pyro5)

What has changed since Pyro4

If you’re familiar with Pyro4, most of the things are the same in Pyro5. These are the changes though:

  • Requires Python 3.5 or newer.

  • the Pyro5 API is redesigned and this library is not compatible with Pyro4 code (although everything should be familiar):

    • Pyro5 is the new package name (duh)

    • restructured the submodules, renamed some submodules (naming -> nameserver, message -> protocol, util -> serializers)

    • most classes and method names are the same or at least similar but may have been shuffled around to other modules

    • all toplevel functions are renamed to pep8 code style (but class method names are unchanged from Pyro4 for now)

    • instead of the global package namespace you should now import Pyro5.api if you want to have one place to access the most important things

    • compatibility layer: to make upgrading easier there’s a (limited) Pyro4 compatibility layer, enable this by from Pyro5.compatibility import Pyro4 at the top of your modules. Read the docstring of this module for more details.

  • Proxy moved from core to new client module

  • Daemon moved from core to new server module

  • no support for unsafe serializers AT ALL (pickle, dill, cloudpickle) - only safe serializers (serpent, marshal, json, msgpack)

  • for now, requires msgpack to be installed as well as serpent.

  • no need anymore for the ability to configure the accepted serializers in a daemon, because of the previous change

  • removed some other obscure config items

  • removed all from future imports and all sys.version_info checks because we’re Python 3 only

  • removed Flame (utils/flameserver.py, utils/flame.py) (although maybe the remote module access may come back in some form)

  • moved test.echoserver to utils.echoserver (next to httpgateway)

  • threadpool module moved into the same module as threadpool-server

  • moved the multiplex and thread socketservers modules into main package

  • no custom futures module anymore (you should use Python’s own concurrent.futures instead)

  • async proxy removed (may come back but probably not directly integrated into the Proxy class)

  • batch calls now via client.BatchProxy, no convenience functions anymore (‘batch’)

  • nameserver storage option ‘dbm’ removed (only memory and sql possible now)

  • naming_storage module merged into nameserver module

  • no Hmac key anymore, use SSL and 2-way certs if you want true security

  • metadata in proxy can no longer be switched off

  • having to use the @expose decorator to expose classes or methods can no longer be switched off

  • @expose and other decorators moved from core to new server module

  • now prefers ipv6 over ipv4 if your os agrees

  • autoproxy always enabled for now (but this feature may be removed completely though)

  • values from constants module scattered to various other more relevant modules

  • util traceback and excepthook functions moved to errors module

  • util methods regarding object/class inspection moved to new server module

  • rest of util module renamed to serializers module

  • replaced deprecated usages of optparse with argparse

  • moved metadata search in the name server to a separate yplookup method (instead of using list as well)

  • proxy doesn’t have a thread lock anymore and no can longer be shared across different threads. A single thread is the sole “owner” of a proxy. Another thread can use proxy._pyroClaimOwnership to take over.

  • simplified serializers by moving the task of compressing data to the protocol module instead (where it belonged)

  • optimized wire messages (less code, sometimes less data copying by using memoryviews, no more checksumming)

  • much larger annotations possible (4Gb instead of 64Kb) so it can be (ab)used for things like efficient binary data transfer

  • annotations on the protocol message are now stored as no-copy memoryviews. A memoryview doesn’t support all methods you might expect so sometimes it may be required now to convert it to bytes or bytearray in your own code first, before further processing. Note that this will create a copy again, so it’s best avoided.

@TODO:

  • separate protocol and network i/o logic to allow for async server implementation.

Metadata

Release files for Pyro5 5.5.1

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.5.1
File Size Uploaded Provenance Actions
Pyro5-5.5.1.tar.gz 220.9 kB Without provenance Details for Pyro5-5.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 297.5 kB

Release files / Pyro5-5.5.1.tar.gz

Download URL Pyro5-5.5.1.tar.gz
Size 220.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fe7998b0bfab7e6f1bf02fa7d69e4b4c53305da745bae07d604eeea139316828
BLAKE2b-256 checksum
How to use checksums
ae2ae8ff21923fab9ed5bb1bb5915c0cd41198a9497dbf7cc358a549259c728a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Release files / Pyro5-5.5.1-py3-none-any.whl

Download URL Pyro5-5.5.1-py3-none-any.whl
Size 76.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28a1cc066fffae581ae1ace87fe83509ed5a0b5a38646d6661199c8bc867252a
BLAKE2b-256 checksum
How to use checksums
d20a46300197547217e40be33667a4f32dec26cdfbb6a06a7cb4fac7b0d4a08b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Security for Pyro5 5.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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