{ "info": { "author": "Olivier BLIN", "author_email": "olivier.oblin@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: POSIX :: Linux" ], "description": "===========\nBASH UTILS\n===========\n\nBash colors management and log system for python users\n\nBashutils provide you two functionnalities:\n\n* Create bash colored text\n* Log message system (like lsb init-functions log message)\n\n\nbash colors\n===========\n\n**Import** :\n\n from bashutils import colors\n\n\nColor function :\n\n.. code-block:: console\n\n color_text(text, color=\"none\", bcolor=\"none\", effect=\"none\")\n\n* color : text color\n* bcolor : background color\n* effect : font effect\n\n**Text and background colors list** : none, black ,red ,green ,yellow ,blue ,magenta ,cyan ,white\n\n*default color is 'none' (terminal default color)*\n\n\n**Text effects** : none, bold, underscore, blink, reverse, concealed\n\n*default effect is 'none'*\n\nbash logmsg\n===========\n\n**Import** :\n\n from bashutils import logmsg\n\nFunctions\n---------\n\nBasic functions\n~~~~~~~~~~~~~~~\n\nStart a new log message :\n\n.. code-block:: console\n\n log_begin_message(\"My message\")\n\nEnd a log message :\n\n.. code-block:: console\n\n log_end_message(logmsg.LOG.OK)\n\n**Existing log type** : LOG.OK (0), LOG.FAIL (1), LOG.ERROR (2), LOG.INFO (3), LOG.WARNING (4)\n\nPredefined message (begin and end message):\n\n.. code-block:: console\n\n log_success_msg(\"My message\")\n log_info_msg(\"My message\")\n log_warning_msg(\"My message\")\n log_failure_msg(\"My message\")\n log_error_msg(\"My message\")\n\n\nOther functions\n~~~~~~~~~~~~~~~\n\nIf you want to add some information before or after the begin message, you can use these functions:\n\n.. code-block:: console\n\n log_msg_pre(\"SUPP\")\n log_msg_post(\"SUPP\")\n log_end_msg_pre(\"SUPP\", logmsg.LOG.OK)\n log_end_msg_post(\"SUPP\", logmsg.LOG.OK)\n\n*The last two functions add a PRE or POST information and end massage with LOG status*\n\n\nAdd a LOG Type\n~~~~~~~~~~~~~~~\n\nIt is possible to add a new LOG Type :\n\n.. code-block:: console\n\n add_log_type(name, display, color, bcolor)\n\n* name : call name (A-Z and '_')\n* display : display message in [-]\n* color : text color (see bashutils.colors)\n* bcolor : background color (see bashutils.colors)\n\nYou can use this new LOG with ``LOG.MYNEWLOG`` (name in upper case)\n\nYou have an all in one function like ``log_success_msg`` with :\n\n.. code-block:: console\n\n log_msg_type(\"My message\", logmsg.LOG.MYNEWLOG)\n\nExample :\n\n.. code-block:: console\n\n add_log_type(\"MYNEWLOG\", \"NEWL\", \"red\", \"yellow\")\n log_msg_type(\"Message with new LOG\", LOG.MYNEWLOG)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OlivierB/Bashutils.git", "keywords": "bash color log", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "Bashutils", "package_url": "https://pypi.org/project/Bashutils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Bashutils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/OlivierB/Bashutils.git" }, "release_url": "https://pypi.org/project/Bashutils/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Bash colors management and log system", "version": "0.0.4" }, "last_serial": 825865, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "dcf9fcc6625b33d2e4268bd06c38c4a5", "sha256": "2812fafcb17bc4fcd0e3a76ddbf358b4b45a95ccb53b1de9e9f98cf4a3ee12a6" }, "downloads": -1, "filename": "Bashutils-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dcf9fcc6625b33d2e4268bd06c38c4a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2940, "upload_time": "2013-07-21T01:56:22", "url": "https://files.pythonhosted.org/packages/ba/b9/b121a128b2e3f1c300bd3bb524980ee5900a361862cabdfda574136e77e2/Bashutils-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "69748b8aa4b97b0ee0aa7195a54c9fda", "sha256": "d9dd49c7fbe931776d8bedc14cd80df856f7869e5363b3f10c83416f257f8df3" }, "downloads": -1, "filename": "Bashutils-0.0.3.tar.gz", "has_sig": false, "md5_digest": "69748b8aa4b97b0ee0aa7195a54c9fda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3990, "upload_time": "2013-07-21T17:09:20", "url": "https://files.pythonhosted.org/packages/0d/51/d63e71c48f42b51294e8d80348d92a8bfca9d22800595a3dc717f7521762/Bashutils-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "00700838c26776ed98b3b43b8d3fb011", "sha256": "b6e1d45e50cd4cc813b522f44db634e4725d8662305f3c13edc6edb4310cddff" }, "downloads": -1, "filename": "Bashutils-0.0.4.tar.gz", "has_sig": false, "md5_digest": "00700838c26776ed98b3b43b8d3fb011", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4201, "upload_time": "2013-07-26T21:45:04", "url": "https://files.pythonhosted.org/packages/a0/53/a35356e2eaeced6fc15c10c71397b731d5f37e00b1e44a6eb4437d171277/Bashutils-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "00700838c26776ed98b3b43b8d3fb011", "sha256": "b6e1d45e50cd4cc813b522f44db634e4725d8662305f3c13edc6edb4310cddff" }, "downloads": -1, "filename": "Bashutils-0.0.4.tar.gz", "has_sig": false, "md5_digest": "00700838c26776ed98b3b43b8d3fb011", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4201, "upload_time": "2013-07-26T21:45:04", "url": "https://files.pythonhosted.org/packages/a0/53/a35356e2eaeced6fc15c10c71397b731d5f37e00b1e44a6eb4437d171277/Bashutils-0.0.4.tar.gz" } ] }