{
"info": {
"author": "JunYoung Gwak",
"author_email": "jgwak@dreamylab.com",
"bugtrack_url": null,
"classifiers": [],
"description": "Fork\r\n----\r\nThis is simply a fork of the PyDrive repo. The code here comes directly from github. This was created back when PyDrive wasnt python3 compatible. But now it is, so this package is useless now. You should use the official one from google\r\n\r\nPyDrive\r\n-------\r\n\r\n*PyDrive* is a wrapper library of\r\n`google-api-python-client `_\r\nthat simplifies many common Google Drive API tasks.\r\n\r\nProject Info\r\n------------\r\n\r\n- Homepage: `https://pypi.python.org/pypi/PyDrive `_ \r\n- Documentation: `http://pythonhosted.org/PyDrive `_ \r\n- Github: `https://github.com/googledrive/PyDrive `_ \r\n\r\nFeatures of PyDrive\r\n-------------------\r\n\r\n- Simplifies OAuth2.0 into just few lines with flexible settings.\r\n- Wraps `Google Drive API `_ into\r\n classes of each resource to make your program more object-oriented.\r\n- Helps common operations else than API calls, such as content fetching\r\n and pagination control.\r\n\r\nHow to install\r\n--------------\r\n\r\nYou can install PyDrive with regular ``pip`` command.\r\n\r\n::\r\n\r\n $ pip install PyDrive\r\n\r\nOAuth made easy\r\n---------------\r\n\r\nDownload *client\\_secrets.json* from Google API Console and OAuth2.0 is\r\ndone in two lines. You can customize behavior of OAuth2 in one settings\r\nfile *settings.yaml*.\r\n\r\n.. code:: python\r\n\r\n\r\n from pydrive.auth import GoogleAuth\r\n from pydrive.drive import GoogleDrive\r\n \r\n gauth = GoogleAuth()\r\n gauth.LocalWebserverAuth()\r\n \r\n drive = GoogleDrive(gauth)\r\n\r\nFile management made easy\r\n-------------------------\r\n \r\nUpload/update the file with one method. PyDrive will do it in the most\r\nefficient way.\r\n\r\n.. code:: python\r\n\r\n file1 = drive.CreateFile({'title': 'Hello.txt'})\r\n file1.SetContentString('Hello')\r\n file1.Upload() # Files.insert()\r\n\r\n file1['title'] = 'HelloWorld.txt' # Change title of the file\r\n file1.Upload() # Files.patch()\r\n\r\n content = file1.GetContentString() # 'Hello'\r\n file1.SetContentString(content+' World!') # 'Hello World!'\r\n file1.Upload() # Files.update()\r\n\r\n file2 = drive.CreateFile()\r\n file2.SetContentFile('hello.png')\r\n file2.Upload()\r\n print('Created file %s with mimeType %s' % (file2['title'], file2['mimeType']))\r\n # Created file hello.png with mimeType image/png\r\n\r\n file3 = drive.CreateFile({'id': file2['id']})\r\n print('Downloading file %s from Google Drive' % file3['title']) # 'hello.png'\r\n file3.GetContentFile('world.png') # Save Drive file as a local file\r\n\r\n # or download Google Docs files in an export format provided.\r\n # downloading a docs document as an html file:\r\n docsfile.GetContentFile('test.html', mimetype='text/html')\r\n\r\nFile listing pagination made easy\r\n---------------------------------\r\n\r\n*PyDrive* handles file listing pagination for you.\r\n\r\n.. code:: python\r\n\r\n # Auto-iterate through all files that matches this query\r\n file_list = drive.ListFile({'q': \"'root' in parents\"}).GetList()\r\n for file1 in file_list:\r\n print('title: %s, id: %s' % (file1['title'], file1['id']))\r\n\r\n # Paginate file lists by specifying number of max results\r\n for file_list in drive.ListFile({'maxResults': 10}):\r\n print 'Received %s files from Files.list()' % len(file_list) # <= 10\r\n for file1 in file_list:\r\n print('title: %s, id: %s' % (file1['title'], file1['id']))",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://pypi.python.org/pypi/PyDrive/",
"keywords": "",
"license": "LICENSE",
"maintainer": "",
"maintainer_email": "",
"name": "PyDrive3",
"package_url": "https://pypi.org/project/PyDrive3/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/PyDrive3/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://pypi.python.org/pypi/PyDrive/"
},
"release_url": "https://pypi.org/project/PyDrive3/1.0.0/",
"requires_dist": null,
"requires_python": null,
"summary": "Google Drive API made easy.",
"version": "1.0.0"
},
"last_serial": 2274240,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "d522180430f58b6a0493660c3e5e401f",
"sha256": "1d19e5ca52f49b29c506f999b40fd27623abfecf356f30031fa180683a5b122c"
},
"downloads": -1,
"filename": "PyDrive3-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "d522180430f58b6a0493660c3e5e401f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 157652,
"upload_time": "2016-03-25T21:21:52",
"url": "https://files.pythonhosted.org/packages/58/60/5d67343ea4d482eaba9a891a0ffb51186c50a11059697f7e9198020f4b80/PyDrive3-1.0.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "d522180430f58b6a0493660c3e5e401f",
"sha256": "1d19e5ca52f49b29c506f999b40fd27623abfecf356f30031fa180683a5b122c"
},
"downloads": -1,
"filename": "PyDrive3-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "d522180430f58b6a0493660c3e5e401f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 157652,
"upload_time": "2016-03-25T21:21:52",
"url": "https://files.pythonhosted.org/packages/58/60/5d67343ea4d482eaba9a891a0ffb51186c50a11059697f7e9198020f4b80/PyDrive3-1.0.0.tar.gz"
}
]
}