trash-cli icon indicating copy to clipboard operation
trash-cli copied to clipboard

[feature request] clean pythonic interface to trash-cli methods

Open vvch opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. Problem: it seems rather complicated to use this package's methods directly from third-party python program

Describe the solution you'd like It would be nice if along with command-line interface this package would expose documented, stable, clean and robust python interface. E. g.

import trashcli
try:
    trashcli.empty()  #  empty trash can
except trashcli.SomeException as e:
    print(e)
#  etc...

vvch avatar Nov 21 '21 22:11 vvch