glink2


Nameglink2 JSON
Version 0.1.7 PyPI version JSON
download
home_pagehttps://github.com/Cologler/glink-python
Summary
upload_time2020-11-26 08:08:34
maintainer
docs_urlNone
authorCologler
requires_python
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # glink

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](https://github.com/Cologler/gist-sync-python) if you need move the gist files.

## Installation

``` bash
pip install glink2
```

## Login

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

``` json
{
    "<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`:

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Cologler/glink-python",
    "name": "glink2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Cologler",
    "author_email": "skyoflw@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6c/18/08ae804e5b638beb59b9cf288b86f52a48fd11052b4123f40c01de6d8495/glink2-0.1.7.tar.gz",
    "platform": "",
    "description": "# glink\n\nSync files between gist and localhost.\n\n## Purpose\n\nWhen I clone a lot of repos and found a lot of interesting code file,\nI can simplily push them to my gist via `glink`.\n\nAfter I pull all the above repos,\nI can simplily update all my gists via one single command (`glink sync`).\n\n`glink` store sync states in `~/.config/Cologler/glink/...`,\nwhich mean if you move the linked file,\nit will lose the connection.\n\nTry [gist-sync](https://github.com/Cologler/gist-sync-python) if you need move the gist files.\n\n## Installation\n\n``` bash\npip install glink2\n```\n\n## Login\n\nTo login a remote repo, you need to edit the `~/.config/Cologler/glink/auth.json`.\nThe format is like:\n\n``` json\n{\n    \"<USER>@<SERVICE>\": ...\n}\n```\n\n*The user name is required because the `glink` support multi-accounts per provider.*\n\n### Gist\n\n*Login is required for push only.*\n\nTo login gist, you need to create a new dev token from https://github.com/settings/tokens/new.\nEnsure you checked the `gist` scope.\n\nAfter you get the token, add following text into `auth.json`:\n\n``` json\n{\n    \"<USER>@gist\": \"<TOKEN>\"\n}\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "",
    "version": "0.1.7",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "b5dabe237b0364cf415149c12e415081",
                "sha256": "d662958f4c3bc6911a69d3f56ed44ee2478d8a11a99042f663a7b3bd6ef1237a"
            },
            "downloads": -1,
            "filename": "glink2-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b5dabe237b0364cf415149c12e415081",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11726,
            "upload_time": "2020-11-26T08:08:33",
            "upload_time_iso_8601": "2020-11-26T08:08:33.379795Z",
            "url": "https://files.pythonhosted.org/packages/bf/14/9eca48e2f7bcac56a005159512c4f3bffda5de7fa7b35ab50cc973d4a45e/glink2-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "e5566d6b342e095ae23d5a8cd47b1cce",
                "sha256": "1e21c21c05b980db63bf3920cbd48153fc80b33a76c3a3f93949fe3b05175068"
            },
            "downloads": -1,
            "filename": "glink2-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "e5566d6b342e095ae23d5a8cd47b1cce",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8009,
            "upload_time": "2020-11-26T08:08:34",
            "upload_time_iso_8601": "2020-11-26T08:08:34.299451Z",
            "url": "https://files.pythonhosted.org/packages/6c/18/08ae804e5b638beb59b9cf288b86f52a48fd11052b4123f40c01de6d8495/glink2-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-11-26 08:08:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "Cologler",
    "error": "Could not fetch GitHub repository",
    "lcname": "glink2"
}
        
Elapsed time: 0.15200s