{ "info": { "author": "leviathan1995", "author_email": "leviathan0992@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Pylsy\n=====\n\n[![Build Status](https://travis-ci.org/Leviathan1995/Pylsy.svg?branch=master)](https://travis-ci.org/Leviathan1995/Pylsy)\n[![PyPI version](https://badge.fury.io/py/Pylsy.svg)](https://badge.fury.io/py/Pylsy)\n\nPylsy is a simple Python library for drawing tables in the terminal/console. Just two lines of code! \n\n![Screenshot](https://raw.githubusercontent.com/Leviathan1995/Pylsy/master/pzi/span.png)\n \nInstall\n-------\n\n pip install pylsy\n\nSample Usage\n------------\n\n```Python\n# In the very first, pylsy needs to be imported\nfrom pylsy import pylsytable\n\n# First, you need to create a list, which will contain the table attributes:\nattributes=[\"name\",\"age\",\"sex\",\"id\",\"time\"]\n\n# Then feed it to PylsyTable to create the table object:\ntable=pylsytable(attributes)\n\n# Now populate the attributes with values. Prepare a list for the names:\nname=[\"sun\",\"lsy\",\"luna\"]\n\n# Add the data into it:\ntable.add_data(\"name\",name)\n\n# If you want to insert some extra values to the same column,\n# you can pass a list as a parameter:\ntable.append_data(\"name\",[\"leviathan\"])\n\n# Just a single value is OK too:\ntable.append_data(\"name\",u\"\u5c0f\u660e\") # Note: everything will be coerced to unicode strings.\n\n# Now with all your attributes and values, we can create our table:\nprint(table)\n\n# With Python 2 things are a bit trickier, since str() is ascii-only and our dear \u5c0f\u660e requires unicode:\nprint(table.__str__()) # The raw unicode-enabled string. Think as `table.__unicode__()`.\n```\n\nLicense\n-------\nMIT\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Leviathan1995/Pylsy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Pylsy", "package_url": "https://pypi.org/project/Pylsy/", "platform": "", "project_url": "https://pypi.org/project/Pylsy/", "project_urls": { "Homepage": "https://github.com/Leviathan1995/Pylsy" }, "release_url": "https://pypi.org/project/Pylsy/3.6/", "requires_dist": null, "requires_python": "", "summary": "Pylsy is a simple library that draws tables in the Terminal.", "version": "3.6" }, "last_serial": 3738689, "releases": { "2.7": [ { "comment_text": "", "digests": { "md5": "6ce8d11f72b1a243872bc23f69afb95d", "sha256": "348b83784d955e49a96d9612ee9d9db07c9e8db663f1e925805be4c74f0f830b" }, "downloads": -1, "filename": "Pylsy-2.7.tar.gz", "has_sig": false, "md5_digest": "6ce8d11f72b1a243872bc23f69afb95d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2504, "upload_time": "2015-12-25T13:48:06", "url": "https://files.pythonhosted.org/packages/a9/9c/0366b1f3386aee819ffefc60605b4094e29e6c911d1d8939486e0c0af9e1/Pylsy-2.7.tar.gz" } ], "2.71": [ { "comment_text": "", "digests": { "md5": "5aa429387600e4202e652411e9aceb7c", "sha256": "6cd352e14703d88563a8f01c8133c7ef32ea1f91a73b890b95aab109368c7370" }, "downloads": -1, "filename": "Pylsy-2.71.tar.gz", "has_sig": false, "md5_digest": "5aa429387600e4202e652411e9aceb7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3427, "upload_time": "2015-12-25T14:09:37", "url": "https://files.pythonhosted.org/packages/d2/ac/66c81d1c8b6233212fcc60bddd2aecd5da2004e52df74d543a22089b4a06/Pylsy-2.71.tar.gz" } ], "3.6": [ { "comment_text": "", "digests": { "md5": "4c125ebee312ea1329e43406c9359196", "sha256": "ec8de4c770bbc7874585cb055b0ac00608a0e111d7bcbdd217963d021384756d" }, "downloads": -1, "filename": "Pylsy-3.6.tar.gz", "has_sig": false, "md5_digest": "4c125ebee312ea1329e43406c9359196", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3430, "upload_time": "2018-04-05T19:00:38", "url": "https://files.pythonhosted.org/packages/6a/08/e10f4aebda3e56341e0e28d3a85f8ed8ea017a4bba347a683c46138f8288/Pylsy-3.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c125ebee312ea1329e43406c9359196", "sha256": "ec8de4c770bbc7874585cb055b0ac00608a0e111d7bcbdd217963d021384756d" }, "downloads": -1, "filename": "Pylsy-3.6.tar.gz", "has_sig": false, "md5_digest": "4c125ebee312ea1329e43406c9359196", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3430, "upload_time": "2018-04-05T19:00:38", "url": "https://files.pythonhosted.org/packages/6a/08/e10f4aebda3e56341e0e28d3a85f8ed8ea017a4bba347a683c46138f8288/Pylsy-3.6.tar.gz" } ] }