{ "info": { "author": "Idin", "author_email": "py@idin.ca", "bugtrack_url": null, "classifiers": [], "description": "# Slytherin\nSlytherin is a collection of useful but lonely functions and classes \nthat don't belong to other libraries.\n\n## Installation\n```bash\npip install slytherin\n```\n\n## Usage\n\n### get_size(obj)\nThe *get_size()* method calculates the memory footprint of a Python object recursively. \n\nThe *exclude_objects* argument is a list of objects and is optional with the default value\nof None. \nAny object in the *exclude_objects* list will be excluded from the recursive search. \nIt can be used to avoid double counting the size when objects point to each other. \n\n```python\nfrom slytherin import get_size\nget_size(obj=[1,2,3], exclude_objects=None)\n\nimport pandas as pd\nget_size(obj=pd.DataFrame({'id': range(1000), 'name':['Godric', 'Helga', 'Rowena', 'Salazar']*250}))\n```\n\n### colour(text, text_colour, style, background_colour)\nThe *colour()* method can be used to add colour to printing text.\n\nThe colour are integers from 0 to 7:\n* black: 0\n* red: 1\n* green: 2\n* yellow: 3\n* blue: 4\n* purple: 5\n* cyan: 6\n* white: 7\n\nThe *style* argument is an integer between 0 and 5:\n* normal: 0\n* bold: 1\n* underline: 2\n* negative1: 3\n* negative2: 5\n\n```python\nfrom slytherin import colour\nprint(colour(text='Hello world!', text_colour=4))\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/idin/slytherin", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "slytherin", "package_url": "https://pypi.org/project/slytherin/", "platform": "", "project_url": "https://pypi.org/project/slytherin/", "project_urls": { "Homepage": "https://github.com/idin/slytherin" }, "release_url": "https://pypi.org/project/slytherin/1.0.3/", "requires_dist": null, "requires_python": "~=3.6", "summary": "Python library of useful but lonely functions and classes", "version": "1.0.3" }, "last_serial": 4970593, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "87631e279875615414f70dabcf2dc673", "sha256": "1dd04fe9682c61602d858a61a2f6c383d421a8b6ca5f97c7f50341c7d55685ff" }, "downloads": -1, "filename": "slytherin-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "87631e279875615414f70dabcf2dc673", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 13485, "upload_time": "2019-02-27T22:20:49", "url": "https://files.pythonhosted.org/packages/8c/c6/b73b2dd9286adb47e0864972c6b8ddc6c2dfd93dc19df077757a6a5e78fb/slytherin-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "34691e1edadf8ec45b9ec444471fe6a5", "sha256": "5f8e6a50bde13b2bf887bfc7dd3f60a27d209c21421dfc63768d9afefa996c0b" }, "downloads": -1, "filename": "slytherin-0.2.tar.gz", "has_sig": false, "md5_digest": "34691e1edadf8ec45b9ec444471fe6a5", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 7511, "upload_time": "2019-02-27T22:20:51", "url": "https://files.pythonhosted.org/packages/de/6b/0e5bf8da64d96631849f7edc9626028d5b580fe8fab02fa5fee394d528d1/slytherin-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7b043b106a2d41ff69c62581885892b2", "sha256": "9fbce46006f079c3623c3a434439146bfd78c0744381bcbfa891d27a9a2828bd" }, "downloads": -1, "filename": "slytherin-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "7b043b106a2d41ff69c62581885892b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 13513, "upload_time": "2019-02-27T22:22:58", "url": "https://files.pythonhosted.org/packages/c3/ba/8a64df6a4f65ff1d1d275522c3f203ac3e28d1dd0c4e39e2f12d041d1c63/slytherin-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d9453126ba02d25fa1667c5752d78bd9", "sha256": "b3ac72619b0b9d2d09f3456dbdf3518c6e2948a689a11396800af09054998ee3" }, "downloads": -1, "filename": "slytherin-0.3.tar.gz", "has_sig": false, "md5_digest": "d9453126ba02d25fa1667c5752d78bd9", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 7587, "upload_time": "2019-02-27T22:23:00", "url": "https://files.pythonhosted.org/packages/52/9f/c0c9e5bed2905b4ed2f3f74262761600e2f6ab13a343e16943259a5361eb/slytherin-0.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "3614f122211f7ebaccff533b5219c9b3", "sha256": "bc30d7aba55575f841a3b012ac24e2cfc3af371761924c0278391103e5297bb8" }, "downloads": -1, "filename": "slytherin-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3614f122211f7ebaccff533b5219c9b3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 13697, "upload_time": "2019-03-01T19:29:08", "url": "https://files.pythonhosted.org/packages/bd/77/fc2fe6631c81faf9d7d4b03e04c88fbe15e0e186feb206da38d7fb3a8dc2/slytherin-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8c71c559979ea992ebf27fc6ef32ee45", "sha256": "24ece3ab281babea4acfc40090734472b044656b0a1bba7aac4b6a916a80e827" }, "downloads": -1, "filename": "slytherin-1.0.0.tar.gz", "has_sig": false, "md5_digest": "8c71c559979ea992ebf27fc6ef32ee45", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 7730, "upload_time": "2019-03-01T19:29:10", "url": "https://files.pythonhosted.org/packages/f2/57/d1822fc2fc8ef36c0fbdbc09a500c3be603c13b71f8793d35194e61612ac/slytherin-1.0.0.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "46cb57d7dd647f90f2cb769586f1a439", "sha256": "bfd8629ac7827dff2e8380a305f018beca30fbc37927f62e7dd069f0c3da4b4b" }, "downloads": -1, "filename": "slytherin-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "46cb57d7dd647f90f2cb769586f1a439", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 14431, "upload_time": "2019-03-22T00:27:32", "url": "https://files.pythonhosted.org/packages/06/30/1e6490ee18f1f034b4a5fd53e5d4bbd72701ef347030a64def3bd168b6e1/slytherin-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1adeb014ef060c1e98deeaee6b43aca3", "sha256": "ec3e1b4e1838038dea9212826ccb274e156d2e14f0b7fdc943076f85885902c7" }, "downloads": -1, "filename": "slytherin-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1adeb014ef060c1e98deeaee6b43aca3", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 9077, "upload_time": "2019-03-22T00:27:33", "url": "https://files.pythonhosted.org/packages/ee/5d/877cced75466df0ce992849dfac52566aac5e82198d771dc1016a61e6266/slytherin-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "46cb57d7dd647f90f2cb769586f1a439", "sha256": "bfd8629ac7827dff2e8380a305f018beca30fbc37927f62e7dd069f0c3da4b4b" }, "downloads": -1, "filename": "slytherin-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "46cb57d7dd647f90f2cb769586f1a439", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 14431, "upload_time": "2019-03-22T00:27:32", "url": "https://files.pythonhosted.org/packages/06/30/1e6490ee18f1f034b4a5fd53e5d4bbd72701ef347030a64def3bd168b6e1/slytherin-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1adeb014ef060c1e98deeaee6b43aca3", "sha256": "ec3e1b4e1838038dea9212826ccb274e156d2e14f0b7fdc943076f85885902c7" }, "downloads": -1, "filename": "slytherin-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1adeb014ef060c1e98deeaee6b43aca3", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 9077, "upload_time": "2019-03-22T00:27:33", "url": "https://files.pythonhosted.org/packages/ee/5d/877cced75466df0ce992849dfac52566aac5e82198d771dc1016a61e6266/slytherin-1.0.3.tar.gz" } ] }