{ "info": { "author": "Al Sweigart", "author_email": "al@inventwithpython.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "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" ], "description": "============\nPyTextCanvas\n============\n\nPyTextCanvas is a module for writing text and ascii art to a 2D string \"canvas\" in Python.\n\nPyTextCanvas has a Canvas class, which is a data structure for a \"2D string\", where characters can be \"drawn\" to the canvas using x, y coordinates. The canvas can be exported as a basic Python string or HTML.\n\nRuns on Windows, macOS, and Linux.\n\nThis module could be used in curses-like or urwid-like modules.\n\n\nInstallation\n============\n\n\n ``pip install pytextcanvas``\n\n\nExample Usage\n=============\n\n >>> import pytextcanvas as pytc\n >>> canvas = pytc.Canvas(20, 4)\n >>> canvas.fill('.')\n >>> print(canvas)\n ....................\n ....................\n ....................\n ....................\n >>> canvas.write('Hello, world!')\n >>> print(canvas)\n Hello, world!.......\n ....................\n ....................\n ....................\n >>> canvas.cursor = (10, 2)\n >>> canvas.write('Howdy!!!')\n >>> print(canvas)\n Hello, world!.......\n ....................\n ..........Howdy!!!..\n ....................\n >>> str(canvas)\n 'Hello, world!.......\\n....................\\n..........Howdy!!!..\\n....................'\n >>> canvas.rectangle('*', 0, 0, 20, 4)\n >>> print(canvas)\n ********************\n *..................*\n *.........Howdy!!!.*\n ********************", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/asweigart/pytextcanvas", "keywords": "text canvas bresenham line circle drawing 2D geometry shapes vector bitmap rotate rotation vector2bitmap", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "PyTextCanvas", "package_url": "https://pypi.org/project/PyTextCanvas/", "platform": "", "project_url": "https://pypi.org/project/PyTextCanvas/", "project_urls": { "Homepage": "https://github.com/asweigart/pytextcanvas" }, "release_url": "https://pypi.org/project/PyTextCanvas/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "PyTextCanvas is a module for writing text and ascii art to a 2D string \"canvas\" in Python.", "version": "0.0.3" }, "last_serial": 4218028, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "accb28c6d236aef59e017f0a68263cbb", "sha256": "66f4d3b8b6ef32598b28101c429a9e33ac896f2102f1cff759589dbc1cbce7a3" }, "downloads": -1, "filename": "PyTextCanvas-0.0.1.tar.gz", "has_sig": false, "md5_digest": "accb28c6d236aef59e017f0a68263cbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15358, "upload_time": "2018-08-28T02:06:30", "url": "https://files.pythonhosted.org/packages/c7/a6/5f578e246e5b3632490c198c0cec61dc8713dc03a2d915660ff2a7f85382/PyTextCanvas-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "f687a47d5d6b591e2394a55aa48de2ab", "sha256": "0fe14ba44b2565785cae2ec98be69a40d8127f930b26e8ab5cc007d7e686bb94" }, "downloads": -1, "filename": "PyTextCanvas-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f687a47d5d6b591e2394a55aa48de2ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15424, "upload_time": "2018-08-28T20:59:28", "url": "https://files.pythonhosted.org/packages/cb/07/9a69f611ccf90ea56bf1c3d4fdedc2855607920ee7d38ffcb4e161f9001c/PyTextCanvas-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "48204535bddca319bc75af69dce97875", "sha256": "1a032348f14c4be6ec4a934e7fac82a23f267de527b1d064647fc8fda8270647" }, "downloads": -1, "filename": "PyTextCanvas-0.0.3.tar.gz", "has_sig": false, "md5_digest": "48204535bddca319bc75af69dce97875", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16010, "upload_time": "2018-08-29T07:57:46", "url": "https://files.pythonhosted.org/packages/9f/5f/dd7cc3ba9baba8d0cdd0df42c714396085aa3c5bbf157257cc3dcbb4d427/PyTextCanvas-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48204535bddca319bc75af69dce97875", "sha256": "1a032348f14c4be6ec4a934e7fac82a23f267de527b1d064647fc8fda8270647" }, "downloads": -1, "filename": "PyTextCanvas-0.0.3.tar.gz", "has_sig": false, "md5_digest": "48204535bddca319bc75af69dce97875", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16010, "upload_time": "2018-08-29T07:57:46", "url": "https://files.pythonhosted.org/packages/9f/5f/dd7cc3ba9baba8d0cdd0df42c714396085aa3c5bbf157257cc3dcbb4d427/PyTextCanvas-0.0.3.tar.gz" } ] }