This repository contains a pip package enabling the syncing of a keypass database (or any file) with google drive.
It provides the necessary functions for in-script use and a command-line tool.
python -m keypass_sync -h
-- display the documentation
python -m keypass_sync init
-- setup the syncing
You will be asked for:
- The path to the file to sync on your machine
- The id of the corresponding file on your google drive
- (It's the big chain of digits and letters in the middle of the sharing link)
- The path to a OAuth ID file (see installation)
python -m keypass_sync
-- perform a syncing operation
If you now setup a cron job running python -m keypass_sync
periodically your file is now synced with your google drive !
import keypass_sync
.
- Generate and download an OAuth 2 token for your google account
from the
google developer console:
- Select a project or create one (top-left of the window)
- Go to the drive page on the API library and activate it
- From the
drive API dashboard,
create new credentials (you may have to re-select the project from step 1)
- For the drive api
- For a platform with user-interface
- With access to the user's data
- Go to your project-credential page
- Download the OAuth ID
- Install the google-services wrapper package
- Install this package:
- Clone this repository
- Install the dependencies
- I recommend using anaconda (python 3.7)
- run
conda env update -n base
from the repository folder
- Install the package by running
pip install .
from the repository folder
Send a mail to
~retzoh/[email protected]
https://git.sr.ht/~retzoh/keypass_google_drive_sync
https://github.com/Retzoh/keypass_google_drive_sync
The master branches on sr.ht and github are synchronized through this manifest at each commit on master
https://todo.sr.ht/~retzoh/keypass-google-drive-sync-discussions
Send your patches to
~retzoh/[email protected]
Submitted patches can be found there: https://lists.sr.ht/~retzoh/keypass-google-drive-sync-contributing
Send a mail to
~retzoh/[email protected]
to be notified of new patches.