Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

🐍 Service to handle pickled python2 code from multyvac

Resources

License

Releases

No releases published

Packages

No packages published