Smart Desktop File Management with AI Integration
Project description
Folderly - Smart Desktop File Management with AI Integration ๐
Folderly is an intelligent desktop file management system that combines powerful file operations with AI-powered assistance. It helps you organize, declutter, and manage your files across Desktop, Documents, Downloads, and other folders with natural language commands and smart automation.
โจ Current Features (v1.0)
๐ค AI-Powered Interface
- Natural language commands - "list my desktop", "create a folder called work", "move all txt files to documents"
- Smart function selection - AI automatically chooses the right operation for your request
- Beautiful formatted output - Clean, emoji-enhanced results with full paths for operations
- Multi-task handling - Execute multiple operations from a single command
๐ Core File Operations
- List and explore files/folders with advanced filtering (extension, type, date, size)
- Create directories - Single or multiple nested folders
- Move files/folders - Bulk operations with smart execution
- Copy items - Safe copying with conflict handling
- Rename items - Batch renaming operations
- Delete safely - Files go to recycle bin (not permanent deletion)
- Search and filter - By pattern, extension, file type, or modification date
โก Performance & Smart Execution
- Async operations - Non-blocking file operations for better performance
- Smart execution strategy - Automatic parallel/sequential mode selection
- Parallel processing - Multiple independent operations run simultaneously
- Sequential safety - Dependent operations execute in order
๐ฏ Easy Configuration
- Flexible targeting - Manage Desktop, Documents, Downloads, Pictures, Music, Videos
- OneDrive support - Automatic detection of OneDrive folder structures
- Cross-platform - Works on Windows, macOS, and Linux
- Simple setup - Just set your OpenAI API key and start using
๐ Quick Start
Prerequisites
- Python 3.8+
- OpenAI API key
Installation
Option 1: Poetry (Recommended)
# Clone the repository
git clone <repository-url>
cd Folderly-ProtoType
# Install dependencies
poetry install
# Set up your OpenAI API key
echo "OPENAI_API_KEY=your_api_key_here" > .env
# Start using Folderly!
poetry run folderly-ai
Option 2: Traditional Python
# Clone the repository
git clone <repository-url>
cd Folderly-ProtoType
# Install dependencies
pip install -r requirements.txt
# Set up your OpenAI API key
echo "OPENAI_API_KEY=your_api_key_here" > .env
# Start using Folderly!
python -m src.ai.ai_integration
Option 3: Docker (Recommended for Production)
# Clone the repository
git clone <repository-url>
cd Folderly-ProtoType
# Build and run with Docker Compose
docker-compose up --build
# Or build manually
docker build -t folderly .
docker run -it folderly
# Set up your OpenAI API key in .env file
echo "OPENAI_API_KEY=your_api_key_here" > .env
๐ For detailed Docker instructions, see Docker Usage Guide
๐ฌ Usage Examples
Listing and Exploring
๐ญ You: list my desktop
๐ค ๐ Items in Desktop:
1. .git.lnk
2. ai_test_destination
3. Animals
4. async practice
5. Backup
๐ญ You: show me all PDF files in documents
๐ค ๐ PDF Files in Documents:
1. report.pdf
2. presentation.pdf
3. manual.pdf
Creating and Organizing
๐ญ You: create a folder called "work" and move all txt files there
๐ค ๐ฏ Operation Results:
โ
Created: 'work' folder
๐ Location: Desktop
๐๏ธ Full Path: C:/Users/username/Desktop/work
โ
Moved: 'notes.txt', 'todo.txt', 'ideas.txt'
๐ Destination: work folder
๐๏ธ Full Path: C:/Users/username/Desktop/work/[filename]
Bulk Operations
๐ญ You: delete all temporary files and create backup folders
๐ค ๐ฏ Operation Results:
โ
Deleted: 'temp1.txt', 'temp2.txt', 'temp3.txt'
๐ Method: sent_to_trash
๐๏ธ Files moved to recycle bin
โ
Created: 'backup_2024', 'backup_2023', 'backup_2022'
๐ Location: Desktop
๐๏ธ Full Path: C:/Users/username/Desktop/backup_[year]
๐๏ธ Project Structure
Folderly-ProtoType/
โโโ src/
โ โโโ core/ # Core file operations
โ โ โโโ core.py # Main file operations (async)
โ โ โโโ search.py # Search functionality
โ โโโ ai/ # AI integration
โ โ โโโ ai_integration.py # AI conversation interface
โ โ โโโ function_schemas.py # OpenAI function definitions
โ โ โโโ prompts.py # AI system prompts
โ โโโ cli/ # Command line interface
โ โ โโโ cli.py # Traditional CLI
โ โโโ utils/ # Utility functions
โ โโโ utils.py # General utilities
โโโ tests/ # Test files
โโโ docs/ # Documentation
โ โโโ DOCKER_USAGE.md # Docker usage guide
โโโ pyproject.toml # Poetry configuration
โโโ requirements.txt # Dependencies
โโโ Dockerfile # Docker image definition
โโโ docker-compose.yml # Docker Compose configuration
โโโ .dockerignore # Docker build optimization
๐ง Technical Features
Async Architecture
- Non-blocking I/O - File operations don't freeze the interface
- Smart execution modes - Automatic parallel/sequential selection
- Performance optimization - Bulk operations run efficiently
AI Integration
- OpenAI GPT-4o - Latest AI model for natural language understanding
- Function calling - Precise operation execution
- Context awareness - AI remembers conversation history
- Structured responses - Clean, formatted output
Safety & Reliability
- Safe deletion - Files go to recycle bin, not permanently deleted
- Error handling - Graceful failure with helpful error messages
- Permission checking - Respects file system permissions
- Conflict resolution - Handles naming conflicts intelligently
๐ฆ Dependencies
Core Dependencies
- openai - AI integration and function calling
- python-dotenv - Environment variable management
- send2trash - Safe file deletion (recycle bin)
Development Dependencies
- pytest - Testing framework
- black - Code formatting
- flake8 - Code linting
๐ฎ Future Enhancements
The following features are planned for future versions:
File Monitoring & Automation
- Real-time file watching - Monitor folders for changes
- Automated organization - Smart file sorting and categorization
- Scheduled operations - Automated cleanup and maintenance
Advanced Undo & Recovery
- Extended undo window - Longer operation history
- Selective undo - Choose which operations to reverse
- Operation replay - Replay successful operations
Enhanced AI Features
- Learning patterns - AI learns from your file organization habits
- Predictive suggestions - Suggest operations before you ask
- Smart categorization - Automatic file type detection and organization
Cloud Integration
- Multi-device sync - Access your organization from anywhere
- Cloud storage support - Google Drive, OneDrive, Dropbox integration
- Backup automation - Automatic cloud backups
๐งช Testing
# Run all tests
poetry run pytest
# Run specific test files
poetry run pytest tests/test_core.py
# Run with coverage
poetry run pytest --cov=src
๐ค Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run tests:
poetry run pytest - Submit a pull request
Development Setup
# Install development dependencies
poetry install --with dev
# Run linting
poetry run black src/
poetry run flake8 src/
# Run tests
poetry run pytest
๐ License
This project is open source and available under the MIT License.
๐ Acknowledgments
- OpenAI - For providing the AI capabilities
- Python Community - For the excellent libraries and tools
- Contributors - Everyone who helps improve Folderly
Folderly: Your files, intelligently organized. ๐โจ
Ready to transform your file management experience? Start with poetry run folderly-ai and let AI handle the rest!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file folderly-1.0.1.tar.gz.
File metadata
- Download URL: folderly-1.0.1.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee618eb2244d174a747aaa6cccc38c289afba557518721f3707c169510357304
|
|
| MD5 |
685115296e63a4e9921f4c70a3bfbf11
|
|
| BLAKE2b-256 |
0b5f6fbe34cfd758c450e34496e821ea9029bf3b378f55e8ded3f1d9968381ed
|
File details
Details for the file folderly-1.0.1-py3-none-any.whl.
File metadata
- Download URL: folderly-1.0.1-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc8b516765e647c024ea53f7f26374d8cdf3168a5e055df1ac922bbb92949350
|
|
| MD5 |
b3676f6788d937c9065730ae89317e96
|
|
| BLAKE2b-256 |
0a067435b21ff223e1cd726888804ef3865dd6b9d1d8f506d8d85a7e31a34438
|