{ "info": { "author": "Tom Flanagan", "author_email": "tom@zkpq.ca", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "structpack\n==========\n\nA Python library for serializing and deserializing object trees to JSON-compatable values (dicts, lists, strings, ints, floats, bools).\n\n[![Build Status](https://travis-ci.org/Knio/structpack.svg?branch=master)](https://travis-ci.org/Knio/structpack)\n[![Coverage Status](https://coveralls.io/repos/Knio/structpack/badge.png)](https://coveralls.io/r/Knio/structpack)\n\n\nInstallation\n------------\n\nThe recommended way to install structpack is with [pip](http://pypi.python.org/pypi/pip/):\n\n pip install structpack\n\n[![PyPI version](https://badge.fury.io/py/structpack.png)](http://badge.fury.io/py/structpack)\n\n\nExamples\n========\n\n`structpack` is designed to be a base class (`msg`) that you inherit from and add properties to (`bool`, `int`, `float`, `string`, `list`, and `dict`).\n\nThe `msg` class adds methods `pack` and `load` which convert your object to and from native types, respectively.\n\nThe following is a trivial example of how to make a `Point` type using structpack\n\n```python\nimport structpack\nclass Point(structpack.msg):\n x = structpack.float\n y = structpack.float\n z = structpack.float\n\n>>> p1 = Point(1., 2., 3.)\n>>> data = p1.pack()\n>>> print data\n(1.0, 2.0, 3.0)\n\n>>> p2 = Point.load(data)\n>>> print p2\n<__main__.Point object at 0x0000000001EDA390>\n>>> print p2.x, p2.y, p2.z\n1.0 2.0 3.0\n```\n\nMore\n----\n\nPlease see the [test suite](https://github.com/Knio/structpack/blob/master/tests/test_structpack.py) for more examples until they are documented here.\n\n\nTODO\n====\n\n- Docs / examples\n- Type check values\n- Benchmark & optimize", "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/Knio/structpack", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "structpack", "package_url": "https://pypi.org/project/structpack/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/structpack/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Knio/structpack" }, "release_url": "https://pypi.org/project/structpack/1.6.0/", "requires_dist": null, "requires_python": null, "summary": "A Python library for serializing and deserializing object trees to JSON-compatable values (dicts, lists, strings, ints, floats, bools).", "version": "1.6.0" }, "last_serial": 1705977, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "90559ee1b2862c21280706e169d4fdc3", "sha256": "331952cd8541c93a6c5cfea021a3f2dc816ec8cfe74382c2164d4fe10e84a5e2" }, "downloads": -1, "filename": "structpack-0.1.zip", "has_sig": false, "md5_digest": "90559ee1b2862c21280706e169d4fdc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3664, "upload_time": "2013-10-17T03:02:46", "url": "https://files.pythonhosted.org/packages/7d/78/7df8c75e3edbdf7f9efba3bf36faa18dee6baccf036703774addcc8461e2/structpack-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a1b5c5613549bd627aaad6642c8cf5fa", "sha256": "9f1578f5063d1acae5faeb4674547bd08d0882c58053faa4c54c3d330b24e20d" }, "downloads": -1, "filename": "structpack-0.2.zip", "has_sig": false, "md5_digest": "a1b5c5613549bd627aaad6642c8cf5fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4114, "upload_time": "2013-10-23T07:19:58", "url": "https://files.pythonhosted.org/packages/64/ed/b0fc9d9abaad1253a9434034962466479205a235fc166d89359fd742ec09/structpack-0.2.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "4709bedab8480f91472a2b5193a2fc9c", "sha256": "1b14149986a72c32013a128bca2b64aa89cbe4c888325f7651b62dcbc5491e2b" }, "downloads": -1, "filename": "structpack-1.0.1.zip", "has_sig": false, "md5_digest": "4709bedab8480f91472a2b5193a2fc9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4762, "upload_time": "2013-11-07T07:56:58", "url": "https://files.pythonhosted.org/packages/d1/50/f83f32f870db816fbaba0cec83356019a1590884892a0d11e32f443ac550/structpack-1.0.1.zip" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "cdeaa3a1dd5c16e887e5907aa2a981a9", "sha256": "963325d341747a9a963a6a0ab75c30634e2f827f0657cc0138d15bcc93ab56e8" }, "downloads": -1, "filename": "structpack-1.1.0.zip", "has_sig": false, "md5_digest": "cdeaa3a1dd5c16e887e5907aa2a981a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4805, "upload_time": "2013-11-11T07:04:11", "url": "https://files.pythonhosted.org/packages/1d/7f/cbff309b84d9dbc02a48c76e5cb0f52b0cb236fdecd1ab68fa4203962203/structpack-1.1.0.zip" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "7d8915b8e65684ee571398309d5feb46", "sha256": "fe959fb9bda6f88f40fbd4493bcbd999dbbee66fdb9fe31c72bd269071e76df8" }, "downloads": -1, "filename": "structpack-1.1.1.zip", "has_sig": false, "md5_digest": "7d8915b8e65684ee571398309d5feb46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5814, "upload_time": "2013-11-13T06:34:34", "url": "https://files.pythonhosted.org/packages/f2/c9/d67cc2de4447fbf039652d21bf7571fd60576e7343a726587b7884a25eb4/structpack-1.1.1.zip" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "0b935f11960744690e523926b1c42d64", "sha256": "1808b6403e5053a31f79796f6077a3025e32005d6215a8815b0b921b2d6dfc16" }, "downloads": -1, "filename": "structpack-1.2.0.zip", "has_sig": false, "md5_digest": "0b935f11960744690e523926b1c42d64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5840, "upload_time": "2013-11-19T07:52:12", "url": "https://files.pythonhosted.org/packages/81/15/650528c88248003d5b0919f9eb7144fc71703940854f4fb7ef9f5df9461e/structpack-1.2.0.zip" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "5c7832b0fd31d1f9bf66761127f0674f", "sha256": "a6924b9723f1d9d1953755d24a4e4012a4e694317b3785c38d903e4240396204" }, "downloads": -1, "filename": "structpack-1.3.0.zip", "has_sig": false, "md5_digest": "5c7832b0fd31d1f9bf66761127f0674f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5872, "upload_time": "2013-11-26T07:26:34", "url": "https://files.pythonhosted.org/packages/76/66/bd290c11f175010775f62b689192a1ee9a41ae4ecfed4c948b4d64ed02f9/structpack-1.3.0.zip" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "ac11f4e5c24bedeca82fbac80375c18a", "sha256": "2250927e0930364804587bd9ebe0705cd4f885dbfd8b8600652ff66c2b544e5b" }, "downloads": -1, "filename": "structpack-1.4.0.zip", "has_sig": false, "md5_digest": "ac11f4e5c24bedeca82fbac80375c18a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6517, "upload_time": "2014-06-07T04:24:55", "url": "https://files.pythonhosted.org/packages/0e/51/6ab1e6bc79c3635fd3be36cc3a4053b23542433a16efab285bf25ce15820/structpack-1.4.0.zip" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "df6c09d85547730db94c9ccec832e565", "sha256": "403630063b1bac476b9b94c3a6483e72d497c97f929adfb452ba5b6a9ecd6468" }, "downloads": -1, "filename": "structpack-1.5.0.zip", "has_sig": false, "md5_digest": "df6c09d85547730db94c9ccec832e565", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6650, "upload_time": "2014-08-16T01:03:48", "url": "https://files.pythonhosted.org/packages/68/22/c418430d40968f0401924c1fb0fe43d73e3abeacf116f5625c864de249e4/structpack-1.5.0.zip" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "056dc924bf64e337062b97f615c46800", "sha256": "fc2fde8a79b30e4ebfd80c39520daa9b10724233a59f28183c91ff0f299a17b3" }, "downloads": -1, "filename": "structpack-1.6.0.zip", "has_sig": false, "md5_digest": "056dc924bf64e337062b97f615c46800", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6551, "upload_time": "2015-09-03T07:04:23", "url": "https://files.pythonhosted.org/packages/da/a4/e6fce9b228ee614a783dcaafc0cdfab5cbd4cc0948eca1941e1428b8f160/structpack-1.6.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "056dc924bf64e337062b97f615c46800", "sha256": "fc2fde8a79b30e4ebfd80c39520daa9b10724233a59f28183c91ff0f299a17b3" }, "downloads": -1, "filename": "structpack-1.6.0.zip", "has_sig": false, "md5_digest": "056dc924bf64e337062b97f615c46800", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6551, "upload_time": "2015-09-03T07:04:23", "url": "https://files.pythonhosted.org/packages/da/a4/e6fce9b228ee614a783dcaafc0cdfab5cbd4cc0948eca1941e1428b8f160/structpack-1.6.0.zip" } ] }