Skip to main content

Thieves is a concurrent, thread-safe Google Drive uploader library.

Project description

thieves

Thieves is a concurrent, thread-safe Google Drive uploader library.

Usage

Thieves uses pydrive which requires credentials from a Cloud Platform project. You can create one by clicking 'Enable the Drive API' here: https://developers.google.com/drive/api/v3/quickstart/python. Then save the file 'credentials.json' and rename it to 'client_secrets.json'. Now you can start writing code!

First, create a Thief. A Thief is a concurrent, thread-safe uploader that will upload all files in a folder it is given.

import thieves

folder = Thief(<path>)

Now that you have created a Thief, you have to authenticate with Google Drive.

folder = Thief(<path>)
folder.auth()

The first time you authenticate it will open in a web browser and allow your Cloud Platform project to connect. Afterwards, Thieves will automatically save your credentials to a file and will refer to those instead.

folder = Thief(<path>)
folder.auth()
folder.upload()

Now that you have authenticated you can upload the folder.

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

thieves-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

thieves-0.1.1-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file thieves-0.1.1.tar.gz.

File metadata

  • Download URL: thieves-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for thieves-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8a338105140390883063b38237b37e4201373f76f4732eddfc3a21cbfbba713a
MD5 9d9cbf4a55eb23c8972806ae96c24b01
BLAKE2b-256 0df54330b5f309f8904dfadea3ae93b7b95df82a99624742dd6651cb01f42fbf

See more details on using hashes here.

File details

Details for the file thieves-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: thieves-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for thieves-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b77d2a87d9ab500de17edcd02e126e5f69f1a18c3eefc39de65c77949dbd8ee7
MD5 c24cdba06f443712e506630d015f218b
BLAKE2b-256 a50d2a6e0db513aa93931614d5c8d33d242215540afd7b7e0b0755496d69ee1a

See more details on using hashes here.

Supported by

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