unipy.utils.gdrive module¶
Docstring for decorator
.
Function Decorator¶
File Transfer |
|
---|---|
gdrive_downloader |
File downloader from Google Drive. |
gdrive_uploader |
File uploader to Google Drive. |
-
unipy.utils.gdrive.
gdrive_downloader
(gdrive_url_id, pattern='*', download_path='./data')[source]¶ Download files in Google Drive.
Download files in Googel Drive to the given path.
- Parameters
gdrive_url_id (str) – An URL ID of an Google Drive directory which contains files to download. https://drive.google.com/drive/folders/<google drive URL ID>.
pattern (str (default: '*')) – A pattern of regular expression to filter file in the target directory.
download_path (str (default: './data')) – A target directory to download files in given URL ID.
- Returns
Nothing is returned.
- Return type
See also
None()
Examples
>>> import unipy.util.gdrive import gdrive_downloader >>> gdrive_path_id = '1LA5334-SZdizcFqkl4xO8Hty7w1q0e8h' >>> up.gdrive_downloader(gdrive_path_id)
-
unipy.utils.gdrive.
gdrive_uploader
(gdrive_url_id, pattern='*', src_dir='./data')[source]¶ Download files in Google Drive.
Download files in Googel Drive to the given path.
- Parameters
gdrive_url_id (str) – An URL ID of an Google Drive directory to upload files. https://drive.google.com/drive/folders/<google drive URL ID>.
pattern (str (default: '*')) – A pattern of regular expression to filter file in the target directory.
src_dir (str (default: './data')) – A source directory to upload files in given URL ID.
- Returns
Nothing is returned.
- Return type
See also
None()
Examples
>>> import unipy.util.gdrive import gdrive_uploader >>> gdrive_path_id = '1LA5334-SZdizcFqkl4xO8Hty7w1q0e8h' >>> up.gdrive_uploader(gdrive_path_id)