cd-drive-0.1
توضیحات
Wrapper to easily manipulate Google Drive files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cd-drive-0.1 |
| نام | cd-drive |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/matheusbsilva/cd_drive |
| آدرس اینترنتی | https://pypi.org/project/cd-drive/ |
| مجوز | MIT |
# cd_drive
cd Drive is a wrapper of google-api-python-client that make it easier to manipulate files on Google Drive.
# Installation
You can install cd_drive using `pip`:
```
pip install cd_drive
```
# Usage
First [enable Google Drive API on your google account](https://developers.google.com/drive/api/v3/enable-drive-api) and download the `credentials.json` file. With the credentials file you can start using cd_drive:
```python
from cd_drive import Drive
# Perform oAuth flow to authorize application
drive = Drive('path/to/credentials.json')
# Select current dir
drive.cd('Images/')
# Read file from Google Drive at the current dir
img = drive.read('photo.png')
# Write file on Google Drive at the current dir
drive.write('new-photo.png')
```
نیازمندی
| مقدار | نام |
|---|---|
| ==1.7.12 | google-api-python-client |
| ==0.0.3 | google-auth-httplib2 |
| ==0.4.1 | google-auth-oauthlib |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cd-drive-0.1:
pip install cd-drive-0.1.whl
نصب پکیج tar.gz cd-drive-0.1:
pip install cd-drive-0.1.tar.gz