Skip to main content

Python pickling protocol over any network interface.

Project description

PicklePipe

Linux and MacOS Build Status Windows Build Status Test Suite Coverage Code Health Documentation Build Status Dependency Versions PyPI Version Say Thanks to the Maintainers

Python pickling protocol over any network interface.

Getting Started with PicklePipe

PicklePipe is available on PyPI can be installed with pip.:

$ python -m pip install picklepipe

To install the latest development version from Github:

$ python -m pip install git+git://github.com/SethMichaelLarson/picklepipe.git

If your current Python installation doesn’t have pip available, try get-pip.py

After installing PicklePipe you can use it like any other Python module. Here’s a very simple demonstration of scheduling a single job on a farm.

import picklepipe

# Create a pair of connected pipes.
pipe1, pipe2 = picklepipe.make_pipe_pair()

# Send an object in one end.
pipe1.send_object('Hello, world!')

# And retrieve it from the other.
obj = pipe2.recv_object(timeout=1.0)

assert obj == 'Hello, world!'

# Also can be used to send objects to remote locations!
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('host', 12345))
pipe = picklepipe.PicklePipe(sock)
pipe.send_object('Hello, world!')
pipe.close()

API Reference

The API Reference on readthedocs.io provides API-level documentation.

Support / Report Issues

All support requests and issue reports should be filed on Github as an issue. Make sure to follow the template so your request may be as handled as quickly as possible. Please respect contributors by not using personal contacts for support requests.

Contributing

We happily welcome contributions, please see our guide for Contributors for the best places to start and help.

License

picklepipe is made available under the MIT License. For more details, see LICENSE.txt.

Changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picklepipe-0.0.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

picklepipe-0.0.1-cp35-none-win_amd64.whl (4.8 kB view hashes)

Uploaded CPython 3.5 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page