{ "info": { "author": "Emlyn", "author_email": "emlynoregan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Distributed Computing" ], "description": "# cloudpickle\n\n[![Build Status](https://travis-ci.org/cloudpipe/cloudpickle.svg?branch=master\n )](https://travis-ci.org/cloudpipe/cloudpickle)\n[![codecov.io](https://codecov.io/github/cloudpipe/cloudpickle/coverage.svg?branch=master)](https://codecov.io/github/cloudpipe/cloudpickle?branch=master)\n\n`cloudpickle` makes it possible to serialize Python constructs not supported\nby the default `pickle` module from the Python standard library.\n\n`cloudpickle` is especially useful for cluster computing where Python\nexpressions are shipped over the network to execute on remote hosts, possibly\nclose to the data.\n\nAmong other things, `cloudpickle` supports pickling for lambda expressions,\nfunctions and classes defined interactively in the `__main__` module.\n\n\nInstallation\n------------\n\nThe latest release of `cloudpickle` is available from\n[pypi](https://pypi.python.org/pypi/cloudpickle):\n\n pip install cloudpickle\n\n\nExamples\n--------\n\nPickling a lambda expression:\n\n```python\n>>> import cloudpickle\n>>> squared = lambda x: x ** 2\n>>> pickled_lambda = cloudpickle.dumps(squared)\n\n>>> import pickle\n>>> new_squared = pickle.loads(pickled_lambda)\n>>> new_squared(2)\n4\n```\n\nPickling a function interactively defined in a Python shell session\n(in the `__main__` module):\n\n```python\n>>> CONSTANT = 42\n>>> def my_function(data):\n... return data + CONSTANT\n...\n>>> pickled_function = cloudpickle.dumps(my_function)\n>>> pickle.loads(pickled_function)(43)\n85\n```\n\nRunning the tests\n-----------------\n\n- With `tox`, to test run the tests for all the supported versions of\n Python and PyPy:\n\n pip install tox\n tox\n\n or alternatively for a specific environment:\n\n tox -e py27\n\n\n- With `py.test` to only run the tests for your current version of\n Python:\n\n pip install -r dev-requirements.txt\n PYTHONPATH='.:tests' py.test\n\n\nHistory\n-------\n\n`cloudpickle` was initially developed by [picloud.com](http://web.archive.org/web/20140721022102/http://blog.picloud.com/2013/11/17/picloud-has-joined-dropbox/) and shipped as part of\nthe client SDK.\n\nA copy of `cloudpickle.py` was included as part of PySpark, the Python\ninterface to [Apache Spark](https://spark.apache.org/). Davies Liu, Josh\nRosen, Thom Neale and other Apache Spark developers improved it significantly,\nmost notably to add support for PyPy and Python 3.\n\nThe aim of the `cloudpickle` project is to make that work available to a wider\naudience outside of the Spark ecosystem and to make it easier to improve it\nfurther notably with the help of a dedicated non-regression test suite.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/emlynoregan/yccloudpickle", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "yccloudpickle", "package_url": "https://pypi.org/project/yccloudpickle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/yccloudpickle/", "project_urls": { "Homepage": "https://github.com/emlynoregan/yccloudpickle" }, "release_url": "https://pypi.org/project/yccloudpickle/0.2.2.3/", "requires_dist": null, "requires_python": null, "summary": "Extended pickling support for Python objects + recursive inner function support", "version": "0.2.2.3" }, "last_serial": 2635169, "releases": { "0.2.2.3": [ { "comment_text": "", "digests": { "md5": "e97e3ea12bfdc5bf64db839c4e4d5f3a", "sha256": "2ce4a6a395a58f2d15fcb95a757f7043fb2ab80b93ca63b55eb15a18a37acc9d" }, "downloads": -1, "filename": "yccloudpickle-0.2.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e97e3ea12bfdc5bf64db839c4e4d5f3a", "packagetype": "bdist_wheel", "python_version": "any", "requires_python": null, "size": 14270, "upload_time": "2017-02-11T11:06:10", "url": "https://files.pythonhosted.org/packages/bb/b1/09d35805b5239944378927611085a723092a2fbe840b01f088412b9f349c/yccloudpickle-0.2.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ef0f768078405809297d159859ffdb5", "sha256": "1f2484c6c034e8a22fe2581a20be96579c150a3300270f1011e903fcdd8739c3" }, "downloads": -1, "filename": "yccloudpickle-0.2.2.3.tar.gz", "has_sig": false, "md5_digest": "2ef0f768078405809297d159859ffdb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18946, "upload_time": "2017-02-11T11:05:58", "url": "https://files.pythonhosted.org/packages/55/2f/3ebdca784825d45521e08cddbde3e6f3e255fa5245f7ca3b8a77598abd31/yccloudpickle-0.2.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e97e3ea12bfdc5bf64db839c4e4d5f3a", "sha256": "2ce4a6a395a58f2d15fcb95a757f7043fb2ab80b93ca63b55eb15a18a37acc9d" }, "downloads": -1, "filename": "yccloudpickle-0.2.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e97e3ea12bfdc5bf64db839c4e4d5f3a", "packagetype": "bdist_wheel", "python_version": "any", "requires_python": null, "size": 14270, "upload_time": "2017-02-11T11:06:10", "url": "https://files.pythonhosted.org/packages/bb/b1/09d35805b5239944378927611085a723092a2fbe840b01f088412b9f349c/yccloudpickle-0.2.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ef0f768078405809297d159859ffdb5", "sha256": "1f2484c6c034e8a22fe2581a20be96579c150a3300270f1011e903fcdd8739c3" }, "downloads": -1, "filename": "yccloudpickle-0.2.2.3.tar.gz", "has_sig": false, "md5_digest": "2ef0f768078405809297d159859ffdb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18946, "upload_time": "2017-02-11T11:05:58", "url": "https://files.pythonhosted.org/packages/55/2f/3ebdca784825d45521e08cddbde3e6f3e255fa5245f7ca3b8a77598abd31/yccloudpickle-0.2.2.3.tar.gz" } ] }