console-color-writer


Nameconsole-color-writer JSON
Version 1.0.1 PyPI version JSON
download
home_page
Summarywrite lines with color and tags !
upload_time2023-12-10 07:19:05
maintainer
docs_urlNone
authorclever chen
requires_python
license
keywords python console_color_writer windows mac linux
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# console_color_writer



[![Downloads](https://static.pepy.tech/badge/console-color-writer)](https://pepy.tech/project/console-color-writer)



write lines with color tags !





## Installation



```

pip install console_color_writer

```



https://pypi.org/project/console-color-writer/





## Usage



example:



```python

from console_color_writer import *



print_green('ok','some info text ...')

print_yellow('alert','some info text ...')

print_red('bad','some info text ...')

print_cyan('some info text ... only cyan')

print_magenta('some info text ... only magenta')

print_white('only white text here (super white)')



print('\nhere some tag example:')

print_green_tag('ok','some info text ...')

print_yellow_tag('alert','some info text ...')

print_red_tag('bad','some info text ...')



print('\nthat all ... color makes the world better !')

```



![Imgur](https://i.imgur.com/gMQB4L7.png)





## Get help



Get help ➡️ [Github issue](https://github.com/cornradio/console-color-writer/issues)



## Update log







`1.0.0` first release



## how to upload a new version (for me)



en: https://packaging.python.org/tutorials/packaging-projects/ 



zh: https://python-packaging-zh.readthedocs.io/zh_CN/latest/minimal.html#id2



> make sure have twine installed first



1. change `setup.py`

2. testing `py setup.py develop`

3. `py setup.py sdist`

4. `twine upload dist/*`



test code :

```

py



from console_color_writer import *



print_green('ok','some info text ...')

print_yellow('alert','some info text ...')

print_red('bad','some info text ...')

print_cyan('some info text ... only cyan')

print_magenta('some info text ... only magenta')

print_white('only white text here (super white)')

dumb_menu.demo()

```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "console-color-writer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,console_color_writer,windows,mac,linux",
    "author": "clever chen",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/af/5e/801af3cfe6631ed79203646215f25d50e70e0e7ddfb5fceb2c997788f42b/console_color_writer-1.0.1.tar.gz",
    "platform": null,
    "description": "\r\n# console_color_writer\r\r\n\r\r\n[![Downloads](https://static.pepy.tech/badge/console-color-writer)](https://pepy.tech/project/console-color-writer)\r\r\n\r\r\nwrite lines with color tags !\r\r\n\r\r\n\r\r\n## Installation\r\r\n\r\r\n```\r\r\npip install console_color_writer\r\r\n```\r\r\n\r\r\nhttps://pypi.org/project/console-color-writer/\r\r\n\r\r\n\r\r\n## Usage\r\r\n\r\r\nexample:\r\r\n\r\r\n```python\r\r\nfrom console_color_writer import *\r\r\n\r\r\nprint_green('ok','some info text ...')\r\r\nprint_yellow('alert','some info text ...')\r\r\nprint_red('bad','some info text ...')\r\r\nprint_cyan('some info text ... only cyan')\r\r\nprint_magenta('some info text ... only magenta')\r\r\nprint_white('only white text here (super white)')\r\r\n\r\r\nprint('\\nhere some tag example:')\r\r\nprint_green_tag('ok','some info text ...')\r\r\nprint_yellow_tag('alert','some info text ...')\r\r\nprint_red_tag('bad','some info text ...')\r\r\n\r\r\nprint('\\nthat all ... color makes the world better !')\r\r\n```\r\r\n\r\r\n![Imgur](https://i.imgur.com/gMQB4L7.png)\r\r\n\r\r\n\r\r\n## Get help\r\r\n\r\r\nGet help \u27a1\ufe0f [Github issue](https://github.com/cornradio/console-color-writer/issues)\r\r\n\r\r\n## Update log\r\r\n\r\r\n\r\r\n\r\r\n`1.0.0` first release\r\r\n\r\r\n## how to upload a new version (for me)\r\r\n\r\r\nen: https://packaging.python.org/tutorials/packaging-projects/ \r\r\n\r\r\nzh: https://python-packaging-zh.readthedocs.io/zh_CN/latest/minimal.html#id2\r\r\n\r\r\n> make sure have twine installed first\r\r\n\r\r\n1. change `setup.py`\r\r\n2. testing `py setup.py develop`\r\r\n3. `py setup.py sdist`\r\r\n4. `twine upload dist/*`\r\r\n\r\r\ntest code :\r\r\n```\r\r\npy\r\r\n\r\r\nfrom console_color_writer import *\r\r\n\r\r\nprint_green('ok','some info text ...')\r\r\nprint_yellow('alert','some info text ...')\r\r\nprint_red('bad','some info text ...')\r\r\nprint_cyan('some info text ... only cyan')\r\r\nprint_magenta('some info text ... only magenta')\r\r\nprint_white('only white text here (super white)')\r\r\ndumb_menu.demo()\r\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "write lines with color and tags !",
    "version": "1.0.1",
    "project_urls": null,
    "split_keywords": [
        "python",
        "console_color_writer",
        "windows",
        "mac",
        "linux"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af5e801af3cfe6631ed79203646215f25d50e70e0e7ddfb5fceb2c997788f42b",
                "md5": "27ed981b426b6ae6c3ed510117b58f18",
                "sha256": "57345aa2deb9ce521a897a9215072c43737680361246ef359e4bde64cd92dc80"
            },
            "downloads": -1,
            "filename": "console_color_writer-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "27ed981b426b6ae6c3ed510117b58f18",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2557,
            "upload_time": "2023-12-10T07:19:05",
            "upload_time_iso_8601": "2023-12-10T07:19:05.522632Z",
            "url": "https://files.pythonhosted.org/packages/af/5e/801af3cfe6631ed79203646215f25d50e70e0e7ddfb5fceb2c997788f42b/console_color_writer-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-10 07:19:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "console-color-writer"
}
        
Elapsed time: 0.18631s