Skip to main content

SA Drive (Service Account Drive)

Note: As of April 15 2025, New service accounts will not have 15GiB of Google Drive Storage, hence this repository is specifically targeted at those users who have service accounts generated before April 15 2025, and wish to combine their storage into a unified place.

Note to old users (who used GUI version): This repository was previously aimed at the GUI version, see gui-deprecated, which was maintained by another author. Now the live workings are supported by the cli. Which is much more powerful than the GUI, it shows progress, has support to mount the sa-drive with gclone onto local filesystem, and most importantly, supports large file upload ( > 14.7 GiB). [BONUS: The CLI is implemented in a statically typed way using type hints.]

Why is it needed ?

Now Team Drives or shared drives (whichever you may prefer) are have a restriction of ~100GiB. So, to circumvent that, using Google's own services, this project aims to give a displayable + managable look to the drive storage of service accounts.

How it works ?

Each service account has a 15GiB of drive storage. If you have a 100 service accounts [i.e. use only 1 google cloud project], then you have roughly 1.46 TiB of storage

When you upload files using the cli, the program automatically detects a service account with enough storage to upload the file, and uploads it to that service account's google drive.

Hence in this way you can exceed the 15GiB storage of your personal drive.

Features:

  • Mount the drive as a local filesystem.
  • Simultaneous uploads.
  • Simultaneous downloads (using gclone).
  • Split large files (>14.7 GiB).
  • Progress bars, ETA etc.
  • Fuzzy Search.

Deployment

  1. Do pip install sadrive
  2. Make a folder named config_dir or whatever at your choice of location.
  3. Make sure that config dir has a folder with the name accounts, which contains the json representation of service accounts. Also it should have a config.json file with the following content:
    {
    "parent_id": "1at0dM_hN2GFVn8ANGOlFwvo5ZcJy38XC", // ID of google drive fodler in your personal account where you want the sa-drive to be hosted.
    "path_to_gclone.exe":"C:\\Users\\HEMAN\\Desktop\\\\gclone-l3v11\\gclone.exe" // Path to gclone.exe. Downlaod from: https://github.com/l3v11/gclone
    }
    
    The config_dir should look like this:
  4. Run the command sadrive config set-dir absolute/path/to/config_dir.
  5. Now you are done. Just use any of the commands.
  6. Visit https://sadrive.readthedocs.io/en/latest/. For detailed documentation, and examples.

Images and Examples

  1. sadrive alt text

  2. sadrive config set-dir <path> alt text

  3. sadrive rename newname file/folderid alt text

  4. sadrive navigate [optional_folderid] alt text

  5. sadrive share file/folderid alt text

  6. sadrive mount [This gives a read only filesystem, you can directly view/open files from this] alt text alt text

  7. sadrive delete file/folderid alt text

  8. sadrive newfolder name [optional_destination_id] alt text

  9. sadrive upload path/to/upload destination_folder_id If destination folder id is not provided then it will upload to the parent directory set in config.json. alt text

  10. sadrive download folder_id path/to/destination [--transfers int]. transfers represents the maximum number of parallel downloads you want. alt text

  11. sadrive move file/folderid [optional_destination_id] Move a file or folder to a destination folder ID (defaults to root if destination is omitted). You can also use sadrive move <id> to <destination_id>.

Limitations

None as of now.

Best Case Scenario

Each Gmail account can create 12 projects. i.e. 12*100 service accounts. Hence you can effectively get 15*12*100 = 18000 GiB of storage, or roughly 17TiB per gmail account.

Got questions ?

Read FAQs.

Metadata

Release files for sadrive 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sadrive 2.0.3
File Size Uploaded Provenance Actions
sadrive-2.0.3.tar.gz 44.1 kB Without provenance Details for sadrive-2.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sadrive 2.0.3
File Interpreter ABI Platform Actions
sadrive-2.0.3-py3-none-any.whl Python 3 none any Details for sadrive-2.0.3-py3-none-any.whl

Total release size: 88.1 kB

Release files / sadrive-2.0.3.tar.gz

Download URL sadrive-2.0.3.tar.gz
Size 44.1 kB
Tags Source
SHA-256 checksum
How to use checksums
95019eedd53f60ccb9380c4bef07ba8591f0a79f578f0e53bde9b8a60bd9cb6a
BLAKE2b-256 checksum
How to use checksums
d52958bed27cb0cab22a2217285cd8fb4e2fc1a8559627a3fde77415e91ead3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / sadrive-2.0.3-py3-none-any.whl

Download URL sadrive-2.0.3-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fff76176bc904266062e0af49ee193de980864aa142c21ad5ab6dea0c70be7f5
BLAKE2b-256 checksum
How to use checksums
0f07908d9680286b9619b5a54142770bb72b41f080e185cde1dfb4d84d3e61ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Security for sadrive 2.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page