{ "info": { "author": "Edmund Pfeil", "author_email": "edmundpf@buffalo.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Print Tools\n[![Build Status](https://travis-ci.org/edmundpf/print_tools.svg?branch=master)](https://travis-ci.org/edmundpf/print_tools)\n[![PyPI version](https://badge.fury.io/py/print-tools.svg)](https://badge.fury.io/py/print-tools)\n> Includes useful methods for stylized/formatted printing.\n## Install\n* `python3 -m pip install print-tools`\n## Usage\n``` python\nfrom print_tools.printer import Printer\np = Printer()\np.log('Printer initialized!')\n```\n## Methods\n* `__init__`\n\t* style\n\t\t* Default monokai, can use solarized as well\n\t* Monokai Colors\n\t\t* 'orange', 'magenta', 'purple', 'blue', 'seagreen', 'green', 'yellow'\n\t* Solorized Colors\n\t\t* 'yellow', 'orange', 'red', 'magenta', 'violet', 'blue', 'cyan', 'green'\n* `log`\n\t* Logs text with bold date/time string in front of text\n\t* Args\n\t\t* text\n* `error`\n\t* Prints red *ERROR:* in front of text, log string optional\n\t* Args\n\t\t* text\n\t\t* log (True)\n* `success`\n\t* Prints green *SUCCESS:* in front of text, log string optional\n\t* Args\n\t\t* text\n\t\t* log (True)\n* `arrow`\n\t* Prints \"-->\" in front of text, indentation optional\n\t* Args\n\t\t* text\n\t\t* indent (0)\n* `chevron`\n\t* Prints \">>>\" in front of text, indentation optional\n\t* Args\n\t\t* text\n\t\t* indent (0)\n* `bullet`\n\t* Prints \"\u2022\" in front of text, indentation optional\n\t* Args\n\t\t* text\n\t\t* indent (0)\n* `format`\n\t* Custom template formatting of strings\n\t* Template formatting entered as so in string: i.e. `[bold:green]`\n\t\t* format_op arg can be changed to different outside operator, must be two char string, i.e. \"||\" would yield `|bold:green|`\n\t* Modifiers must be entered first\n\t\t* bold, italic, underlined, reset\n\t* Foreground color must be entered next i.e. `[green]`\n\t* Background color must be entered with *on_* prefix i.e. `[on_blue]`\n\t* Formatting can be removed with *reset* modifier, this can be mixed with new formatting i.e. `[reset:bold:green]`\n\t* To remove specific formatting, enter no_ before argument, (one argument per block) i.e. `[no_bold][no_italic]`\n\t\t* To remove foreground color\n\t\t\t* `[no_foreground]\n\t\t* To remove background color\n\t\t\t* `[no_background]\n\t* By default the string formatting is cleared after the print statement, this can be changed by setting arg *reset* to False\n\t* Additionally, the log string can be printed first by setting arg *log* to True\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/edmundpf/print_tools", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "print-tools", "package_url": "https://pypi.org/project/print-tools/", "platform": "", "project_url": "https://pypi.org/project/print-tools/", "project_urls": { "Homepage": "https://github.com/edmundpf/print_tools" }, "release_url": "https://pypi.org/project/print-tools/0.0.5/", "requires_dist": [ "colorful" ], "requires_python": "", "summary": "Print styling/formatting methods.", "version": "0.0.5" }, "last_serial": 5368501, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "37fd5326857a1fcee9bac5791964bbc0", "sha256": "a473e92f91bd96cf40e0602b217cc273d098f0e28113e4be1e67e3207cb00135" }, "downloads": -1, "filename": "print_tools-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "37fd5326857a1fcee9bac5791964bbc0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2069, "upload_time": "2019-06-03T12:23:12", "url": "https://files.pythonhosted.org/packages/9e/d0/cec6ba8afe7ece7759a55e1a485a0f98641ed40e9e3f87fb285b856f53bd/print_tools-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c4d4d81790e6013f5c1df0f1211c7c3", "sha256": "5beb87fc57940b851685e033af36f850d8b45ccfc2b02d5885cc3f51516d3cf6" }, "downloads": -1, "filename": "print-tools-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0c4d4d81790e6013f5c1df0f1211c7c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2080, "upload_time": "2019-06-03T12:23:14", "url": "https://files.pythonhosted.org/packages/9a/9a/09eafa838df6079f164006759ca8e122cc05c12904f7f90516dde93e1ea3/print-tools-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c02dc2fbcce98ff8072fd83994d8f4fb", "sha256": "c7c526c17ad8adb8387e778238fb3ce520b2f6614c39b5ec8b71e9e969097446" }, "downloads": -1, "filename": "print_tools-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c02dc2fbcce98ff8072fd83994d8f4fb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3802, "upload_time": "2019-06-03T20:57:30", "url": "https://files.pythonhosted.org/packages/8f/d9/ed40372a7fdb21f0c4d8c8bb0b9d6235998c83ae9b552edcd4dc0e20fe17/print_tools-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f8d085e228a77e6a141eac529752fe3b", "sha256": "155f2c77681513fd7828acd95592f7ff0f5463d65a7873e58fb5855eb837db14" }, "downloads": -1, "filename": "print-tools-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f8d085e228a77e6a141eac529752fe3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3443, "upload_time": "2019-06-03T20:57:31", "url": "https://files.pythonhosted.org/packages/6a/f3/0215342604fb848d59adf898f9ec3382af6bb49dbbf1116deb638eecad02/print-tools-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "74753dd5e79b41e63714d059fbeb4bf2", "sha256": "8683517e9f13537fcda928b6e9c56b4cba1718ef2775bde6094acdf2c1f2d124" }, "downloads": -1, "filename": "print_tools-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "74753dd5e79b41e63714d059fbeb4bf2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3803, "upload_time": "2019-06-03T20:59:49", "url": "https://files.pythonhosted.org/packages/f9/66/ea235e1377a670ffb60b2132bf24e38f709eb778363027ef2e5ae3949910/print_tools-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8222f542042899d70909424eb54516a", "sha256": "68391305eed89acfd5af12df55e635924dbd11b7093cc78f897ff6db382f9f86" }, "downloads": -1, "filename": "print-tools-0.0.3.tar.gz", "has_sig": false, "md5_digest": "c8222f542042899d70909424eb54516a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3441, "upload_time": "2019-06-03T20:59:50", "url": "https://files.pythonhosted.org/packages/aa/48/12cbb5d55c5dddc3c3569b3d5806a8a5b53f75937e7c4b8cfc69f3259741/print-tools-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "f185b3faab5fd2a353d2ff8a2fed63e7", "sha256": "c48b0355894c2e3f6bba5225a989df8cb30f0c10feb4f9ac79f3dc5bfff1be61" }, "downloads": -1, "filename": "print_tools-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "f185b3faab5fd2a353d2ff8a2fed63e7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3836, "upload_time": "2019-06-05T13:04:40", "url": "https://files.pythonhosted.org/packages/13/03/f4c9734d0e20b153d61efac44479473f939b693eb1b774aa5b6ec672486f/print_tools-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22846cd4b32be96f443fb8ff643d8fa1", "sha256": "000562a5aad4b5bd7e955ed77bc7231bf5532864d1714a14e6362e1e19eda1a9" }, "downloads": -1, "filename": "print-tools-0.0.4.tar.gz", "has_sig": false, "md5_digest": "22846cd4b32be96f443fb8ff643d8fa1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3474, "upload_time": "2019-06-05T13:04:41", "url": "https://files.pythonhosted.org/packages/6c/ed/c79e78c7ec9fd9292a0f284cc42370f1ba3a913397dded4371b236478a70/print-tools-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "7b67fc28f4052e6a74a8d74d0a3c27ae", "sha256": "c73c9eec0f44f4199296cab53655f41193b7f4e747dcd922eb3a076182102e26" }, "downloads": -1, "filename": "print_tools-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7b67fc28f4052e6a74a8d74d0a3c27ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3853, "upload_time": "2019-06-06T18:34:57", "url": "https://files.pythonhosted.org/packages/07/fd/1c6f6e203ebe6d1e06f88d9f98b0d576fc7f4a7cf7e60bf220f2a688004a/print_tools-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "029a3ad22ec0480255724f22de2576ea", "sha256": "36094f20e5d30ea968c129e69959181d936038bb326f8bfdbeff8559455cd66e" }, "downloads": -1, "filename": "print-tools-0.0.5.tar.gz", "has_sig": false, "md5_digest": "029a3ad22ec0480255724f22de2576ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3490, "upload_time": "2019-06-06T18:34:58", "url": "https://files.pythonhosted.org/packages/dd/62/698c98c65ef249f562c32db89ed1233c2d07851f022d966548072a47fd42/print-tools-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b67fc28f4052e6a74a8d74d0a3c27ae", "sha256": "c73c9eec0f44f4199296cab53655f41193b7f4e747dcd922eb3a076182102e26" }, "downloads": -1, "filename": "print_tools-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7b67fc28f4052e6a74a8d74d0a3c27ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3853, "upload_time": "2019-06-06T18:34:57", "url": "https://files.pythonhosted.org/packages/07/fd/1c6f6e203ebe6d1e06f88d9f98b0d576fc7f4a7cf7e60bf220f2a688004a/print_tools-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "029a3ad22ec0480255724f22de2576ea", "sha256": "36094f20e5d30ea968c129e69959181d936038bb326f8bfdbeff8559455cd66e" }, "downloads": -1, "filename": "print-tools-0.0.5.tar.gz", "has_sig": false, "md5_digest": "029a3ad22ec0480255724f22de2576ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3490, "upload_time": "2019-06-06T18:34:58", "url": "https://files.pythonhosted.org/packages/dd/62/698c98c65ef249f562c32db89ed1233c2d07851f022d966548072a47fd42/print-tools-0.0.5.tar.gz" } ] }