FileAutomation

This project provides a modular framework for file automation and Google Drive integration. It supports local file and directory operations, ZIP archive handling, Google Drive CRUD (create, search, upload, download, delete, share), and remote execution through a TCP Socket Server.

Features

Local File and Directory Operations

ZIP Archive Handling

Google Drive Integration

Automation Executors

JSON Configuration

TCP Socket Server

Installation and Requirements

Installation

pip install automation_file

Usage

  1. Initialize Google Drive ```python from automation_file.remote.google_drive.driver_instance import driver_instance

driver_instance.later_init(“token.json”, “credentials.json”)


2. Upload a File
```python
from automation_file.remote.google_drive.upload.upload_to_driver import drive_upload_to_drive

drive_upload_to_drive("example.txt") 
  1. Search Files ```python from automation_file.remote.google_drive.search.search_drive import drive_search_all_file

files = drive_search_all_file() print(files)


4. Start TCP Server
```python
from automation_file.utils.socket_server.file_automation_socket_server import start_autocontrol_socket_server

server = start_autocontrol_socket_server("localhost", 9943)

Example JSON Action

[
  ["FA_create_file", {"file_path": "test.txt"}],
  ["FA_drive_upload_to_drive", {"file_path": "test.txt"}],
  ["FA_drive_search_all_file"]
]