Skip to main content

No project description provided

Project description

glink

GitHub Build Status PyPI

Sync files between gist and localhost.

Purpose

When I clone a lot of repos and found a lot of interesting code file, I can simplily push them to my gist via glink.

After I pull all the above repos, I can simplily update all my gists via one single command (glink sync).

glink store sync states in ~/.config/Cologler/glink/..., which mean if you move the linked file, it will lose the connection.

Try gist-sync if you need move the gist files.

Installation

pip install glink2

Login

To login a remote repo, you need to edit the ~/.config/Cologler/glink/auth.json. The format is like:

{
    "<USER>@<SERVICE>": ...
}

The user name is required because the glink support multi-accounts per provider.

Gist

Login is required for push only.

To login gist, you need to create a new dev token from https://github.com/settings/tokens/new. Ensure you checked the gist scope.

After you get the token, add following text into auth.json:

{
    "<USER>@gist": "<TOKEN>"
}

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

glink2-0.2.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

glink2-0.2.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file glink2-0.2.1.tar.gz.

File metadata

  • Download URL: glink2-0.2.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.1

File hashes

Hashes for glink2-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3ed495c22571fc236df1673c14258628be380c150ab1b13eed4257422fbc28d4
MD5 55bd08c9f29e02d03008115a38a51de9
BLAKE2b-256 30a0d41e964a84acbdd8909750714d9b69f8d302c6ca12eddd8773480d0a0e2b

See more details on using hashes here.

File details

Details for the file glink2-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: glink2-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.1

File hashes

Hashes for glink2-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd6a800886d13cb56725d1a6ca9abd0910f29a4f98d7e1064b8500bae53cf497
MD5 83a1463f0c9988aed88d55513f75652f
BLAKE2b-256 6e057766e3cc0e306eeacd7bedb2457594e45b17041da6ec287e79bfc83782da

See more details on using hashes here.

Supported by

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