Skip to main content

Smart Desktop File Management with AI Integration - Enhanced Path Display & Error-Free Operations

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 Version: v1.0.3

Latest Release: Available on PyPI as folderly package Status: Production Ready - Stable Release

Quick Start (30 seconds)

# Install from PyPI
pip install folderly

# Set API key
echo "OPENAI_API_KEY=your_key_here" > .env

# Start using!
folderly-ai

โœจ Current Features (v1.0.3)

๐Ÿค– 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
  • Real-time streaming responses - See AI responses build up word by word for instant feedback
  • Progress indicators - Visual feedback for all operations with completion status

๐Ÿ“ 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
  • Smart path discovery - Automatically finds all Desktop/Documents locations including OneDrive variations
  • 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: PyPI (Recommended for Users)

# Install from PyPI
pip install folderly

# Set up your OpenAI API key
echo "OPENAI_API_KEY=your_api_key_here" > .env

# Start using Folderly!
folderly-ai

Option 2: Poetry (Recommended for Developers)

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
๐Ÿค” AI is thinking...
๐Ÿค– I'll help you scan your Desktop. Let me discover all available Desktop locations first...
๐Ÿ”ง Function call detected, executing...
๐Ÿ”ง Executing: discover_user_paths
๐Ÿ” Discovering user paths... โœ…

I found 3 Desktop locations:
1. ๐Ÿ“‚ C:\Users\username\Desktop - 15 files ๐Ÿ’พ Local
2. ๐Ÿ“‚ C:\Users\username\OneDrive\Desktop - 8 files โ˜๏ธ OneDrive

Which one should I scan?

๐Ÿ’ญ You: 1
๐Ÿ”ง Executing: list_directory_items
๐Ÿ” Scanning directory... โœ…

๐Ÿ“‹ 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]

๐Ÿš€ Streaming Experience (New in v1.0.3)

Folderly now features real-time streaming responses that make interactions feel instant and engaging:

Real-time AI Responses

  • ๐Ÿค” AI is thinking... - Immediate feedback when processing
  • ๐Ÿค– Streaming text - See responses build up word by word
  • ๐Ÿ”ง Function detection - Real-time function call identification
  • โœ… Progress indicators - Visual completion status for all operations

Enhanced User Experience

  • No more waiting - Responses start appearing immediately
  • Professional feel - Similar to ChatGPT and modern AI tools
  • Progress transparency - Know exactly what's happening at each step
  • Engaging interaction - Users stay engaged throughout the process

๐Ÿ—๏ธ 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
  • Smart path discovery - Automatically finds all user folder locations including OneDrive variations

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

๐Ÿ†• What's New in v1.0.3

๐Ÿš€ Streaming Responses

  • Real-time AI responses - See text build up word by word
  • Progress indicators - Visual feedback for all operations
  • Function call detection - Real-time identification during streaming
  • Enhanced UX - Professional, engaging interaction experience

๐Ÿ” Smart Path Discovery

  • Automatic path detection - Finds all Desktop/Documents locations
  • OneDrive integration - Detects OneDrive-managed folders
  • User choice interface - Let users select which location to work with
  • Session memory - Remembers user choices throughout the session

๐Ÿ“ฑ Better User Interface

  • Emoji-enhanced output - Folder icons and status indicators
  • Progress tracking - Real-time operation status
  • Clean formatting - Professional, readable results

๐Ÿ”ฎ 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.4.tar.gz (9.1 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.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: folderly-1.0.4.tar.gz
  • Upload date:
  • Size: 9.1 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.4.tar.gz
Algorithm Hash digest
SHA256 caefca07ce6c7b3bb4ed8dd3be3bcf36dc138fbb2d80836a27e234431348e704
MD5 74c48d1b1c6f7e8c12113b242fea1a1a
BLAKE2b-256 03baefc75352481a541dad21a16306f7a9a02b05cbf8a85b67a0c62d86f33429

See more details on using hashes here.

File details

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

File metadata

  • Download URL: folderly-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f96b878d2433ed70d686039d8a882cf83fcadc9a57961f4042be8da1f3046516
MD5 45910861d4c252ed3a22829a81bc98f6
BLAKE2b-256 0186c4465a2b932bc17a2b2b9bbd881fae822a6109b42eebb060354f715eac4a

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