{ "info": { "author": "gojuukaze", "author_email": "ikaze_email@163.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Terminals" ], "description": "terminal_layout\n===============\n\n| The project help you to quickly build layouts in terminal\n| (\u8fd9\u4e2a\u4e00\u4e2a\u547d\u4ee4\u884cui\u5e03\u5c40\u5de5\u5177)\n\n|image0|\n\n|asciicast|\n\nlink\n====\n\n- `All Demo`_\n- `Docs`_\n- https://asciinema.org/a/226120\n\ninstall\n=======\n\n.. code:: bash\n\n pip install terminal-layout\n\nUsage\n=====\n\n- easy demo:\n\n.. code:: python\n\n import time\n from terminal_layout import *\n\n ctl = LayoutCtl(TextView('id1', 'hello world!', width=20, fore=Fore.red, back=Back.green))\n\n ctl.draw()\n\n time.sleep(2)\n\n view = ctl.find_view_by_id('id1')\n view.text = 'hi world'\n ctl.re_draw()\n\n|image2|\n\n- use table layout:\n\n.. code:: python\n\n from terminal_layout import *\n\n ctl = LayoutCtl.quick(TableLayout,\n [\n [TextView('title', 'Student', fore=Fore.black, back=Back.yellow, width=17,\n gravity=Gravity.center)],\n\n [TextView('', 'No.', width=5, back=Back.yellow),\n TextView('', 'Name', width=12, back=Back.yellow)],\n\n [TextView('st1_no', '1', width=5, back=Back.yellow),\n TextView('st1_name', 'Bob', width=12, back=Back.yellow)],\n\n [TextView('stw_no', '2', width=5, back=Back.yellow),\n TextView('st1_name', 'Tom', width=12, back=Back.yellow)]\n ]\n\n )\n\n ctl.draw()\n\n|image3|\n\n- use python2 unicode\n\n.. code:: python\n\n # -*- coding: utf-8 -*-\n from terminal_layout import *\n import sys\n reload(sys)\n sys.setdefaultencoding('utf-8')\n\n ctl = LayoutCtl.quick(TableLayout,\n [\n [TextView('', u'\u4e2d\u6587\uff0c\u4f60\u597d', back=Back.cyan, width=Width.wrap)],\n [TextView('', u'\u4e2d\u6587\uff0c\u4f60\u597d', back=Back.cyan, width=6)],\n [TextView('', u'\u65e5\u672c\u8a9e\uff0c\u3053\u3093\u306b\u3061\u306f', back=Back.cyan, width=Width.wrap)],\n ]\n\n )\n\n ctl.draw()\n\n|image4|\n\nProperties\n----------\n\n\u5c5e\u6027\u8bf4\u660e\n\n- fore & back\n\n.. code:: python\n\n TextView('','fore',fore=Fore.red)\n TextView('','back',back=Back.red)\n\n|image5|\n\n- style\n\n.. code:: python\n\n TextView('','style',style=Style.dim)\n\n|image6|\n\n- width\n\n.. code:: python\n\n TextView('','width',width=10)\n\n|image7|\n\n- weight\n\n.. code:: python\n\n TextView('','weight',weight=1)\n\n|image8|\n\n- gravity\n\n.. code:: python\n\n TextView('','gravity',gravity=Gravity.left)\n\n|image9|\n\n- visibility\n\n.. code:: python\n\n TextView('','',visibility=Visibility.visible)\n\n|image10|\n\n- ex_style\n\n**not support windows**\n\n.. code:: python\n\n from terminal_layout import *\n TextView('','ex_style',style=Style.ex_blink)\n\n|image11|\n\n- ex_fore & ex_back\n\n**not support windows**\n\n.. code:: python\n\n from terminal_layout import *\n TextView('','ex_fore',fore=Fore.ex_red_1)\n TextView('','ex_back',back=Back.ex_red_1)\n\n|image12|\n\n.. _All Demo: https://github.com/gojuukaze/terminal_layout/tree/master/demo\n.. _Docs: https://terminal-layout.readthedocs.io\n\n.. |image0| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/demo.gif\n.. |asciicast| image:: https://asciinema.org/a/226120.svg\n :target: https://asciinema.org/a/226120\n.. |image2| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/hello.png\n.. |image3| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/table.png\n.. |image4| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/py2.png\n.. |image5| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/color.jpeg\n :scale: 50%\n.. |image6| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/style.jpeg\n :scale: 50%\n.. |image7| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/width.jpeg\n :scale: 50%\n.. |image8| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/weight.jpeg\n :scale: 50%\n.. |image9| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/gravity.jpeg\n :scale: 50%\n.. |image10| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/visibility.jpeg\n :scale: 50%\n.. |image11| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/ex_style.jpeg\n :scale: 50%\n.. |image12| image:: https://github.com/gojuukaze/terminal_layout/raw/master/pic/ex_color.jpeg\n :scale: 50%\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gojuukaze/terminal_layout", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "terminal-layout", "package_url": "https://pypi.org/project/terminal-layout/", "platform": "OSX", "project_url": "https://pypi.org/project/terminal-layout/", "project_urls": { "Documentation": "https://terminal-layout.readthedocs.io", "Homepage": "https://github.com/gojuukaze/terminal_layout", "Source": "https://github.com/gojuukaze/terminal_layout" }, "release_url": "https://pypi.org/project/terminal-layout/1.0.5/", "requires_dist": [ "colorama (==0.4.1)", "colored (==1.3.93)", "backports.shutil-get-terminal-size" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "The project help you to quickly build layouts in terminal (\u547d\u4ee4\u884cui\u5e03\u5c40\u5de5\u5177)", "version": "1.0.5" }, "last_serial": 4801819, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "58be545cb11ad5cede4ce9c98519ce3c", "sha256": "402bbfcb05113b6b2482b8f28ec79a2e81bfc3b2376115573a31235a179ace27" }, "downloads": -1, "filename": "terminal_layout-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "58be545cb11ad5cede4ce9c98519ce3c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 34737, "upload_time": "2019-02-10T09:02:33", "url": "https://files.pythonhosted.org/packages/03/cc/844c50ea21c159a1439c4d7cbd1eeae272cb2be0a1f8d694f74a95debbea/terminal_layout-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e70aa22ad13139d0e91f7a915512918f", "sha256": "5a68b8fa495db889320aed0cdb325f40a47e82985d8fd05a72a78560e8769b42" }, "downloads": -1, "filename": "terminal_layout-1.0.2.tar.gz", "has_sig": false, "md5_digest": "e70aa22ad13139d0e91f7a915512918f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 17141, "upload_time": "2019-02-10T09:02:37", "url": "https://files.pythonhosted.org/packages/09/12/786c9ca310e1faaa3d1beaf8f4d2228cf58420f1216aed09ab08bd9fcbed/terminal_layout-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "4bfff2135b712e61c12fb2265b3688fa", "sha256": "7221e8ac8baed5567d2c87b2ac5e33b0f205bd0cf78abdd89f7c65bc0937c397" }, "downloads": -1, "filename": "terminal_layout-1.0.3-py3.6.egg", "has_sig": false, "md5_digest": "4bfff2135b712e61c12fb2265b3688fa", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 52569, "upload_time": "2019-02-10T09:37:47", "url": "https://files.pythonhosted.org/packages/8f/1c/49794feb6681f636ae52cdbf2982a093c1dee42c79907b2584bcc9e0c1bd/terminal_layout-1.0.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "b782e07eb241a766e9daa32833541222", "sha256": "192543e89ddfbec975feef8f6e8f9186dc6d9fac6fe23f52dd7b6982093ace66" }, "downloads": -1, "filename": "terminal_layout-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "b782e07eb241a766e9daa32833541222", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 34751, "upload_time": "2019-02-10T09:04:48", "url": "https://files.pythonhosted.org/packages/b8/a3/e0c8bd5b38d365c1222436a5e18e9844bf924e48a980e577599fd466abda/terminal_layout-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fa1f7dbc878a366acc01e55fe4a709b6", "sha256": "c6f186a475ca68f2bccf1f197df99d71353f83ccf6ad2af7198e2ffa320f4407" }, "downloads": -1, "filename": "terminal_layout-1.0.3.tar.gz", "has_sig": false, "md5_digest": "fa1f7dbc878a366acc01e55fe4a709b6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 17173, "upload_time": "2019-02-10T09:04:50", "url": "https://files.pythonhosted.org/packages/33/d0/fd5b2950583575dca98663c806b1233ef2dd59d05756f661315a5a1c9afd/terminal_layout-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "196a25f052eec54811ab7941b6eb66dc", "sha256": "ebcb01cd33f720b10189daaa6eff089ee13fce581aeac84fdad407d072fe72cc" }, "downloads": -1, "filename": "terminal_layout-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "196a25f052eec54811ab7941b6eb66dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 34757, "upload_time": "2019-02-10T09:37:43", "url": "https://files.pythonhosted.org/packages/65/4a/214e54b06f5699f60afa6582ae5cc8f33a014bb8e6c42c6aa222e6288294/terminal_layout-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "75b4d9bbbf6751743721900b45f73ab6", "sha256": "3deb73ddadd049d1c9cb93430e72ccd988bad7ae118c844eaabb4ff47235c3b8" }, "downloads": -1, "filename": "terminal_layout-1.0.4.tar.gz", "has_sig": false, "md5_digest": "75b4d9bbbf6751743721900b45f73ab6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 17173, "upload_time": "2019-02-10T09:37:50", "url": "https://files.pythonhosted.org/packages/95/39/2db51f5e5a4d165153bd56ccbbaacb3c526cc04b4da60db616fc5b65e637/terminal_layout-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "3d30f938e473106c9b9b0242797e0ede", "sha256": "f4af7222d7bee7351ffe4d5d85718890f9857d7c072dacd776cc1b8139b5e3fc" }, "downloads": -1, "filename": "terminal_layout-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "3d30f938e473106c9b9b0242797e0ede", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 34817, "upload_time": "2019-02-10T10:11:50", "url": "https://files.pythonhosted.org/packages/e2/05/57b1e3434992fae4d23e95ad452b01aff20464ad6d51ef5869fb4e8c5a0f/terminal_layout-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba9d58872152f48b6c8e64d5ff3a52f0", "sha256": "32e1a492651af9b7b0061b265c6be21b484adf478d8281fbdd0b3636b024b5a9" }, "downloads": -1, "filename": "terminal_layout-1.0.5.tar.gz", "has_sig": false, "md5_digest": "ba9d58872152f48b6c8e64d5ff3a52f0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 17239, "upload_time": "2019-02-10T10:11:53", "url": "https://files.pythonhosted.org/packages/af/8f/32852dfbed320d5b7f6a2d94c14a20098ce4204a0f49e7c893d999fcdce9/terminal_layout-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3d30f938e473106c9b9b0242797e0ede", "sha256": "f4af7222d7bee7351ffe4d5d85718890f9857d7c072dacd776cc1b8139b5e3fc" }, "downloads": -1, "filename": "terminal_layout-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "3d30f938e473106c9b9b0242797e0ede", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 34817, "upload_time": "2019-02-10T10:11:50", "url": "https://files.pythonhosted.org/packages/e2/05/57b1e3434992fae4d23e95ad452b01aff20464ad6d51ef5869fb4e8c5a0f/terminal_layout-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba9d58872152f48b6c8e64d5ff3a52f0", "sha256": "32e1a492651af9b7b0061b265c6be21b484adf478d8281fbdd0b3636b024b5a9" }, "downloads": -1, "filename": "terminal_layout-1.0.5.tar.gz", "has_sig": false, "md5_digest": "ba9d58872152f48b6c8e64d5ff3a52f0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 17239, "upload_time": "2019-02-10T10:11:53", "url": "https://files.pythonhosted.org/packages/af/8f/32852dfbed320d5b7f6a2d94c14a20098ce4204a0f49e7c893d999fcdce9/terminal_layout-1.0.5.tar.gz" } ] }