Metadata-Version: 2.4
Name: google-drive-easy
Version: 0.0.1
Summary: Google Drive with Python, but easy
License-File: LICENSE
Author: danialcala94
Author-email: danielalcalavalera@gmail.com
Requires-Python: >=3.10,<3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: google-auth-easy (>=0.0.5,<1.0.0)
Project-URL: Homepage, https://github.com/Implosiv3/google-drive-easy
Project-URL: Issues, https://github.com/Implosiv3/google-drive-easy/issues
Description-Content-Type: text/markdown

# Google Drive with Python, but easy

The easiest way to interact with the Google Drive API to perform the tasks you need.

# Important
To use this library and be able to interact with the Google Drive API you need an Oauth2 ID and the Google Drive API enabled in your Google account. If you don't know about this, check the `google-auth-easy` dependency and the instructions to connect. You can find the project in Pypi and the code in Github (https://github.com/Implosiv3/google-drive-easy).

# Instructions
1. Go to the Google Developers console: https://console.cloud.google.com.
2. Make sure you have enabled the Google Drive API.


# Usage
```
from google_drive_easy import GoogleDrive
from google_auth_easy import GoogleAuth
from google_auth_easy.config import GoogleAuthConfig
from google_auth_easy.scopes import Scope

# Authenticate in Google
auth = GoogleAuth(
    GoogleAuthConfig(
        client_secret_file = 'client_secret.json',
    )
)

auth.authenticate(
    Scope.DRIVE,
)

# Connect to Google Drive
drive = GoogleDrive(auth)

# Upload file
file = drive.upload_file('test_files/test.txt')

# Share Google Drive resource
link = drive.create_share_link(file.id)

# Delete file
drive.delete_file(file.id)
```
