semvec/pypi-packages huggingface dataset:
cansi 0.0.4
Curses ANSI Parser

# CURSES ANSI PARSER

## INSTALLATION

`pip install cansi`

## EXAMPLE

``` python
import curses
from cansi import Cansi


def event_loop(stdscr):
    curses.curs_set(0)  # hide the cursor
    cansi = Cansi(stdscr)
    lines = [
        "\033[1;32mThis line is bright GREEN\033[0m",
        "\033[1;31mThis line is bright RED\033[0m",
        "\033[0;32mThis line is GREEN\033[0m",
        "\033[0;31mThis line is RED\033[0m",
        "\033[1mThis line is BOLD\033[0m",
        "\033[4mThis line is BOLD\033[0m",
        "\033[5mThis line BLINKS\033[0m",
        "\033[7mThis line is REVERSE\033[0m",
        "\033[0KmThis line won't be displayed\033[0m",
        "\033[1;37mPress q to quit\033[0m",
    ]
    while True:
        for index, line in enumerate(lines):
            cansi.addstr(index, 0, line)
        if stdscr.getkey() == "q":
            break


curses.wrapper(event_loop)
```

## REFERENCES

https://docs.python.org/3/howto/curses.html

https://docs.python.org/3/library/curses.html

https://www.perlmonks.org/bare/?node_id=215785

http://ascii-table.com/ansi-escape-sequences.php

https://notes.burke.libbey.me/ansi-escape-codes/

https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html
zipfs 1.0.5
CLI tool to directly zip several files/folders or an existing folder
Requires Python: >=3

# zipf

CLI tool to directly zip several files/folders or an existing folder

Make a zip from list of files/folders with or without specifying the archive name ("%Y_%m_%d-%H_%M_%S.zip" if not specified) or from an existing folder.


# Installation
```sh
With pip:
sudo pip3 install zipfs

With yay:
yay -a zipf

With yaourt:
yaourt -a zipf
```

# Compatibility
python >= 3


# Usage
<pre>
<b>zipf / zipper</b> [<b>F_PATH_01 F_PATH_02 ...</b>] [<b>ARCHIVE_NAME</b>]
<b>options:</b>
<!-- -->         <b>-h, --help</b>        show this help message and exit
</pre>


# Examples
For **help**:<br/>
```sh
zipf -h
or
rt --help
```

<br/>Make a zip archive from 3 files:<br/>
```sh
zipf titi/toto.jpg titi/tutu.jpg tata.txt
```
Giving the **2019_05_15-17_25_44.zip** archive<br/><br/>

Make a zip archive from 2 files and one folder with specifying the archive name (work):<br/>
```sh
zipf titi/toto.jpg titi/ tata.txt work
```
Giving the **work.zip** archive
trashf 1.0.3
CLI tool to safely remove any file and directory by putting them in the trash
Requires Python: >=3

# trashf
CLI tool to safely remove any file and directory by putting them in the trash  

Move any file or directory in the trash in a clever and safe way when wanting to remove them. If a file or folder with the same name already exist in the trash, the file or folder to be removed will be renamed with the date before to be moved to the trash (fname + "%Y_%m_%d-%H_%M_%S").


# Installation
```sh
With pip:
sudo pip3 install trashf

With yay:
yay -a trashf

With yaourt:
yaourt -a trashf
```

# Compatibility
python >= 3


# Usage
<pre>
<b>trashf / rt</b> [<b>F_PATH_01 F_PATH_02 ...</b>]
<b>options:</b>
<!-- -->         <b>-h, --help</b>        show this help message and exit
</pre>


# Examples
For **help**:<br/>
```sh
trashf -h
or
rt --help
```

**Move** in the trash ($HOME/.local/share/Trash/files) files and folders:<br/>
```sh
trashf titi/ toto.jpg
```