Metadata-Version: 2.1
Name: sgr-ansi
Version: 0.0.4
Summary: awesome ansi8 colorful text interface in terminal
Home-page: https://github.com/coghost/sgr-ansi
Author: lihe
Author-email: imanux@sina.com
License: GPL
Project-URL: Bug Reports, https://github.com/coghost/sgr-ansi/issues
Project-URL: Source, https://github.com/coghost/sgr-ansi
Description: # sgr-ansi
        
        awesome SGR ANSI colorful text interface in terminal
        
        > full supported in python3.7+, macosx
        
        ## awesome colorful text
        
        ![colorful usage](docs/images/usage.png)
        
        ![colorful demo1](docs/images/demo1.png)
        
        ![colorful demo2](docs/images/demo2.png)
        
        ## install
        
        ```shell
        pip install sgr-ansi
        ```
        
        ## usage
        
        Beware of two rules:
        - styles require **alphabet order**
        - styles go before colors
        
        about styles, you can use as many as possible, but colors only the last two will take effect
        
        so like `BDISUkrgybmcw`, all `BDISU` will take effect, but for colors only `cw: cyan on white` will take effect
        
        ### styles/colors supported
        
        > styles
        
        B: bold, D: dimmed, I: italic, S: strike_through, U: underlined
        
        > colors
        
        k: black, r: red, g: green, y: yellow b: blue, m: magenta, c: cyan, w: white
        
        
        ```python
        import sgr_ansi as echo
        
        echo.BIg()
        echo.BIg('I love you 3 thousand times')
        ```
        
        ### chained call
        
        ```python
        from sgr_ansi import Chain
        
        Chain().BIy('Yep,').BIUb(
            'How do you like this?'
        ).Bm('\n\t[✔]').BUg('1.').Bg('Y: yes.').Bm('\n\t[✘]').BUr('2.').Br('N: not.').show()
        ```
        
        ![colorful chain](docs/images/chain.png)
        
        ## run demo
        
        > just run `sgransi` to check all available styles
        
        ```sh
        # after installed sgr_ansi, cli sgransi is available
        sgransi -h
        ```
        
Keywords: sgr,ansi,colorful,vivid,awesome,terminal
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.7
Description-Content-Type: text/markdown
