sphinxcontrib-googledrive
=========================
This Sphinx extension allows you to embed images on `Google Drive`_ into your document::
.. image:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit
.. _Google Drive: https://www.google.com/drive/
Setting
=======
Install
-------
::
$ pip install sphinxcontrib-googledrive
Prepare your Google Apps
------------------------
This extension expects you to create Google Apps and its Service Account.
Please read the document of `Google Client Libraries: Using OAuth 2.0 for
Server to Server Applications`_ and create your service account. And
please generate a private key for the account.
.. _Google Client Libraries: Using OAuth 2.0 for Server to Server Applications`: https://developers.google.com/api-client-library/python/auth/service-accounts
Configure Sphinx
----------------
Add ``sphinxcontrib.googledrive`` to ``extensions`` at `conf.py`::
extensions += ['sphinxcontrib.googledrive']
And let the private key for your service account to Sphinx through one of
the following methods:
1. Set content of the private key via environment variable
`GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY`::
$ export GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY='{"type": "service_account", ...}'
2. Set a path to the private key file via `googledrive_service_account`
in `conf.py`::
googledrive_service_account = '/path/to/private.key'
Usage
=====
Please give an URL of caoo diagrams to image_ or figure_ directives
as an argument::
.. image:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit
.. figure:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit
caption of figure
.. _image: http://docutils.sourceforge.net/docs/ref/rst/directives.html#image
.. _figure: http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure
Configuration Options
======================
**googledrive_service_account**
A path to private key for service account.
**googledrive_trim_images**
Trim white space or not (boolean).
Repository
==========
https://github.com/tk0miya/sphinxcontrib-googledrive
=========================
This Sphinx extension allows you to embed images on `Google Drive`_ into your document::
.. image:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit
.. _Google Drive: https://www.google.com/drive/
Setting
=======
Install
-------
::
$ pip install sphinxcontrib-googledrive
Prepare your Google Apps
------------------------
This extension expects you to create Google Apps and its Service Account.
Please read the document of `Google Client Libraries: Using OAuth 2.0 for
Server to Server Applications`_ and create your service account. And
please generate a private key for the account.
.. _Google Client Libraries: Using OAuth 2.0 for Server to Server Applications`: https://developers.google.com/api-client-library/python/auth/service-accounts
Configure Sphinx
----------------
Add ``sphinxcontrib.googledrive`` to ``extensions`` at `conf.py`::
extensions += ['sphinxcontrib.googledrive']
And let the private key for your service account to Sphinx through one of
the following methods:
1. Set content of the private key via environment variable
`GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY`::
$ export GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY='{"type": "service_account", ...}'
2. Set a path to the private key file via `googledrive_service_account`
in `conf.py`::
googledrive_service_account = '/path/to/private.key'
Usage
=====
Please give an URL of caoo diagrams to image_ or figure_ directives
as an argument::
.. image:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit
.. figure:: https://docs.google.com/drawings/d/1Q687-tVfqOMh86-16yl64misTee2bO5KPNuV5-LZ5FE/edit
caption of figure
.. _image: http://docutils.sourceforge.net/docs/ref/rst/directives.html#image
.. _figure: http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure
Configuration Options
======================
**googledrive_service_account**
A path to private key for service account.
**googledrive_trim_images**
Trim white space or not (boolean).
Repository
==========
https://github.com/tk0miya/sphinxcontrib-googledrive
Metadata
Release files for sphinxcontrib-googledrive 0.1.0
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 | |
|---|---|---|---|---|
| sphinxcontrib-googledrive-0.1.0.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinxcontrib_googledrive-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.0 kB
Release files / sphinxcontrib-googledrive-0.1.0.tar.gz
| Download URL | sphinxcontrib-googledrive-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62871b7635e2da1f6a1a50aead3cfa7ce09df9d15318af9103ada0aed577ca83
|
|
BLAKE2b-256 checksum How to use checksums |
97ae8a696c7e4cde136d9f068ced40ad57ce507e8be00c88afe869e292644db2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|
Release files / sphinxcontrib_googledrive-0.1.0-py2.py3-none-any.whl
| Download URL | sphinxcontrib_googledrive-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2cb0975f48897f6220436ad6c283f3431dc77a6cd523aeb3d2d9ab6f73ae50a5
|
|
BLAKE2b-256 checksum How to use checksums |
cd73dd485fe1ba1cb482dae9c5cf5ccf43ab110109369bc523e4b24879fd70c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|
Security for sphinxcontrib-googledrive 0.1.0
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.