{ "info": { "author": "Takeshi KOMIYA", "author_email": "i.tkomiya@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Web Environment", "Framework :: Sphinx :: Extension", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.7", "Topic :: Documentation", "Topic :: Documentation :: Sphinx", "Topic :: Utilities" ], "description": "sphinxcontrib-googledrive\n=========================\n\nThis Sphinx extension allows you to embed images on `Google Drive`_ into your document::\n\n .. image:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit\n\n.. _Google Drive: https://www.google.com/drive/\n\n\nSetting\n=======\n\nInstall\n-------\n\n::\n\n $ pip install sphinxcontrib-googledrive\n\n\nPrepare your Google Apps\n------------------------\n\nThis extension expects you to create Google Apps and its Service Account.\nPlease read the document of `Google Client Libraries: Using OAuth 2.0 for\nServer to Server Applications`_ and create your service account. And\nplease generate a private key for the account.\n\n.. _Google Client Libraries: Using OAuth 2.0 for Server to Server Applications`: https://developers.google.com/api-client-library/python/auth/service-accounts\n\nConfigure Sphinx\n----------------\n\nAdd ``sphinxcontrib.googledrive`` to ``extensions`` at `conf.py`::\n\n extensions += ['sphinxcontrib.googledrive']\n\nAnd let the private key for your service account to Sphinx through one of\nthe following methods:\n\n1. Set content of the private key via environment variable\n `GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY`::\n\n $ export GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY='{\"type\": \"service_account\", ...}'\n\n2. Set a path to the private key file via `googledrive_service_account`\n in `conf.py`::\n\n googledrive_service_account = '/path/to/private.key'\n\n\nUsage\n=====\n\nPlease give an URL of caoo diagrams to image_ or figure_ directives\nas an argument::\n\n .. image:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit\n\n .. figure:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit\n\n caption of figure\n\n.. _image: http://docutils.sourceforge.net/docs/ref/rst/directives.html#image\n.. _figure: http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure\n\n\n\nConfiguration Options\n======================\n\n**googledrive_service_account**\n\n A path to private key for service account.\n\n**googledrive_trim_images**\n\n Trim white space or not (boolean).\n\n\nRepository\n==========\n\nhttps://github.com/tk0miya/sphinxcontrib-googledrive\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tk0miya/sphinxcontrib-googledrive/", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "sphinxcontrib-googledrive", "package_url": "https://pypi.org/project/sphinxcontrib-googledrive/", "platform": "any", "project_url": "https://pypi.org/project/sphinxcontrib-googledrive/", "project_urls": { "Homepage": "https://github.com/tk0miya/sphinxcontrib-googledrive/" }, "release_url": "https://pypi.org/project/sphinxcontrib-googledrive/0.1.0/", "requires_dist": [ "Sphinx (>=1.8)", "google-api-python-client", "pillow", "python-dateutil", "requests" ], "requires_python": ">=3.7", "summary": "Sphinx \"Google Drive\" extension; embed images on Google Drive", "version": "0.1.0" }, "last_serial": 4372060, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "42b93ee89f996f0826787ee1556ee2f4", "sha256": "2cb0975f48897f6220436ad6c283f3431dc77a6cd523aeb3d2d9ab6f73ae50a5" }, "downloads": -1, "filename": "sphinxcontrib_googledrive-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "42b93ee89f996f0826787ee1556ee2f4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7", "size": 6296, "upload_time": "2018-10-13T14:25:13", "url": "https://files.pythonhosted.org/packages/cd/73/dd485fe1ba1cb482dae9c5cf5ccf43ab110109369bc523e4b24879fd70c7/sphinxcontrib_googledrive-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10c3d3ca8b94cd5862d9cfcc2ccf7161", "sha256": "62871b7635e2da1f6a1a50aead3cfa7ce09df9d15318af9103ada0aed577ca83" }, "downloads": -1, "filename": "sphinxcontrib-googledrive-0.1.0.tar.gz", "has_sig": false, "md5_digest": "10c3d3ca8b94cd5862d9cfcc2ccf7161", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 5692, "upload_time": "2018-10-13T14:25:15", "url": "https://files.pythonhosted.org/packages/97/ae/8a696c7e4cde136d9f068ced40ad57ce507e8be00c88afe869e292644db2/sphinxcontrib-googledrive-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "42b93ee89f996f0826787ee1556ee2f4", "sha256": "2cb0975f48897f6220436ad6c283f3431dc77a6cd523aeb3d2d9ab6f73ae50a5" }, "downloads": -1, "filename": "sphinxcontrib_googledrive-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "42b93ee89f996f0826787ee1556ee2f4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7", "size": 6296, "upload_time": "2018-10-13T14:25:13", "url": "https://files.pythonhosted.org/packages/cd/73/dd485fe1ba1cb482dae9c5cf5ccf43ab110109369bc523e4b24879fd70c7/sphinxcontrib_googledrive-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10c3d3ca8b94cd5862d9cfcc2ccf7161", "sha256": "62871b7635e2da1f6a1a50aead3cfa7ce09df9d15318af9103ada0aed577ca83" }, "downloads": -1, "filename": "sphinxcontrib-googledrive-0.1.0.tar.gz", "has_sig": false, "md5_digest": "10c3d3ca8b94cd5862d9cfcc2ccf7161", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 5692, "upload_time": "2018-10-13T14:25:15", "url": "https://files.pythonhosted.org/packages/97/ae/8a696c7e4cde136d9f068ced40ad57ce507e8be00c88afe869e292644db2/sphinxcontrib-googledrive-0.1.0.tar.gz" } ] }