Skip to content
🐍 Service to handle pickled python2 code from multyvac
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
multyvacinit
tests
.gitignore
.travis.yml
Dockerfile
LICENSE
MANIFEST.in
Makefile
README.md
setup.cfg
setup.py

README.md

runner-py2

Service to handle pickled code from multyvac.

Full example:

$ python -c "import sys; import cloudpickle; cloudpickle.dump((lambda x,y: x+y, (2,3), {}), sys.stdout)" | docker run -i --name rhoyourboat cloudpipe/runner-py2
$ docker diff rhoyourboat
C /tmp
A /tmp/.result
$ docker cp rhoyourboat:/tmp/.result .
$ python -c "import pickle; print(pickle.load(open('.result', 'rb')))"
5

All in one shot:

python -c "import sys; import cloudpickle; cloudpickle.dump((lambda x,y: x+y, (2,3), {}), sys.stdout)"   | docker run -i --name rhoyourboat cloudpipe/runner-py2 && docker cp rhoyourboat:/tmp/.result . && cat .result | python -c "import sys, pickle; print(pickle.load(sys.stdin))" &&   docker stop rhoyourboat
You can’t perform that action at this time.