{ "info": { "author": "Siddharth Gupta", "author_email": "g.sidd97@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# colorP\n\nThis package is a small and simple utility for printing colored strings on consoles. `colorP` supports 9 different formatting styles and several foreground and background colors!\n\nYou can install it by issuing the following command on a UNIX terminal:
\n\n```bash\nsudo pip install -i colorp\n```\n\n## Usage:\n\nMethods :-\n\n#### `pPrint(args,text,br=?)`:\n\n- `args`: is a dictionary object, which needs atleast one of `s`,`fg` or `bg` defined with the corresponding values as strings.\n\n```python\nargs = {'s':'bold','fg':'red','bg':'white'}\n```\n- `text`: is the string to be printed with the given styling\n- `br`: __[OPTIONAL ARGUMENT: default value= `True`]__, can set it to `False` if you need no linebreak after ouput. \n\n#### `Eg()`:\n- prints out examples of a few colors and styles for user visualization.\n\n### Styling and Formatting:\n- The `args` object decides how the text will be formatted. Each key in `args` can be one of certain pre-defined values. They are listed below:\n- **`'s'`**: Text style\n\n| __Value__ | __Description__ |\n| --- | --- |\n| `'plain'` | Formats the text as plain text |\n| `'bold'` | Bolds the text |\n| `'dim'` | Dims the text |\n| `'italic'` | Italicizes the text |\n| `'underline'` | Underlines the text |\n| `'blink'` | Blinks the text repeatedly |\n| `'reverse'` | Swaps foreground and background values |\n| `'hidden'` | Hides the text on display |\n| `'striked'` | Strikes off the desired text |\n\n- **`'fg'`**: Font color\n\n| __Value__ |\n| --- |\n| `'black'` |\n| `'red'` |\n| `'green'` |\n| `'yellow'` |\n| `'blue'` |\n| `'magenta'` |\n| `'cyan'` |\n| `'lightgray'` |\n| `'darkgray'` |\n| `lightred'` |\n| `'lightgreen'` |\n| `'lightyellow'` |\n| `'lightblue'` |\n| `'lightmagenta'` |\n| `'lightcyan'` |\n| `'white'` |\n| `'default'` |\n\n\n- **`'bg'`**: Background color\n\n\n| __Value__ |\n| --- |\n| `'black'` |\n| `'red'` |\n| `'green'` |\n| `'yellow'` |\n| `'blue'` |\n| `'magenta'` |\n| `'cyan'` |\n| `'lightgray'` |\n| `'darkgray'` |\n| `lightred'` |\n| `'lightgreen'` |\n| `'lightyellow'` |\n| `'lightblue'` |\n| `'lightmagenta'` |\n| `'lightcyan'` |\n| `'white'` |\n| `'default'` |\n\n##### NOTE:\n- `'bg'` has the same possible values as `'fg'`.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "colorp", "package_url": "https://pypi.org/project/colorp/", "platform": "", "project_url": "https://pypi.org/project/colorp/", "project_urls": null, "release_url": "https://pypi.org/project/colorp/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "A small package for printing colored strings", "version": "0.0.1" }, "last_serial": 5589328, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b1f752b0411f467d5938d4b658f26841", "sha256": "b30d73a829f47740ff85abf5bf111bc5031c47406258f98d42586a7257ca5303" }, "downloads": -1, "filename": "colorp-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b1f752b0411f467d5938d4b658f26841", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3910, "upload_time": "2019-07-26T14:38:37", "url": "https://files.pythonhosted.org/packages/dd/3d/1fa7131700a8279f619b955ca78cf47ba14ae96dee0cf118b42f9e29933e/colorp-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f14b7f2a523edd9d69d469190d9a483", "sha256": "59f604107265c71886529f820f95eb4338c39adc8653651ede0de1e79f27ae3e" }, "downloads": -1, "filename": "colorp-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5f14b7f2a523edd9d69d469190d9a483", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2981, "upload_time": "2019-07-26T14:38:39", "url": "https://files.pythonhosted.org/packages/8d/81/8fc8c35af10aa044288a5d0adbf2624faf9668397ea1ec9a0cbb8e2d0a82/colorp-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b1f752b0411f467d5938d4b658f26841", "sha256": "b30d73a829f47740ff85abf5bf111bc5031c47406258f98d42586a7257ca5303" }, "downloads": -1, "filename": "colorp-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b1f752b0411f467d5938d4b658f26841", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3910, "upload_time": "2019-07-26T14:38:37", "url": "https://files.pythonhosted.org/packages/dd/3d/1fa7131700a8279f619b955ca78cf47ba14ae96dee0cf118b42f9e29933e/colorp-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f14b7f2a523edd9d69d469190d9a483", "sha256": "59f604107265c71886529f820f95eb4338c39adc8653651ede0de1e79f27ae3e" }, "downloads": -1, "filename": "colorp-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5f14b7f2a523edd9d69d469190d9a483", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2981, "upload_time": "2019-07-26T14:38:39", "url": "https://files.pythonhosted.org/packages/8d/81/8fc8c35af10aa044288a5d0adbf2624faf9668397ea1ec9a0cbb8e2d0a82/colorp-0.0.1.tar.gz" } ] }