A straightforward command-line tool for uploading files to a specific Google Drive folder.
This project uses uv for dependency management.
-
Create and sync a virtual environment:
uv venv uv pip install -r requirements.txt
-
Configure your credentials:
- Copy
config.json.exampletoconfig.json. - Update
config.jsonwith your Google Drivefolder_idand the path to yourclient_secret.jsonfile.
- Copy
-
Authorize with Google:
The first time you run the script, it will open a browser window for you to authorize the application. This creates a local token so you only have to do it once.
To upload a file, run upload.py with the file path as an argument.
python upload.py path/to/your/file.mp4The script will show the upload progress and print the file ID when it's done.