This Python script is designed to help you efficiently organize files in your Google Drive, including both your personal drive and shared company drives. It uses the Google Drive API to list and manage files and folders and integrates with the OpenAI API to provide intelligent suggestions for optimal file organization.
The user interface provides an interactive way to review and manage file organization suggestions. It includes a table of files with options to "Accept" or "Decline" each suggestion. Here’s a screenshot of the UI:
- Google Drive Integration: Access and list files from your personal Google Drive and any shared drives you have access to.
- AI-Powered Suggestions: Utilize OpenAI's GPT model to classify files and suggest appropriate folder placements or indicate when no move is needed.
- Comprehensive Folder Retrieval: Fetch and display the folder structure within shared drives.
- Progress Tracking: Real-time progress updates using the
tqdm
library. - CSV Export: Save the classification results to a CSV file in your Google Drive.
- A Google account with access to Google Drive.
- An OpenAI API key.
- Clone this repository or copy the script into your Google Colab environment.
- Ensure you have your OpenAI API key available.
- Install the necessary dependencies by running the provided commands.
- Authenticate your Google account to access Google Drive.
- Run the script to begin organizing your files.
- Authentication: Authenticate with your Google account when prompted.
- API Key: Input your OpenAI API key to enable AI-powered suggestions.
- File Organization: The script will analyze your files and provide organization suggestions.
- Review Results: Classification results are saved as a CSV file in your Google Drive.
We welcome contributions! Feel free to fork the repository, open issues, or submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for more details.
- Google Colab for providing a cloud-based Python environment.
- OpenAI for the powerful AI models used in this project.