🛰️
FUS : Free Unlimited Storage
Features
- Upload files to Google Drive without using storage space
- Download any stored files to your computer
Logic
- Google Docs take up 0 bytes of quota in your Google Drive
- Split up binary files into Google Docs, with base64 encoded text
- Size of the encoded file is always larger than the original. Base64 encodes binary data to a ratio of about 4:3.
- A single google doc can store about a million characters. This is around 710KB of base64 encoded data.
- This way, we can get unlimited storage for free!
- Some experiments with multi-threading the uploads, but there was no significant performance increase.
Setup & Authentication
- Clone the Repository and setup the requirements
pip3 install -r requirements.txt
- Head to Google's API page and enable the Drive API
- Download the configuration file as 'client_secret.json' to the UDS directory
- Run
python3 fus.py
or./fus.py
for initial set up. In this step, the program will open your browser and ask you to sign in with google.
Usage
For commands type
python fus.py --help
Upload
python fus.py --push argument
argument: Path_to_file+file_name
List
python fus.py --list arguments
arguments: query(eg: "iso")
Download
python fus.py --pull argument
argument: id_of_file
Delete
python fus.py --delete argument
argument: id_of_file
Only Compatible with Python 3.
Made by TheAtomicProgrammer