Skip to main content

Terminal Trash Tool with ASCII UI

Project description

Rebin - Terminal Trash Tool

██████╗ ███████╗██████╗ ██╗███╗   ██╗         
██╔══██╗██╔════╝██╔══██╗██║████╗  ██║        
██████╔╝█████╗  ██████╔╝██║██╔██╗ ██║       
██╔══██╗██╔══╝  ██╔══██╗██║██║╚██╗██║       
██║  ██║███████╗██████╔╝██║██║ ╚████║       
╚═╝  ╚═╝╚══════╝╚═════╝ ╚═╝╚═╝  ╚═══╝ 

Rebin is a lightweight, cross-platform terminal trash management tool written in Python. It provides a safer way to manage file deletions with a premium terminal aesthetic.

Installation

pip install rebin_cli

Features

  • 🗑️ Safe Deletion: Move files and directories to a managed trash instead of immediate removal.
  • 📂 Directory Support: Automatically handles folders, calculating recursive sizes and tracking internal contents.
  • 🌲 Tree Visualization: View the structure of deleted folders directly within the trash list.
  • 🔄 One-Command Restore: Effortlessly restore items to their original locations.
  • 📊 Detailed Metadata: Track file size, type, and exact deletion timestamps.
  • 🎨 Premium UI: Clean ASCII art headers and intuitive tree-style visualizations.

Usage

Rebin provides a simple set of commands to manage your trash:

Delete a file or folder

Moves the specified item to the trash.

rebin delete <path>

List trash contents

Displays all items currently in the trash with their metadata. Folder contents are shown in a nested tree view.

rebin list

Restore an item

Restores a file or folder from the trash to its original path.

rebin restore <name>

Permanently remove an item

Deletes a specific item from the trash permanently.

rebin remove <name>

Empty the trash

Permanently removes all items from the trash.

rebin empty

Technical Details

  • Storage: Items are stored in ~/.trash/ (automatically created).
  • Metadata: A metadata.json file tracks original paths and deletion details.
  • Compatibility: Works on Linux, macOS, and Windows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rebin_cli-1.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rebin_cli-1.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file rebin_cli-1.1.1.tar.gz.

File metadata

  • Download URL: rebin_cli-1.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rebin_cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 375bcd9f7b2441b7dd831cfaf6208d32b51d77cf412ff17a969d4c2bc1dde3e7
MD5 af82202c0e8df21d41638dfe183cfb63
BLAKE2b-256 372264f9d5a2565a2b4ceb6c0d45537eb735406fbcc75cbe0646cd55b4691a59

See more details on using hashes here.

File details

Details for the file rebin_cli-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: rebin_cli-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rebin_cli-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ad2d0c54d489307e67ec9b82cf58d953a0565624f642cbb5c2e69bdab651c39
MD5 9b87af5c07c68e44b653446b439c401e
BLAKE2b-256 a642ac5b623e2bb5bf4b5b8f1952bd12377d133bb035cf28f7cea1799cb273ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page