Skip to main content

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:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Run tests: poetry run pytest
  5. 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

folderly-1.0.2.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

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

folderly-1.0.2-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file folderly-1.0.2.tar.gz.

File metadata

  • Download URL: folderly-1.0.2.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

Hashes for folderly-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e6784fdd636405fcfab5fb9f83a64697224e63541b09c15a5c3cb278399b472d
MD5 e641c14109ddece09c3ff73333364c54
BLAKE2b-256 afb34447c08467a60b20ad20ea71c4be225f5d4cbed697f0010ae320486a6c19

See more details on using hashes here.

File details

Details for the file folderly-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: folderly-1.0.2-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

Hashes for folderly-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df8d0f9cec8b3087c7460bd7d5996b56bb8101619420912a73b98fd2ed14ea77
MD5 7f4a1c0930491c6425db01463824ad5d
BLAKE2b-256 544dd10815262e7e4da4479cc9275d920a503385026f1499d7208f9d3f15799d

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