Skip to main content

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 GoogleDriveResolver

gdrive_resolver = GoogleDriveResolver()
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 GoogleDriveResolver

absolute_path = GoogleDriveResolver(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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdriveresolver-0.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdriveresolver-0.0.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file gdriveresolver-0.0.3.tar.gz.

File metadata

  • Download URL: gdriveresolver-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gdriveresolver-0.0.3.tar.gz
Algorithm Hash digest
SHA256 10f817ec94ad45e2555fc372661a1295969d5d058e8b64551f7d6d9e587e924d
MD5 4aef3c90f0d80ea1cd8ba9b2e67018cb
BLAKE2b-256 babed6c886bbe07a03376018a1bbdd597ff198ddf41d7fbaedfe9c3cf832df29

See more details on using hashes here.

File details

Details for the file gdriveresolver-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gdriveresolver-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gdriveresolver-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a469ffc7cbd9b30fe9736db7a2b894556d242ed46e355f1ae4ee580ed810744d
MD5 acf0acce62a7c363d37b6f7d66732bfe
BLAKE2b-256 2cc009d9b13e5828d9f832ca19411fe77817b7cf4478462aad9e846b721c1e7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page