{ "info": { "author": "Stefan C. Mueller", "author_email": "scm@smurn.org", "bugtrack_url": null, "classifiers": [], "description": "picklesize - Calculates the pickled size of an object\n=============================================================\n\nSometimes it is handy to know how much space an object will need when it\nwill be serialized with `pickle` without actually pickling it. Especially\nwhen the object is large, pickling can be slow and memory consuming.\n\nThis library can calculate the exact space requirement without actually\npickling it. It still has to make a pass through the object tree, which\ntakes time, especially with many small objects. The major advantage is that\nit won't take significant memory. \n\n`picklesize` has special support for `numpy` arrays to calculate the\nsize without the `array`->`str`->`file` procedure of regular pickling that\nrequires at least two copy operations.\n\n-----\nUsage\n-----\n\nThe API is kept similar to the one of `pickle`::\n\n\timport picklesize\n\tnbytes = picklesize.picklesize(obj, protocol=pickle.HIGHEST_PROTOCOL)\n\t\nCurrently only protocol `2` (better known as `pickle.HIGHEST_PROTOCOL` )\nis supported.\n\n-----------------------------------\nBug Reports and other contributions\n-----------------------------------\n\nThis project is hosted here `picklesize github page\n`_.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/smurn/picklesize", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "picklesize", "package_url": "https://pypi.org/project/picklesize/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/picklesize/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/smurn/picklesize" }, "release_url": "https://pypi.org/project/picklesize/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Calculates the pickled size of an object", "version": "0.1.1" }, "last_serial": 1643443, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "84f72e36dd4ebc7e5cf250fedca91b35", "sha256": "cdcbe1eb04b3cd24450a07f4f835ce42f8eaf529bf585a3bb4bf2b3cca9d1a59" }, "downloads": -1, "filename": "picklesize-0.1.0.zip", "has_sig": false, "md5_digest": "84f72e36dd4ebc7e5cf250fedca91b35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9069, "upload_time": "2015-07-21T10:29:56", "url": "https://files.pythonhosted.org/packages/4b/a3/aab262408a7007cf30b2f52c4a7b97b3c580b0f3b97be1616b540dc6ccea/picklesize-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4718bceadda5b9b8f2e4b14e550c6e46", "sha256": "2d1eaf0f6631f2ee7bcb5716671f9a17bafef79ba612d634b95c3ad20d21fd93" }, "downloads": -1, "filename": "picklesize-0.1.1.zip", "has_sig": false, "md5_digest": "4718bceadda5b9b8f2e4b14e550c6e46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9451, "upload_time": "2015-07-21T15:26:02", "url": "https://files.pythonhosted.org/packages/8b/86/4006afb86ff69fad6a3c59750c7af2086c55752f8dd5e07038e09e0bc65a/picklesize-0.1.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4718bceadda5b9b8f2e4b14e550c6e46", "sha256": "2d1eaf0f6631f2ee7bcb5716671f9a17bafef79ba612d634b95c3ad20d21fd93" }, "downloads": -1, "filename": "picklesize-0.1.1.zip", "has_sig": false, "md5_digest": "4718bceadda5b9b8f2e4b14e550c6e46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9451, "upload_time": "2015-07-21T15:26:02", "url": "https://files.pythonhosted.org/packages/8b/86/4006afb86ff69fad6a3c59750c7af2086c55752f8dd5e07038e09e0bc65a/picklesize-0.1.1.zip" } ] }