📜 ⬆️ ⬇️

Docsbox

Docsbox I made my life easier and want to share it with you. Now documents created in Google Docs are available offline and on all of my work computers.

I present to you the Python script that synchronizes the documents between the Google Docs service and the directory on the drive, which in my case is the Dropbox server storage directory.

Source: github.com/k0sh/Docsbox

Installation


  1. Download and unzip the archive - github.com/downloads/k0sh/Docsbox/docsbox-0.1.zip
  2. Copy the file docsbox.conf.example to docsbox.conf and fill it with your data
  3. Install The Google Data Python Client Library (# easy_install gdata)
  4. Running the script: # python docsbox.py

')

Principle of operation.


First, the presence of the 'dropbox' folder in Google Docs (the FOLDER parameter) is checked, if it is absent, it is created. The list of documents in this folder is requested. Searches for documents (files with the extension .doc) in the specified directory (parameter BOX_PATH). Further, the Google docs documents found in the directory are downloaded from the service. Changed documents (those which do not equal the last update date) are uploaded / loaded accordingly. Documents missing in Google Docs are loaded into the service.

Known Issues



PS1


It would be absolutely wonderful if Dropbox had an API, then it would be possible to fasten this script as a plugin and everything would work on the machine, and not as it is now in manual or by cron.

PS2


The author is not responsible for the software provided. Use at your own risk.

Source: https://habr.com/ru/post/85683/


All Articles