A package that helps resolve relative Google Drive paths to absolute system paths that refer to the Google drive mount location.
Project description
gdrive_resolver
Different systems may mount Google Drive to different locations. This package automatically finds the mounted Google Drive directory so that it can resolve Google Drive relative paths to absolute system paths.
Example Usage:
from gdriveresolver import GDriveResolver
gdrive_resolver = GDriveResolver()
absolute_path: str = gdrive_resolver.resolve('my/path/in/google/drive/myfile.txt')
Troubleshooting
If GoogleDriveResolver cannot resolve your Google Drive path, it may not be searching at a sufficient depth.
You can increase the depth by passing the max_depth parameter to the constructor.
from gdriveresolver import GDriveResolver
absolute_path = GDriveResolver(max_depth=10).resolve('my/path/in/google/drive/myfile.txt')
print(absolute_path)
If it still cannot resolve your path, please ensure that your Google Drive is mounted, accessible, and that it is called "Google Drive" or "GoogleDrive" in your system.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gdriveresolver-0.0.15.tar.gz.
File metadata
- Download URL: gdriveresolver-0.0.15.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b78ebb24ee694cd75dade4de3e1e678fac301aecc6ed86bdf2323a60453a6141
|
|
| MD5 |
3615f6f2d21e964c164d8de502fd591d
|
|
| BLAKE2b-256 |
ccba9a2f48a019094ac500634bd56ed5a7fe930991f01c92c28bdd6572464c2e
|
File details
Details for the file gdriveresolver-0.0.15-py3-none-any.whl.
File metadata
- Download URL: gdriveresolver-0.0.15-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dc0acd8b4b206422654c54ccc7c59640e2b0e91dc7b63ce43d651b9445988bc
|
|
| MD5 |
c3477d2fa7de4b59b0b860e132ded6b7
|
|
| BLAKE2b-256 |
12bc6a7b79f7c8dfdf869126376766af9a9ff15c9aecef996e5c63f6e48ef486
|