andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.63k stars 177 forks source link

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

Open vvch opened 2 years ago

vvch commented 2 years ago

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...