{ "info": { "author": "Luna Chen", "author_email": "luna@bnmetrics.com", "bugtrack_url": null, "classifiers": [], "description": "====================================\nFetchme - Safe Command Aliasing Tool\n====================================\n\n.. image:: https://badge.fury.io/py/fetchme.svg\n :target: https://badge.fury.io/py/fetchme\n\n.. image:: https://travis-ci.org/BNMetrics/fetchme.svg?branch=master\n :target: https://travis-ci.org/BNMetrics/fetchme\n\n.. image:: https://codecov.io/gh/BNMetrics/fetchme/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/BNMetrics/fetchme\n\n\n.. contents:: **Table of Contents**\n\n\nWhat is fetchme?\n================\n**fetchme** is a cli tool for safe aliasing. This package allows aliasing of long commands without using the default bash aliasing.\n\n**Why use fetchme?**\n - Safe aliasing commands, no more accident in overriding a existing command\n - Easy to use\n\n\n\nInstallation\n============\n\nMake sure python 3.6 is installed on your machine, if not, click `here `_ to follow the instructions on installation.\n\n\nThen install the latest version of fetchme via **pip**:\n\n.. code-block:: bash\n\n $ pip3 install fetchme\n\n\nOnce you install the package, there will be a configuration file ``.fetchmerc`` generated in your *home directory*,\nand this is where you put all your aliases.\n\n\nUsage & References\n==================\n\n\nDefault Commands\n----------------\n\n**fetchme** comes with 3 default commands: ``edit``, ``set`` and ``remove``.\n\n\nedit\n~~~~\n\n``edit`` command opens up the ``.fetchmerc`` file in an editor. If you have configured your preferred editor in the environment variable ``EDITOR``,\nthe preferred editor will be launched. The default editor is ``vim`` if the environment variable is not being configured.\n\n**Usage**:\n\n::\n\n fetchme edit [OPTIONS]\n\n\n**Example**:\n\n.. code-block:: bash\n\n $ fetchme edit\n\n\n\nset\n~~~\n\nThis command is for setting an alias to a long command.\n\n**Usage**:\n\n::\n\n fetchme set [OPTIONS] CONTENT\n\n\n**Example**:\n\n.. code-block:: bash\n\n $ fetchme set ssh=\"ssh -i /path/to/my/key/file root@123.43.678.678\"\n\n\nThe ``CONTENT`` argument is where you set your alias as key=value pair, it is recommended that you **quote** the command that is\nto be aliased, like so in the example.\n\nAn additional line will be added to ``.fetchmerc`` file after the ``set`` command is being executed.\n\n.. code-block:: ini\n\n [fetchme]\n ssh = ssh -i /path/to/my/key/file root@123.43.678.678\n\n\n**Options**:\n\n--override, -o: *flag*, override an existing alias, this flag must to be past when you\n need to overriding an existing alias that has already been set.\n\n\nremove\n~~~~~~\n\nThis command is to remove an existing alias.\n\n**Usage**:\n\n::\n\n fetchme remove [OPTIONS] NAME\n\n\n**Example**:\n\n.. code-block:: bash\n\n $ fetchme remove ssh\n\n\n\nThe ``NAME`` argument corresponds to an alias that is being set in the ``.fetchmerc`` file.\n\n\n\nExecuting Aliased Commands\n--------------------------\n\nOnce you have ``set`` the alias to your command, you can execute your command by directing calling it with fetchme.\n\n**Usage**:\n\n::\n\n fetchme ALIAS [OPTIONS]\n\n\n**Example**:\n\n.. code-block:: bash\n\n $ fetchme ssh\n\n\nTo see the original *unaliased* command, you can use the ``-h`` flag to bring up the descriptions.\n\n\nGlobal Options\n--------------\n\nThese options applies to all the commands, including the aliases.\n\n\nCall 'help' commands\n~~~~~~~~~~~~~~~~~~~~\n\n.. code-block:: bash\n\n $ fetchme -h\n\n $ fetchme ssh -h\n\nCalling ``fetchme -h`` command also displays available commands, this includes the aliases you have defined.\n\n\nCheck fetchme version\n~~~~~~~~~~~~~~~~~~~~~\n\n.. code-block:: bash\n\n $ fetchme -v\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/BNMetrics/fetchme", "keywords": "alias,cli,command-aliasing,bash-aliasing", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "fetchme", "package_url": "https://pypi.org/project/fetchme/", "platform": "", "project_url": "https://pypi.org/project/fetchme/", "project_urls": { "Homepage": "https://github.com/BNMetrics/fetchme" }, "release_url": "https://pypi.org/project/fetchme/1.1.1/", "requires_dist": [ "click", "bnmutils" ], "requires_python": ">=3", "summary": "package for caching and aliasing long commands", "version": "1.1.1" }, "last_serial": 3918130, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9f976a5fd475b02930251cf6c4796ca9", "sha256": "451d4673c8b92d83ce2e4311456f3928eb4ef43230efdb9bad0a98c1ead34303" }, "downloads": -1, "filename": "fetchme-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9f976a5fd475b02930251cf6c4796ca9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 5361, "upload_time": "2018-05-30T12:21:06", "url": "https://files.pythonhosted.org/packages/74/08/4b7f72ccce8375ebfaedfde67933d434dff2365eceab731923483b02aed3/fetchme-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "42068f3b86b145f49f0e6ef6199111bf", "sha256": "9ced7aa806da472a8a61cc458924391aba79931c5ccbf922fa3b6d139ba769d4" }, "downloads": -1, "filename": "fetchme-1.0.0.tar.gz", "has_sig": false, "md5_digest": "42068f3b86b145f49f0e6ef6199111bf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5153, "upload_time": "2018-05-30T12:21:07", "url": "https://files.pythonhosted.org/packages/3e/6c/e2ca7bdd6abc75a6aa82a42595449d3cf0a7b9228e67ab67864a6950d1f1/fetchme-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "a72fed9f5cdc6217f27c47896f15f854", "sha256": "ed7a0b48f83f519200d9b89e67e6eef62e1c22def1d0dcc6ccdd990658d3179e" }, "downloads": -1, "filename": "fetchme-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a72fed9f5cdc6217f27c47896f15f854", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 5513, "upload_time": "2018-05-30T12:35:33", "url": "https://files.pythonhosted.org/packages/40/c6/8633bd0e5a42262abad7ee4766fc0b5a2e81ca7ccb14aee530ea4a39ea3d/fetchme-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6eb4bc093195f8bef291dd295393c100", "sha256": "459e9b0dad3697cd1e2df204554eea8649895d2677cbebcd8a589b35de31c3f2" }, "downloads": -1, "filename": "fetchme-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6eb4bc093195f8bef291dd295393c100", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5332, "upload_time": "2018-05-30T12:35:34", "url": "https://files.pythonhosted.org/packages/4e/6f/41691f855783010127ddac4b23c7e7f52e2dd98f541b2a9d74bca8526d77/fetchme-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "604683f3a38a1818ff3c2ae491329df8", "sha256": "6c369c5f08c4a35dd81461870cc22dffbe8cc4bf2ce78b12d59a9199e008c528" }, "downloads": -1, "filename": "fetchme-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "604683f3a38a1818ff3c2ae491329df8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 5516, "upload_time": "2018-05-31T19:08:33", "url": "https://files.pythonhosted.org/packages/ea/d6/4d23f35b4d99d64c6d6ddfecc76036d98dc03a711a3b43e929aae815dbaa/fetchme-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b507f2d564dfef020d6b8293200fa127", "sha256": "d3c9537109075e003efd3c89f422cbf20a0470e28802384a36f0aa16feee94e2" }, "downloads": -1, "filename": "fetchme-1.1.1.tar.gz", "has_sig": false, "md5_digest": "b507f2d564dfef020d6b8293200fa127", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5308, "upload_time": "2018-05-31T19:08:35", "url": "https://files.pythonhosted.org/packages/2c/bc/41f0cf3fff2a4563f69f0f4d41ca9b6e03df7696ad258e8f6a945a93bdf4/fetchme-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "604683f3a38a1818ff3c2ae491329df8", "sha256": "6c369c5f08c4a35dd81461870cc22dffbe8cc4bf2ce78b12d59a9199e008c528" }, "downloads": -1, "filename": "fetchme-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "604683f3a38a1818ff3c2ae491329df8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 5516, "upload_time": "2018-05-31T19:08:33", "url": "https://files.pythonhosted.org/packages/ea/d6/4d23f35b4d99d64c6d6ddfecc76036d98dc03a711a3b43e929aae815dbaa/fetchme-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b507f2d564dfef020d6b8293200fa127", "sha256": "d3c9537109075e003efd3c89f422cbf20a0470e28802384a36f0aa16feee94e2" }, "downloads": -1, "filename": "fetchme-1.1.1.tar.gz", "has_sig": false, "md5_digest": "b507f2d564dfef020d6b8293200fa127", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5308, "upload_time": "2018-05-31T19:08:35", "url": "https://files.pythonhosted.org/packages/2c/bc/41f0cf3fff2a4563f69f0f4d41ca9b6e03df7696ad258e8f6a945a93bdf4/fetchme-1.1.1.tar.gz" } ] }