{ "info": { "author": "KronoSKoderS", "author_email": "superuser.kronos@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Utilities" ], "description": "[![Build Status](https://travis-ci.org/KronoSKoderS/CalPack.svg?branch=prod)](https://travis-ci.org/KronoSKoderS/CalPack)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d9b9123821ad408aaf1bd09ba15bbe6c)](https://www.codacy.com/app/kronoskoders/CalPack?utm_source=github.com&utm_medium=referral&utm_content=KronoSKoderS/CalPack&utm_campaign=Badge_Grade)\n[![Coverage Status](https://coveralls.io/repos/github/KronoSKoderS/CalPack/badge.svg?branch=prod)](https://coveralls.io/github/KronoSKoderS/CalPack?branch=dev)\n[![Documentation Status](https://readthedocs.org/projects/concorde/badge/?version=latest)](http://concorde.readthedocs.io/en/latest/?badge=latest)\n\n# CalPack\n\nPackets in Python Simplified.\n\nThis python package is everything you need to \"transmorgrify\" your packets:\n\n[![Calvin and Hobbes Strip](http://assets.amuniversal.com/8d40c700deba01317193005056a9545d.png)](http://www.gocomics.com/calvinandhobbes/1987/03/23)\n\nThis package is intended to make creating and/or parsing packets (structured bytecode) on the fly quick and easy. This is a wrapper around\nthe [`ctypes` module](https://docs.python.org/dev/library/ctypes.html) built-in to python. This package is designed\nwith influence from Django's modeling and will look familiar to those that have used it.\n\n## A quick explanation of Packets and how to use them\n\nPackets are structured bytecode used for passing information from one place to another. The most common example is\nthat of a TCP/IP Packet, but isn't necessarily limited to networking packets. Here's a quick example. Let's say we\nwant to make a \"smart\" washing machine by attaching a [Raspberry Pi](https://www.raspberrypi.org/) that then talks to your other smart devices and alerts\nyou when a load of laundry is done and how many loads of laundry you've done that day.\n\n![Example Diagram](https://i.imgur.com/EcRl4HP.png)\n\nOne way to communicate between the Raspberry Pi and your other devices is to send status \"packets\" or byte data\nacross a network. Let's say we want to know the following in our packet:\n\n* Status - a Boolean that represents whether the Washing Machine is running or stopped\n* Number of Loads - an Integer that represents the number of loads done that day\n\nTo create this packet in `CalPack` is simple:\n\n```python\nfrom calpack import models\n\nclass MachineStatus(models.Packet):\n Status = models.BooleanField()\n Num_Loads = models.IntField()\n```\n\nOn our monitoring device (the Raspberry Pi), we can easily create the byte data for the packet by using our new packet:\n\n```python\nstatus_pkt = MachineStatus(\n Status=True,\n Num_Loads=12\n)\n\n# Send the byte data using an assumed custom `send` funcion\nsend(status_pkt.to_bytes())\n```\n\nAnd converting the recieved byte data is simple as well:\n\n```python\n# assuming a `receive` function and returns the byte data of the sent packet\nreceived_data = MachineSatus.from_bytes(receive())\nprint(received_data.status)\n```\n\n## Installation\n\nThis package is maintained in [GitHub](https://github.com/KronoSKoderS/CalPack) and packaged for deployment on [PyPi](https://pypi.python.org/pypi/calpack).\n\nSimply using `pip install calpack` will get this installed.\n\n## SHOW ME THE DOCS\n\nDocumentation is host on [read the docs](https://readthedocs.org/projects/concorde/)\n\n## Python 2 and 3\n\nCurrently this module is designed to work for both Python 2.7+ and 3.3+, however, with the term of life for Python 2 nearing,\nthis package will eventually port entirely over to Python 3.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/KronosKoderS/CalPack/tarball/v2018.6.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/KronosKoderS/CalPack", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "calpack", "package_url": "https://pypi.org/project/calpack/", "platform": "", "project_url": "https://pypi.org/project/calpack/", "project_urls": { "Download": "https://github.com/KronosKoderS/CalPack/tarball/v2018.6.0", "Homepage": "https://github.com/KronosKoderS/CalPack" }, "release_url": "https://pypi.org/project/calpack/2018.6.0/", "requires_dist": null, "requires_python": "", "summary": "Packets in Python made Simple", "version": "2018.6.0" }, "last_serial": 3977787, "releases": { "0.0.1a0": [ { "comment_text": "", "digests": { "md5": "678d65b7607c5b7ae63ffb12d0cd0267", "sha256": "381d72222d09bf6f5510ff49905758e478db064bf8116f9ec8cfc057564082bf" }, "downloads": -1, "filename": "calpack-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "678d65b7607c5b7ae63ffb12d0cd0267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3239, "upload_time": "2017-08-26T06:20:17", "url": "https://files.pythonhosted.org/packages/a4/0c/3cc491f923af778ec8829c6ca876dbb1186bf3390cbb1c4f8a19d4e73003/calpack-0.0.1a0.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8033dd850d0090e19e848ad1d7f1ac26", "sha256": "865ed9f43f98a45b6a7e8992dc1e78c79718e44536b2f02bc87edcea234a061f" }, "downloads": -1, "filename": "calpack-0.0.2.tar.gz", "has_sig": false, "md5_digest": "8033dd850d0090e19e848ad1d7f1ac26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4248, "upload_time": "2017-09-27T22:53:36", "url": "https://files.pythonhosted.org/packages/5c/b7/9512c378a150599e03340de721c0e974d7af09619f97912706dd8a7f07f5/calpack-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b1fe07105e452ce99aec6e59fdd3c026", "sha256": "ecf4926e8ba3f334b0bf8d7ce023a387340221acf7152d5fe4c4332679d924ae" }, "downloads": -1, "filename": "calpack-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b1fe07105e452ce99aec6e59fdd3c026", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5175, "upload_time": "2017-09-30T23:48:44", "url": "https://files.pythonhosted.org/packages/e6/c9/a1c2a19777a6fb38e935f8200adc9191a9a6700dbd5e9a79bfc823d88333/calpack-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "694b5d34717062c3f019629670be9e7a", "sha256": "d1bf0f1e51ba46cfbbcde42568d096e6868cd1342fe651ce7c279c0028efc503" }, "downloads": -1, "filename": "calpack-0.1.0.tar.gz", "has_sig": false, "md5_digest": "694b5d34717062c3f019629670be9e7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6416, "upload_time": "2017-11-23T10:57:28", "url": "https://files.pythonhosted.org/packages/af/c1/784d95babeb4b9a3ff3f3bd26a03afde417984138823a20430601637cb32/calpack-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "427a1a1afa39ee540f942addda00b98d", "sha256": "f0ebd2987562e0ec4b9e1927e87d0d2d8d98307e6821d5f94d2a403271598d41" }, "downloads": -1, "filename": "calpack-0.1.1.tar.gz", "has_sig": false, "md5_digest": "427a1a1afa39ee540f942addda00b98d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6473, "upload_time": "2017-11-25T01:09:02", "url": "https://files.pythonhosted.org/packages/f1/ac/0cd3ea3e13e6a853bfbb93334703c2bcdf597b429637f9dfd344273473e3/calpack-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "96fbd01c5dfc523059677047a3fbe392", "sha256": "c7587a6aa37dcc05de889cf8e00f07f23710c89201267053ba575460db5b24b6" }, "downloads": -1, "filename": "calpack-0.1.2.tar.gz", "has_sig": false, "md5_digest": "96fbd01c5dfc523059677047a3fbe392", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7185, "upload_time": "2017-12-02T02:54:02", "url": "https://files.pythonhosted.org/packages/45/94/4c219d776dcf89ec9eee944768812e69b803f975a8f7c2b759048861d655/calpack-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "53812eda72c49ba83b78e996c011baa5", "sha256": "2b6193cc131c7bdf5e62b8913692a7661f4a011b9350e1d2a6f3a0da83c63689" }, "downloads": -1, "filename": "calpack-0.1.3.tar.gz", "has_sig": false, "md5_digest": "53812eda72c49ba83b78e996c011baa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9360, "upload_time": "2018-02-28T05:51:28", "url": "https://files.pythonhosted.org/packages/f8/3b/6fb0fd964515e582b724ba91b4e7c7212d866c284e35a495a14cd7b9ab5d/calpack-0.1.3.tar.gz" } ], "2018.5.0": [ { "comment_text": "", "digests": { "md5": "1ef5a1210c868a3bdf0d8fad751551d4", "sha256": "81683446796d3066ea0ccf6036b5d7f4cf6b3c692d87b6ef3933dcbcde89d47e" }, "downloads": -1, "filename": "calpack-2018.5.0.tar.gz", "has_sig": false, "md5_digest": "1ef5a1210c868a3bdf0d8fad751551d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9542, "upload_time": "2018-05-09T18:16:38", "url": "https://files.pythonhosted.org/packages/5c/b4/c208f901b57532e011dfb535dec72514a40141ff276b4c48cbf01e463195/calpack-2018.5.0.tar.gz" } ], "2018.5.1": [ { "comment_text": "", "digests": { "md5": "d40b67a33b5b547c05c37dc0c316bafc", "sha256": "47cf1d905886e8187e8a1a9af8c155ac90015a578b4c86c8752b9fc2394b653a" }, "downloads": -1, "filename": "calpack-2018.5.1.tar.gz", "has_sig": false, "md5_digest": "d40b67a33b5b547c05c37dc0c316bafc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10287, "upload_time": "2018-05-09T19:22:02", "url": "https://files.pythonhosted.org/packages/66/bd/5c8c56c95b2807b30962ec34d737017066dc66a2226ac1e23527d04232b1/calpack-2018.5.1.tar.gz" } ], "2018.5.2": [ { "comment_text": "", "digests": { "md5": "595c530505dd8542949dcf17e6b50e8c", "sha256": "38aabdbf69734978643866ebf738d88a142705dae5a39ad4d7c60764fa3c0d30" }, "downloads": -1, "filename": "calpack-2018.5.2.tar.gz", "has_sig": false, "md5_digest": "595c530505dd8542949dcf17e6b50e8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9918, "upload_time": "2018-05-09T19:29:26", "url": "https://files.pythonhosted.org/packages/59/c4/a3a679c33f424a32382544bb02ad522aebcfa38e6a6a239bbb32c1782cac/calpack-2018.5.2.tar.gz" } ], "2018.6.0": [ { "comment_text": "", "digests": { "md5": "b49812f748c934c905164bfbd7cbd598", "sha256": "3d55ddb7b1048ee9b99340b4e5f4bccf642856d8682636460430f2d41dc5c539" }, "downloads": -1, "filename": "calpack-2018.6.0.tar.gz", "has_sig": false, "md5_digest": "b49812f748c934c905164bfbd7cbd598", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10258, "upload_time": "2018-06-19T14:54:08", "url": "https://files.pythonhosted.org/packages/2d/fd/4e0dd85e46a3148d81cc7eb326edfb1760e4b2124f32ec678fd2d28601ef/calpack-2018.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b49812f748c934c905164bfbd7cbd598", "sha256": "3d55ddb7b1048ee9b99340b4e5f4bccf642856d8682636460430f2d41dc5c539" }, "downloads": -1, "filename": "calpack-2018.6.0.tar.gz", "has_sig": false, "md5_digest": "b49812f748c934c905164bfbd7cbd598", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10258, "upload_time": "2018-06-19T14:54:08", "url": "https://files.pythonhosted.org/packages/2d/fd/4e0dd85e46a3148d81cc7eb326edfb1760e4b2124f32ec678fd2d28601ef/calpack-2018.6.0.tar.gz" } ] }