{ "info": { "author": "Al Sweigart", "author_email": "al@inventwithpython.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "Bext\n======\n\nA cross-platform Python 2/3 module for colorful, boring, text-based terminal programs.\n\nBasically, use Bext if you want to move the cursor around the terminal window and have colorful text, like some kind of limited curses module (but it works on Windows also.)\n\nInstallation\n------------\n\nTo install with pip, run:\n\n pip install bext\n\nFunctions\n---------\n\n* ``fg(color)``\n\nSets the foreground color, that is, the color of the text. The color is a string of one of the following colors: black, red, green, yellow, blue, purple, cyan, white, reset, random.\n\n* ``bg(color)``\n\nSets the background color, that is, the color of the cell behind the text characters. You \"paint\" a cell with the background color by printing a space character.\n\n* ``size()``\n\nReturns a tuple of the (width, height) of the current terminal.\n\n* ``clear()``\n\nErase all the text on the screen, paint the entire terminal to the background color, and\n\n* ``goto(x, y)``\n\nMove the cursor to x, y coordinates on the screen. (0, 0) is the top-left corner of the screen.\n\n\nExample\n-------\n\n import bext, random\n\n width, height = bext.size()\n\n try:\n while True:\n bext.fg('random')\n bext.bg('random')\n x = random.randint(0, width - 1)\n y = random.randint(0, height - 1)\n\n if x == width -1 and y == height - 1:\n continue # Windows has weird behavior where a character at the end of the row always moves the cursor to the next row.\n bext.goto(x, y)\n print('*', end='')\n except KeyboardInterrupt:\n pass\n\nContribute\n----------\n\nIf you'd like to contribute to Bext, check out https://github.com/asweigart/bext", "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/asweigart/bext", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "Bext", "package_url": "https://pypi.org/project/Bext/", "platform": "", "project_url": "https://pypi.org/project/Bext/", "project_urls": { "Homepage": "https://github.com/asweigart/bext" }, "release_url": "https://pypi.org/project/Bext/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "A cross-platform Python 2/3 module for colorful, boring, text-based terminal programs.", "version": "0.0.3" }, "last_serial": 5137482, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0ae4dc1d809ca4558d97a0d9f175f13b", "sha256": "44794b0e49c0020b769bc68079f880e3f87e1e8e8f50348c8fda42905833ecce" }, "downloads": -1, "filename": "Bext-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0ae4dc1d809ca4558d97a0d9f175f13b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3109, "upload_time": "2019-01-18T23:27:55", "url": "https://files.pythonhosted.org/packages/bf/b1/dc6e93ae290d6a08c3feb6153033178dec58a86f1b3be5ff242217770648/Bext-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "191a660211de79b4d717ed8baa1f486d", "sha256": "1efb88586dbbaa530132e3f1f9fd00a86016fe0517ea49d609344d918c4159a7" }, "downloads": -1, "filename": "Bext-0.0.2.tar.gz", "has_sig": false, "md5_digest": "191a660211de79b4d717ed8baa1f486d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3015, "upload_time": "2019-01-19T00:01:10", "url": "https://files.pythonhosted.org/packages/ff/cb/5ee36137dc1d208fc566215f0781ffa75e79697be8184f83ad18d3f60cee/Bext-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d879ca12ff55cefacc4c295bf2cbc70b", "sha256": "40445796d116963a5d83ce748ac92516751ac3ac66b662028ceab91de94a46d6" }, "downloads": -1, "filename": "Bext-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d879ca12ff55cefacc4c295bf2cbc70b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3740, "upload_time": "2019-04-13T08:20:31", "url": "https://files.pythonhosted.org/packages/30/d7/1b956218ec9dc809c466267823766f59ef2758141bfd76581f6fd6837618/Bext-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d879ca12ff55cefacc4c295bf2cbc70b", "sha256": "40445796d116963a5d83ce748ac92516751ac3ac66b662028ceab91de94a46d6" }, "downloads": -1, "filename": "Bext-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d879ca12ff55cefacc4c295bf2cbc70b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3740, "upload_time": "2019-04-13T08:20:31", "url": "https://files.pythonhosted.org/packages/30/d7/1b956218ec9dc809c466267823766f59ef2758141bfd76581f6fd6837618/Bext-0.0.3.tar.gz" } ] }