Skip to main content

Google Drive sync client for Linux

Project description

gynx

Google Drive sync client for Linux.

This project is still in an experimental phase. Care should be exercised when syncing important Google Drive files.

Installation

The simplest way to install gynx is through pip

pip install --user gynx

Use the --user flag to install the relevant files and scripts in your home diretory. N.B. Do not install as the root user, or using sudo, to prevent permissions errors during use.

From Source

To install from source

git clone https://gitlab.com/ml394/gynx.git
cd gynx
python setup.py install

This should be run inside a Python 3 virtual environment.

Usage

Create a Google Drive sync folder in your home directory and run the gynx command to start the syncing operations.

The first time this is run, you will be asked to sign into Google via your web browser and give the gynx app permissions to access your account.

mkdir ~/drive;
cd ~/drive;
gynx

Your authentication token will be saved in the app config, so you will only need to sign in once. On subsequent executions you can simply cd into your synced drive directory and run the gynx command.

N.B. You must be in your root drive folder when you run the gynx command. It will try to sync your Google Drive folder with whatever folder you are currently in.

Options

The gynx command can be run with a few options to further customize your sync operation, sign in using another account, and refresh your file cache to fix errors.

Option Description
--version -V Print gynx release number to console and exit
--help -h Print gynx help text to console and exit
--verbose -v Run in verbose mode. Prints out remote drive information prior to program executions
--clean -c Removes the stored file caches before running. Use this option following any output errors.
--refresh -r Deletes the contents of the local directory and runs a full download from the remote drive. Be careful!
--auth -a Create a new auth token by signing in with another Google account. This will overwrite your current token.
--dry-run -d Only print the operations to be performed to the console, but don't run them. Useful for debugging.
--schedule -s Run sync automatically on a schedule. Press Ctrl+C to stop.
--duration -D Minutes until next automatic run (default 10).
--start -S Start automatic folder monitoring after the intial run. Press Ctrl+C to stop

Contributing

If you're interested in contributing to gynx, please follow these steps:

  1. Take a look at the Contributing Guidelines and make sure you understand the merge request process
  2. Check out ongoing issues in the Issue List and see if there's anything you can help out with. Feel free to submit your own issue if you discover a bug or want to suggest a new feature.
  3. Clone the development branch and checkout your own branch to commit your changes.
  4. Push your branch and submit a Merge Request for review.

To Do

This is a list of upcoming planned features as set out in the project Milestones. For a full list of issues and current development status, check the Issue Board

  • Working CLI interface for all recursive functions
  • PyPi deployment and installation
  • Full test suite with > 85% coverage
  • Continuous sync and changes monitoring through cron or system service
  • API web service to distribute app credentials
  • Allow users to generate own app credentials for individual quotas

Donations

If you like the software and would like to donate, take a look at TBC

Instead, donate to an organization or open source project that helps promote a free and safe Internet, such as:

It seductively wiggles its hips as it walks. It can cause people to dance in unison with it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gynx-0.0.8.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gynx-0.0.8-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file gynx-0.0.8.tar.gz.

File metadata

  • Download URL: gynx-0.0.8.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for gynx-0.0.8.tar.gz
Algorithm Hash digest
SHA256 fba3041f01a1e96085f7db936aca2e93c07457c2e4c4f84dc0fc721d169f49df
MD5 7a91ccc45929e8588de3324ee805adbd
BLAKE2b-256 afd3e29d809ae8bc0a60932239594d76a5696117cd5d9805ef70b907516fe5a4

See more details on using hashes here.

File details

Details for the file gynx-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: gynx-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for gynx-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 266b28b4edf718c8164da84fb7ba13c04fb844de55b0c679506c79ccd3950e71
MD5 53ff1bcadb170c80d54a01cbfa2d9639
BLAKE2b-256 1e1c11aabe5bfeb498f9517d00eddda0d4bc00007f90d4ce1d6dc2a34bc336f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page