Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stewartmcgown/uds
📀 Unlimited Google Drive Storage by splitting binary files into base64
https://github.com/stewartmcgown/uds
google-drive unlimited
Last synced: 6 days ago
JSON representation
📀 Unlimited Google Drive Storage by splitting binary files into base64
- Host: GitHub
- URL: https://github.com/stewartmcgown/uds
- Owner: stewartmcgown
- License: agpl-3.0
- Created: 2018-07-18T20:10:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-02T07:51:47.000Z (about 3 years ago)
- Last Synced: 2024-11-21T05:07:59.718Z (21 days ago)
- Topics: google-drive, unlimited
- Language: Python
- Homepage:
- Size: 6.06 MB
- Stars: 4,351
- Watchers: 76
- Forks: 280
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-hacking-lists - stewartmcgown/uds - 📀 Unlimited Google Drive Storage by splitting binary files into base64 (Python)
README
# :milky_way: UDS : Unlimited Drive Storage
Store files in Google Docs without counting against your quota.
sorry @ the guys from google internal forums who are looking at this
Development on a web-based JS version has started [here](https://github.com/stewartmcgown/uds-web).
> Note: After June 1st 2021, starting June 1, 2021, Google will count Docs, Sheets, Slides, Drawings, Forms and Jamboard files against the user's storage quota.
## 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.
- Some experiments with multi-threading the uploads, but there was no significant performance increase.## Setup & Authentication
1. Clone the Repository and setup the requirements `pip3 install -r requirements.txt`
2. Head to [Google's API page](https://developers.google.com/drive/api/v3/quickstart/python) and enable the Drive API
3. Download the configuration file as 'client_secret.json' to the UDS directory
4. Run `python3 uds.py` or `./uds.py` for initial set up## UDS Core
### Upload
```sh
> ./uds.py --push Ubuntu.Desktop.16.04.iso
Ubuntu.Desktop.16.04.iso will required 543 Docs to store.
Created parent folder with ID 1fc6JGpX6vUWiwflL1jBxM1YpuMHFAms8
Successfully Uploaded Ubuntu.Desktop.16.04.iso: [██████████████████████████████] 100%
``````
[Layout]
./uds.py --push argumentargument: Path_to_file+file_name
```### List
```sh
> ./uds.py --list
Name Size Encoded ID
------------------------ ----- --------- ---------------------------------
Ubuntu.Desktop.16.04.iso 810 MB 1.1 GB 1fc6JGpX6vUWiwflL1jBxM1YpuMHFAms8
Ubuntu.Desktop.18.10.iso 1.1 GB 1.3 GB 1RzzVfN9goHMTkM1Hf1FUWUVS_2R3GK7DAlso supports searching with a query!
> ./uds.py --list "18"
Name Size Encoded ID
------------------------ ----- --------- ---------------------------------
Ubuntu.Desktop.18.10.iso 1.1 GB 1.3 GB 1RzzVfN9goHMTkM1Hf1FUWUVS_2R3GK7D
``````
[Layout]
./uds.py --listarguments: query
```### Download
```sh
> ./uds.py --pull 1fc6JGpX6vUWiwflL1jBxM1YpuMHFAms8
Downloaded Ubuntu.Desktop.16.04.iso: [██████████████████████████████] 100%
``````
[Layout]
./uds.py --pull argumentargument: id_of_file
```### Delete
```sh
> ./uds.py --delete 1fc6JGpX6vUWiwflL1jBxM1YpuMHFAms8
Deleted 1fc6JGpX6vUWiwflL1jBxM1YpuMHFAms8
``````
[Layout]
./uds.py --delete argumentargument: id_of_file
```
## Alpha Extensions### Grab
```sh
> ./uds.py --grab test.7z
Update Successful!
Downloaded test.7z: [██████████████████████████████] 100%
``````
[Layout]
./uds.py --grab argumentargument: name_of_file
```### Erase
```sh
>./uds.py --erase test2.7z
Update Successful!
Deleted test2.7z
``````
[Layout]
./uds.py --erase argumentargument: name_of_file
```### Update
```sh
> ./uds.py --updateName Encoded Size
--------- -------- -----
file_name 1.1 GB 810 MB"User.txt"
Name Encoded Size
--------- -------- -----
file_name 1.1 GB 810 MB"data.txt"
{
"file0": "1fc6JGpX6vUWiwflL1jBxM1YpuMHFAms8"
"file2": "1fc6JGpX6vUWiwflL1jBxM1YpuMHFAms9"
}
``````
[Layout]
./uds.py --updatearguments: None
```## Bulk Extensions
### Bunch
```sh
> ./uds.py --bunch test
test.7z.1 will require 1337 Docs to store.
Created parent folder with ID 1fc6JGpX6vUWiwflL1jBxM1YpuMHFAm12
Successfully Uploaded test.7z.1: [██████████████████████████████] 100%
test.7z.2 will require 1337 Docs to store.
Created parent folder with ID 1fc6JGpX6vUWiwflL1jBxM1YpuQQFAm12
Successfully Uploaded test.7z.2: [██████████████████████████████] 100%
test.7z.3 will require 600 Docs to store.
Created parent folder with ID 1fc6JGpX6vTOiwflL1jBxM1YpuQQFAm12
Successfully Uploaded test.7z.3: [██████████████████████████████] 100%
``````
[Layout]
./uds.py --bunch argument[1] argument[2]argument[1]: name_in_files, or wildcard "?" without quotes
argument[2]: directory, default is current directory of UDS
```### Batch
```sh
> ./uds.py --batch file_name
Update Successful!
Downloaded file_name.7z.1: [██████████████████████████████] 100%
Downloaded file_name.7z.2: [██████████████████████████████] 100%
Downloaded file_name.7z.3: [██████████████████████████████] 100%
``````
[Layout]
./uds.py --batch argumentarguments: name_in_files, or wildcard "?" without quotes
```### Wipe
```sh
> ./uds.py --wipe file
Update Successful!
Deleted file.7z.1
Deleted file.7z.2
Deleted file.7z.3
``````
[Layout]
./uds.py --wipe argumentarguments: name_in_files, or wildcard "?" without quotes
```**Only Compatible with Python 3.**