How to use comcomdrive
Comcomdrive is package which enables to use google drive in Ainize workspace.
Prerequisite
Google desktop client credential is required and sholud be located '~/.comcomdrive'
Installation
$ pip3 install comcomdrive
Usage
Command-line interface(cli)
- Login
Start google authentication in console, and generate token.json file to '~/.comcomdrive' path.
$ comcomdrive login
- Search
Receive keyword by prompt, and return list(id, and name) of file the name of which contains keyword.
$ comcomdrive search
Authentication class
from comcomdrive import auth
auth.Auth().login()
Search class
from comcomdrive import search
search.Search().list_all_files()
search.Search().search_keyword('file_keyword')
Transfer class
from comcomdrive import transfer
# upload file to root folder
transfer.Transfer().upload_file('src_file')
# create new dest folder and upload file to the folder
transfer.Transfer().upload_file('src_file', 'dest')
# download file or folder with id
transfer.Transfer().download_file('1j-MBEcJr8RHblsQPitI33mI5cPI-CgZ9')
Metadata
Release files for comcomdrive 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| comcomdrive-0.0.6.tar.gz | 5.1 kB | Without provenance | Details for comcomdrive-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| comcomdrive-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for comcomdrive-0.0.6-py3-none-any.whl |
Total release size: 11.5 kB
Release files / comcomdrive-0.0.6.tar.gz
| Download URL | comcomdrive-0.0.6.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4395d1c3842e46574bb044961cc1cc26de73b91c7ce536be3757172c2589b031
|
|
BLAKE2b-256 checksum How to use checksums |
a71fbe1fa2e6a47c194153794aa250d19911158a7a580175032b1e1d99efef12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|
Release files / comcomdrive-0.0.6-py3-none-any.whl
| Download URL | comcomdrive-0.0.6-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca0c3b8567e63c6e9c3cded156fd699b35809fe736ac1dbfccf2282f5c3b5b48
|
|
BLAKE2b-256 checksum How to use checksums |
0eb38c6b6183392c36ea9fc7f7e6581e0af71c01e7d936bc9a361567e06bac70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|
Security for comcomdrive 0.0.6
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.