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
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
Hashes for thieves-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77d2a87d9ab500de17edcd02e126e5f69f1a18c3eefc39de65c77949dbd8ee7 |
|
MD5 | c24cdba06f443712e506630d015f218b |
|
BLAKE2b-256 | a50d2a6e0db513aa93931614d5c8d33d242215540afd7b7e0b0755496d69ee1a |