{"id":51026754,"url":"https://github.com/gitstq/filewatch-organizer","last_synced_at":"2026-06-21T20:02:18.138Z","repository":{"id":359786951,"uuid":"1247508862","full_name":"gitstq/filewatch-organizer","owner":"gitstq","description":"📁 Lightweight File System Intelligent Monitoring \u0026 Auto-Organization Engine | 轻量级文件系统智能监控与自动整理引擎 - Zero Dependencies","archived":false,"fork":false,"pushed_at":"2026-05-23T12:22:22.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T14:13:25.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-23T12:12:01.000Z","updated_at":"2026-05-23T12:21:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/filewatch-organizer","commit_stats":null,"previous_names":["gitstq/filewatch-organizer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/filewatch-organizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Ffilewatch-organizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Ffilewatch-organizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Ffilewatch-organizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Ffilewatch-organizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/filewatch-organizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Ffilewatch-organizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T20:02:17.417Z","updated_at":"2026-06-21T20:02:18.067Z","avatar_url":"https://github.com/gitstq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📁 FileWatch-Organizer\n\n\u003cdiv align=\"center\"\u003e\n\n[![Python](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org/)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n[![Platform](https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg)]()\n[![Zero Dependencies](https://img.shields.io/badge/Dependencies-Zero-orange.svg)]()\n\n**🌍 [English](#english) | [简体中文](#简体中文) | [繁體中文](#繁體中文)**\n\n\u003c/div\u003e\n\n---\n\n\u003ca name=\"english\"\u003e\u003c/a\u003e\n## 🇺🇸 English\n\n### 🎉 Project Introduction\n\n**FileWatch-Organizer** is a lightweight, zero-dependency file system intelligent monitoring and auto-organization engine. It solves the daily pain point of messy file management by automatically monitoring folder changes and intelligently organizing files based on customizable rules.\n\n**Key Differentiators:**\n- 🚀 **Zero Dependencies** - Pure Python standard library, no external packages\n- 🖥️ **Cross-Platform** - Works on Windows, macOS, and Linux\n- ⚡ **Lightweight** - Minimal resource usage, perfect for background monitoring\n- 🎯 **Rule-Based** - Flexible organization strategies via YAML/JSON configuration\n- 📊 **TUI Dashboard** - Beautiful terminal interface for real-time monitoring\n\n### ✨ Core Features\n\n| Feature | Description | Status |\n|---------|-------------|--------|\n| 📡 **Real-time Monitoring** | Watch folders for create/modify/delete/move events | ✅ |\n| 📂 **Smart Organization** | Auto-sort by file type, date, size, or custom patterns | ✅ |\n| 🔍 **Duplicate Detection** | Find and remove duplicate files by hash or name/size | ✅ |\n| 🏷️ **Project Detection** | Automatically detect and organize by project type | ✅ |\n| 📦 **Archive Support** | Auto-archive old files based on age thresholds | ✅ |\n| 🎨 **TUI Dashboard** | Interactive terminal UI with live statistics | ✅ |\n| 🔧 **CLI Interface** | Full command-line control with multiple subcommands | ✅ |\n| 📝 **Configurable** | JSON-based configuration with preset templates | ✅ |\n\n### 🚀 Quick Start\n\n#### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/gitstq/filewatch-organizer.git\ncd filewatch-organizer\n\n# Install in development mode\npip install -e .\n\n# Or install directly\npip install .\n```\n\n#### Basic Usage\n\n```bash\n# Initialize configuration\nfilewatch-organizer config --init\n\n# Watch a directory\nfilewatch-organizer watch ~/Downloads\n\n# Organize files by type\nfilewatch-organizer organize ~/Downloads --by-type\n\n# Apply preset configuration\nfilewatch-organizer preset downloads --path ~/Downloads\n\n# Launch TUI dashboard\nfilewatch-organizer tui\n```\n\n#### Using Presets\n\n```bash\n# Downloads folder preset (organizes by type and date)\nfilewatch-organizer preset downloads --path ~/Downloads\n\n# Workspace preset (organizes by project type)\nfilewatch-organizer preset workspace --path ~/Projects\n\n# Documents preset (organizes by category)\nfilewatch-organizer preset documents --path ~/Documents\n```\n\n### 📖 Detailed Usage Guide\n\n#### Watch Command\n\n```bash\n# Watch with auto-organize\nfilewatch-organizer watch ~/Downloads --auto-organize\n\n# Watch multiple paths\nfilewatch-organizer watch ~/Downloads ~/Desktop --recursive\n```\n\n#### Organize Command\n\n```bash\n# Organize by file type\nfilewatch-organizer organize ~/Downloads --by-type\n\n# Organize by date\nfilewatch-organizer organize ~/Downloads --by-date\n\n# Remove duplicates\nfilewatch-organizer organize ~/Downloads --dedup\n\n# Dry run (preview changes)\nfilewatch-organizer organize ~/Downloads --by-type --dry-run\n```\n\n#### Configuration\n\nConfiguration is stored in `~/.config/filewatch-organizer/config.json`:\n\n```json\n{\n  \"watch_paths\": [\n    {\"path\": \"/home/user/Downloads\", \"recursive\": true}\n  ],\n  \"organization_rules\": [\n    {\n      \"name\": \"sort_images\",\n      \"enabled\": true,\n      \"action\": \"organize_by_type\",\n      \"target_folder\": \"{watch_path}/Images\"\n    }\n  ],\n  \"file_types\": {\n    \"images\": [\".jpg\", \".png\", \".gif\"],\n    \"documents\": [\".pdf\", \".docx\"]\n  }\n}\n```\n\n### 💡 Design Philosophy\n\n**Why FileWatch-Organizer?**\n\n1. **Simplicity First** - No complex setup, works out of the box\n2. **Privacy Focused** - All processing happens locally, no cloud\n3. **Developer Friendly** - Easy to extend with custom rules\n4. **Resource Efficient** - Polling-based monitoring with minimal CPU usage\n\n**Technical Highlights:**\n- Pure Python standard library (no pip dependencies)\n- Thread-safe file operations\n- Debounced event handling to prevent duplicates\n- Hash-based deduplication (MD5/SHA256)\n\n### 📦 Packaging \u0026 Deployment\n\n#### Build from Source\n\n```bash\n# Build wheel\npython -m build\n\n# Install from wheel\npip install dist/filewatch_organizer-1.0.0-py3-none-any.whl\n```\n\n#### Run Without Installation\n\n```bash\npython -m filewatch_organizer --help\n```\n\n### 🤝 Contributing\n\nContributions are welcome! Please:\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit changes (`git commit -m 'feat: Add amazing feature'`)\n4. Push to branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n### 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n\u003ca name=\"简体中文\"\u003e\u003c/a\u003e\n## 🇨🇳 简体中文\n\n### 🎉 项目介绍\n\n**FileWatch-Organizer** 是一款轻量级、零依赖的文件系统智能监控与自动整理引擎。它解决了日常文件管理混乱的痛点，通过自动监控文件夹变化并根据可自定义规则智能整理文件。\n\n**核心差异化亮点：**\n- 🚀 **零依赖** - 纯Python标准库，无需外部包\n- 🖥️ **跨平台** - 支持Windows、macOS和Linux\n- ⚡ **轻量级** - 资源占用极低，适合后台监控\n- 🎯 **基于规则** - 通过YAML/JSON配置灵活的整理策略\n- 📊 **TUI仪表板** - 美观的终端界面，实时监控\n\n### ✨ 核心特性\n\n| 特性 | 描述 | 状态 |\n|------|------|------|\n| 📡 **实时监控** | 监控文件夹的创建/修改/删除/移动事件 | ✅ |\n| 📂 **智能整理** | 按文件类型、日期、大小或自定义模式自动分类 | ✅ |\n| 🔍 **重复检测** | 通过哈希或名称/大小查找并删除重复文件 | ✅ |\n| 🏷️ **项目检测** | 自动检测并按项目类型整理 | ✅ |\n| 📦 **归档支持** | 基于年龄阈值自动归档旧文件 | ✅ |\n| 🎨 **TUI仪表板** | 交互式终端UI，实时统计 | ✅ |\n| 🔧 **CLI界面** | 完整的命令行控制，多个子命令 | ✅ |\n| 📝 **可配置** | 基于JSON的配置，预设模板 | ✅ |\n\n### 🚀 快速开始\n\n#### 安装\n\n```bash\n# 克隆仓库\ngit clone https://github.com/gitstq/filewatch-organizer.git\ncd filewatch-organizer\n\n# 开发模式安装\npip install -e .\n\n# 或直接安装\npip install .\n```\n\n#### 基本用法\n\n```bash\n# 初始化配置\nfilewatch-organizer config --init\n\n# 监控目录\nfilewatch-organizer watch ~/Downloads\n\n# 按类型整理文件\nfilewatch-organizer organize ~/Downloads --by-type\n\n# 应用预设配置\nfilewatch-organizer preset downloads --path ~/Downloads\n\n# 启动TUI仪表板\nfilewatch-organizer tui\n```\n\n#### 使用预设\n\n```bash\n# 下载文件夹预设（按类型和日期整理）\nfilewatch-organizer preset downloads --path ~/Downloads\n\n# 工作区预设（按项目类型整理）\nfilewatch-organizer preset workspace --path ~/Projects\n\n# 文档预设（按类别整理）\nfilewatch-organizer preset documents --path ~/Documents\n```\n\n### 📖 详细使用指南\n\n#### 监控命令\n\n```bash\n# 监控并自动整理\nfilewatch-organizer watch ~/Downloads --auto-organize\n\n# 监控多个路径\nfilewatch-organizer watch ~/Downloads ~/Desktop --recursive\n```\n\n#### 整理命令\n\n```bash\n# 按文件类型整理\nfilewatch-organizer organize ~/Downloads --by-type\n\n# 按日期整理\nfilewatch-organizer organize ~/Downloads --by-date\n\n# 删除重复文件\nfilewatch-organizer organize ~/Downloads --dedup\n\n# 试运行（预览更改）\nfilewatch-organizer organize ~/Downloads --by-type --dry-run\n```\n\n#### 配置\n\n配置存储在 `~/.config/filewatch-organizer/config.json`：\n\n```json\n{\n  \"watch_paths\": [\n    {\"path\": \"/home/user/Downloads\", \"recursive\": true}\n  ],\n  \"organization_rules\": [\n    {\n      \"name\": \"sort_images\",\n      \"enabled\": true,\n      \"action\": \"organize_by_type\",\n      \"target_folder\": \"{watch_path}/Images\"\n    }\n  ],\n  \"file_types\": {\n    \"images\": [\".jpg\", \".png\", \".gif\"],\n    \"documents\": [\".pdf\", \".docx\"]\n  }\n}\n```\n\n### 💡 设计理念\n\n**为什么选择FileWatch-Organizer？**\n\n1. **简约优先** - 无需复杂设置，开箱即用\n2. **注重隐私** - 所有处理都在本地进行，不上云\n3. **开发者友好** - 易于使用自定义规则扩展\n4. **资源高效** - 基于轮询的监控，CPU占用极低\n\n**技术亮点：**\n- 纯Python标准库（无pip依赖）\n- 线程安全的文件操作\n- 防抖事件处理，防止重复\n- 基于哈希的去重（MD5/SHA256）\n\n### 📦 打包与部署\n\n#### 从源码构建\n\n```bash\n# 构建wheel\npython -m build\n\n# 从wheel安装\npip install dist/filewatch_organizer-1.0.0-py3-none-any.whl\n```\n\n#### 免安装运行\n\n```bash\npython -m filewatch_organizer --help\n```\n\n### 🤝 贡献指南\n\n欢迎贡献！请遵循以下步骤：\n1. Fork仓库\n2. 创建功能分支 (`git checkout -b feature/amazing-feature`)\n3. 提交更改 (`git commit -m 'feat: Add amazing feature'`)\n4. 推送到分支 (`git push origin feature/amazing-feature`)\n5. 创建Pull Request\n\n### 📄 开源协议\n\n本项目采用MIT协议开源 - 详见 [LICENSE](LICENSE) 文件。\n\n---\n\n\u003ca name=\"繁體中文\"\u003e\u003c/a\u003e\n## 🇹🇼 繁體中文\n\n### 🎉 專案介紹\n\n**FileWatch-Organizer** 是一款輕量級、零依賴的檔案系統智能監控與自動整理引擎。它解決了日常檔案管理混亂的痛點，通過自動監控資料夾變化並根據可自定義規則智能整理檔案。\n\n**核心差異化亮點：**\n- 🚀 **零依賴** - 純Python標準庫，無需外部套件\n- 🖥️ **跨平台** - 支援Windows、macOS和Linux\n- ⚡ **輕量級** - 資源佔用極低，適合背景監控\n- 🎯 **基於規則** - 通過YAML/JSON配置靈活的整理策略\n- 📊 **TUI儀表板** - 美觀的終端介面，即時監控\n\n### ✨ 核心特性\n\n| 特性 | 描述 | 狀態 |\n|------|------|------|\n| 📡 **即時監控** | 監控資料夾的建立/修改/刪除/移動事件 | ✅ |\n| 📂 **智能整理** | 按檔案類型、日期、大小或自定義模式自動分類 | ✅ |\n| 🔍 **重複檢測** | 通過雜湊或名稱/大小查找並刪除重複檔案 | ✅ |\n| 🏷️ **專案檢測** | 自動檢測並按專案類型整理 | ✅ |\n| 📦 **歸檔支援** | 基於年齡閾值自動歸檔舊檔案 | ✅ |\n| 🎨 **TUI儀表板** | 互動式終端UI，即時統計 | ✅ |\n| 🔧 **CLI介面** | 完整的命令列控制，多個子命令 | ✅ |\n| 📝 **可配置** | 基於JSON的配置，預設模板 | ✅ |\n\n### 🚀 快速開始\n\n#### 安裝\n\n```bash\n# 克隆倉庫\ngit clone https://github.com/gitstq/filewatch-organizer.git\ncd filewatch-organizer\n\n# 開發模式安裝\npip install -e .\n\n# 或直接安裝\npip install .\n```\n\n#### 基本用法\n\n```bash\n# 初始化配置\nfilewatch-organizer config --init\n\n# 監控目錄\nfilewatch-organizer watch ~/Downloads\n\n# 按類型整理檔案\nfilewatch-organizer organize ~/Downloads --by-type\n\n# 應用預設配置\nfilewatch-organizer preset downloads --path ~/Downloads\n\n# 啟動TUI儀表板\nfilewatch-organizer tui\n```\n\n#### 使用預設\n\n```bash\n# 下載資料夾預設（按類型和日期整理）\nfilewatch-organizer preset downloads --path ~/Downloads\n\n# 工作區預設（按專案類型整理）\nfilewatch-organizer preset workspace --path ~/Projects\n\n# 文件預設（按類別整理）\nfilewatch-organizer preset documents --path ~/Documents\n```\n\n### 📖 詳細使用指南\n\n#### 監控命令\n\n```bash\n# 監控並自動整理\nfilewatch-organizer watch ~/Downloads --auto-organize\n\n# 監控多個路徑\nfilewatch-organizer watch ~/Downloads ~/Desktop --recursive\n```\n\n#### 整理命令\n\n```bash\n# 按檔案類型整理\nfilewatch-organizer organize ~/Downloads --by-type\n\n# 按日期整理\nfilewatch-organizer organize ~/Downloads --by-date\n\n# 刪除重複檔案\nfilewatch-organizer organize ~/Downloads --dedup\n\n# 試運行（預覽更改）\nfilewatch-organizer organize ~/Downloads --by-type --dry-run\n```\n\n#### 配置\n\n配置存儲在 `~/.config/filewatch-organizer/config.json`：\n\n```json\n{\n  \"watch_paths\": [\n    {\"path\": \"/home/user/Downloads\", \"recursive\": true}\n  ],\n  \"organization_rules\": [\n    {\n      \"name\": \"sort_images\",\n      \"enabled\": true,\n      \"action\": \"organize_by_type\",\n      \"target_folder\": \"{watch_path}/Images\"\n    }\n  ],\n  \"file_types\": {\n    \"images\": [\".jpg\", \".png\", \".gif\"],\n    \"documents\": [\".pdf\", \".docx\"]\n  }\n}\n```\n\n### 💡 設計理念\n\n**為什麼選擇FileWatch-Organizer？**\n\n1. **簡約優先** - 無需複雜設定，開箱即用\n2. **注重隱私** - 所有處理都在本地進行，不上雲\n3. **開發者友善** - 易於使用自定義規則擴展\n4. **資源高效** - 基於輪詢的監控，CPU佔用極低\n\n**技術亮點：**\n- 純Python標準庫（無pip依賴）\n- 執行緒安全的檔案操作\n- 防抖事件處理，防止重複\n- 基於雜湊的去重（MD5/SHA256）\n\n### 📦 打包與部署\n\n#### 從原始碼構建\n\n```bash\n# 構建wheel\npython -m build\n\n# 從wheel安裝\npip install dist/filewatch_organizer-1.0.0-py3-none-any.whl\n```\n\n#### 免安裝執行\n\n```bash\npython -m filewatch_organizer --help\n```\n\n### 🤝 貢獻指南\n\n歡迎貢獻！請遵循以下步驟：\n1. Fork倉庫\n2. 建立功能分支 (`git checkout -b feature/amazing-feature`)\n3. 提交更改 (`git commit -m 'feat: Add amazing feature'`)\n4. 推送到分支 (`git push origin feature/amazing-feature`)\n5. 建立Pull Request\n\n### 📄 開源協議\n\n本專案採用MIT協議開源 - 詳見 [LICENSE](LICENSE) 檔案。\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made with ❤️ by FileWatch Team**\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Ffilewatch-organizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Ffilewatch-organizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Ffilewatch-organizer/lists"}