{ "info": { "author": "Gustavo Sampaio", "author_email": "gbritosampaio@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "==========\nAlfred Cmd\n==========\n\n\n.. image:: https://img.shields.io/pypi/v/alfredcmd.svg\n :target: https://pypi.python.org/pypi/alfredcmd\n\n.. image:: https://img.shields.io/travis/GustavoKatel/alfredcmd.svg\n :target: https://travis-ci.org/GustavoKatel/alfredcmd\n\n.. image:: https://readthedocs.org/projects/alfredcmd/badge/?version=latest\n :target: https://alfredcmd.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\n\n\nCreate portable custom commands and scripts.\n\nThis is currently in beta, but usable.\n\nUsage\n------\n\nAll the config are located in :code:`$USER/.alfred/alfred.toml`\n\nConfig\n~~~~~~\n\n.. code-block:: toml\n\n [variables]\n mode=\"debug\"\n\n [function.branch]\n exec=\"git rev-parse --abbrev-ref HEAD\"\n\n [command.st]\n exec=\"git status\"\n\n [command.cc]\n exec=\"git commit -a {@}\"\n\n [command.push]\n exec=\"git push {@}\"\n\n [command.b]\n exec=\"echo {branch()}\"\n\n [command.pythonCall]\n exec=\"~/.alfred/myscript.py::myFunction\"\n type=\"python\"\n\nRun\n~~~\n\n.. code-block:: console\n\n $ alfred st\n $ al cc\n\n\nVariables\n~~~~~~~~~\n\nVariables are predefined values that can be injected in commands and functions\n\nExample:\n\n.. code-block:: toml\n\n [variables]\n mode=\"debug\"\n\n [command.print]\n exec=\"echo {mode}\"\n\n\nCommands\n~~~~~~~~\n\nPredefined commands that will be executed by Alfred\n\nCommands are defined like this\n\n.. code-block:: toml\n\n [command.COMMAND_NAME]\n exec=\"EXECUTION_LINE\"\n type=\"shell\"\n format=true\n echo=false\n help=\"HELP INFO\"\n\nWhere:\n- **COMMAND_NAME** is the alias that Alfred will use to identify that command in the cli\n\n- **EXECUTION_LINE** is the code that will be called. Alfred accepts multiline entries, which\nwill be wrapped in a script file and executed with the default shell executor.\n\n- **type** the type of the command. Alfred currently accepts `shell` and `python` command types\n\n- **format** marks if the instance should apply the formatter in the exec line or not.\nIf false, the placeholders `{}` will not be interpreted\n\n- **echo** marks if the instance should print the command that will be executed before executing it\n\n- **help** a descriptive message that will be showed in `alfred @list`\n\nFunctions\n~~~~~~~~~\n\nFunctions can be created to enhance command execution during format time and are defined like this:\n\n.. code-block:: toml\n\n [function.FUNCTION_NAME]\n exec=\"EXECUTION_LINE\"\n format=true\n\nWhere:\n\n- **FUNCTION_NAME** is the alias that Alfred will use to identify that function in the formatter\n\n- **EXECUTION_LINE** is the code that will be called. Currently Alfred only accepts one-line shell commands in functions.\n\n- **format** marks if the instance should apply the formatter in the exec line or not.\nIf false, the placeholders `{}` will not be interpreted\n\n\nBuilt-in Alfred commands\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n- `al[fred] @help` Show help\n- `al[fred] @list` List all commands\n- `al[fred] @version` Show version\n\nInstallation\n------------\n\nStable release\n~~~~~~~~~~~~~~\n\nTo install Alfred, run this command in your terminal:\n\n.. code-block:: console\n\n $ pip install alfredcmd\n\nThis is the preferred method to install Alfred, as it will always install the most recent stable release.\n\nIf you don't have `pip`_ installed, this `Python installation guide`_ can guide\nyou through the process.\n\n.. _pip: https://pip.pypa.io\n.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/\n\n\nFrom sources\n~~~~~~~~~~~~~\n\nThe sources for Alfred can be downloaded from the `Github repo`_.\n\nYou can either clone the public repository:\n\n.. code-block:: console\n\n $ git clone git://github.com/GustavoKatel/alfredcmd\n\nOr download the `tarball`_:\n\n.. code-block:: console\n\n $ curl -OL https://github.com/GustavoKatel/alfredcmd/tarball/master\n\nOnce you have a copy of the source, you can install it with:\n\n.. code-block:: console\n\n $ python setup.py install\n\n\n.. _Github repo: https://github.com/GustavoKatel/alfredcmd\n.. _tarball: https://github.com/GustavoKatel/alfredcmd/tarball/master\n\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n0.1.0 (2018-03-21)\n------------------\n\n* First release on PyPI.\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/GustavoKatel/alfredcmd", "keywords": "alfredcmd", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "alfredcmd", "package_url": "https://pypi.org/project/alfredcmd/", "platform": "", "project_url": "https://pypi.org/project/alfredcmd/", "project_urls": { "Homepage": "https://github.com/GustavoKatel/alfredcmd" }, "release_url": "https://pypi.org/project/alfredcmd/0.1.7/", "requires_dist": [ "toml (>=0.9.4)" ], "requires_python": "", "summary": "Aliases and custom commands manager and runner", "version": "0.1.7" }, "last_serial": 3721000, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f541557a2d1a8b3db9c90be2cf239cd9", "sha256": "610df0f2a08571fa705642a49bf9f358c136aa944ff65ccc28f05f4f9d61552a" }, "downloads": -1, "filename": "alfredcmd-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f541557a2d1a8b3db9c90be2cf239cd9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5660, "upload_time": "2018-03-28T01:08:46", "url": "https://files.pythonhosted.org/packages/87/75/703eee37b178390ca5fdf945f4683a7d568ade216bf78f81fd2c7e61e266/alfredcmd-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ab52ce5d982a319015f02538df23107", "sha256": "8e781d9ddb0314bc5a5c118e5ff3dfae4254b047ed5b7b249d4bd4e3eea34a07" }, "downloads": -1, "filename": "alfredcmd-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6ab52ce5d982a319015f02538df23107", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10295, "upload_time": "2018-03-28T01:06:40", "url": "https://files.pythonhosted.org/packages/54/a7/b1c15137a4b2c6d197f8a689f9ec2fd95cc61b606d39ef17631373cc9118/alfredcmd-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6013bdd7bcb0097c2c220668089b21ff", "sha256": "17590a892d6e09a84e24e4de3933eccbc2798af7622823dc5185972b02fd4fcf" }, "downloads": -1, "filename": "alfredcmd-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6013bdd7bcb0097c2c220668089b21ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5793, "upload_time": "2018-03-28T01:41:50", "url": "https://files.pythonhosted.org/packages/14/2f/a707a65134cd3b1bf94873c0024ff2cae477e6019bf02b62a805a3b7443c/alfredcmd-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6826fa1f4fffb58c9c1ab4b455303b17", "sha256": "cd571ab4229688e3071be91a14bae7a83750f95e7f32ad2cbb0f870217968402" }, "downloads": -1, "filename": "alfredcmd-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6826fa1f4fffb58c9c1ab4b455303b17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11056, "upload_time": "2018-03-28T01:41:51", "url": "https://files.pythonhosted.org/packages/6a/65/ea2e2be6855e8c30ec29ccbfd3942e9ef38ff558f1e379f8200cbfb803d9/alfredcmd-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "72e687351cb0a63ae5c874782e534143", "sha256": "56d20ca27d2531a2ef308da6a7ef081d5bec320f23bf62ebbb8d8d6ec29d12d4" }, "downloads": -1, "filename": "alfredcmd-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "72e687351cb0a63ae5c874782e534143", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5787, "upload_time": "2018-03-28T02:42:04", "url": "https://files.pythonhosted.org/packages/70/07/1d2ee5c83aaaa9fe5625a2362ad89bd966649d0707d48d23cc82b66629cc/alfredcmd-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95a1dd30ac1d5410022ac5bcf2017034", "sha256": "12282bb22dba17d1d9dc0f929d53fb7005669747f983cc509fdcf039b6ca5ffd" }, "downloads": -1, "filename": "alfredcmd-0.1.2.tar.gz", "has_sig": false, "md5_digest": "95a1dd30ac1d5410022ac5bcf2017034", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11044, "upload_time": "2018-03-28T02:42:05", "url": "https://files.pythonhosted.org/packages/c5/c7/08eaa8a896a4f87884f5a828c45db0d87250be75905ec53c29c91c44c4a1/alfredcmd-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f117d65fcdbc354186c297923e0edae3", "sha256": "470a5853eabf979520c39e92ab9ecc1be68efff179c85040bfbff1de14079d31" }, "downloads": -1, "filename": "alfredcmd-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f117d65fcdbc354186c297923e0edae3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5901, "upload_time": "2018-03-28T11:44:24", "url": "https://files.pythonhosted.org/packages/1d/09/72fc82608a25dced41e7e9b9ad65537540f593a19cb251b92c1b98603543/alfredcmd-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15eec5ef31d79eaddd686c148713d208", "sha256": "19ae0a90a6904ff4ef233ec0a213217cb93903e566af8784d7b4d15e87651d6d" }, "downloads": -1, "filename": "alfredcmd-0.1.3.tar.gz", "has_sig": false, "md5_digest": "15eec5ef31d79eaddd686c148713d208", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11158, "upload_time": "2018-03-28T11:44:25", "url": "https://files.pythonhosted.org/packages/67/49/fc219c5bfba8e94238b1a40966ac843a06e77538df5f9fa16f757f92976e/alfredcmd-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "3774628c96feaf32be4b84cc43b79327", "sha256": "f84ecf32766ef0f32b8f5f2119581565752658826a3d4c0b816fa324aeca9f10" }, "downloads": -1, "filename": "alfredcmd-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3774628c96feaf32be4b84cc43b79327", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6062, "upload_time": "2018-03-28T12:56:21", "url": "https://files.pythonhosted.org/packages/ca/91/c9211d0357064448e77a56ed4bca0186728615bd5c989c5486493af0b776/alfredcmd-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "885db2d7e820fb2f8192b3038c0768d5", "sha256": "b20f49b6ad15ed2504666c359a6f139881e7c558bf4792f3f26dddfed76fcf6f" }, "downloads": -1, "filename": "alfredcmd-0.1.4.tar.gz", "has_sig": false, "md5_digest": "885db2d7e820fb2f8192b3038c0768d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11469, "upload_time": "2018-03-28T12:56:22", "url": "https://files.pythonhosted.org/packages/13/04/ea1da57f40247227fee07f7ab6e9be7c89e5fec7cebe49dd0802e018445d/alfredcmd-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "ec69376a0cdd3b4b0b1b3c71f0fd06d1", "sha256": "1e74a7b5c6c37052ff44731639351e7da6b13673d3a8d533d3970eb840baab75" }, "downloads": -1, "filename": "alfredcmd-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec69376a0cdd3b4b0b1b3c71f0fd06d1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6266, "upload_time": "2018-03-28T21:58:07", "url": "https://files.pythonhosted.org/packages/e5/aa/9bed4332b65578e111728586783dabab26313ef4cc552ee63ad12cfc1d83/alfredcmd-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1374b44355e19926f3a1340d6c13af9b", "sha256": "597d128e09a590f1d79b31429703e4b2c61e7132a20c6d920e761986dd93dba5" }, "downloads": -1, "filename": "alfredcmd-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1374b44355e19926f3a1340d6c13af9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11726, "upload_time": "2018-03-28T21:58:08", "url": "https://files.pythonhosted.org/packages/fd/33/b40499dd54eb08ac5f6b979c2cebaad13ba41d994a2b55dfa29035106a38/alfredcmd-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "229934f16dfedd01027b9069a7ac8e4f", "sha256": "307acb13a0141860857ac4392ff6dec09253418bb46723a7b8aa3b2b8f41b353" }, "downloads": -1, "filename": "alfredcmd-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "229934f16dfedd01027b9069a7ac8e4f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6265, "upload_time": "2018-03-28T22:05:03", "url": "https://files.pythonhosted.org/packages/de/fe/564160abee1ab2880c0037646b018b7e017e4008c9a6940a32c4684f6b6c/alfredcmd-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "31aed78f9fa59fbafdaddc725614d2bd", "sha256": "b89de9f80d3351af259ebe7e53dcc455d0f1e4b95d481a0a26d96e583890b4e7" }, "downloads": -1, "filename": "alfredcmd-0.1.6.tar.gz", "has_sig": false, "md5_digest": "31aed78f9fa59fbafdaddc725614d2bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11737, "upload_time": "2018-03-28T22:05:04", "url": "https://files.pythonhosted.org/packages/86/b9/d4b4aacf4aed915234c5124d3a53cb9e3d8e10812d20f6301cba211178a3/alfredcmd-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "3b476accb286f06ceb2473e741321a3b", "sha256": "c954ff0b45b0a151fe12c175780ddc770fda146eced966b3644f834c3291fd4e" }, "downloads": -1, "filename": "alfredcmd-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3b476accb286f06ceb2473e741321a3b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8642, "upload_time": "2018-03-30T22:22:11", "url": "https://files.pythonhosted.org/packages/43/76/a0dd59ad793cb9e6a680953b5c91ddba484af73b6b13a6d91921ae9e4aa4/alfredcmd-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a23c52dd8ed4a4025382334bb8c12efb", "sha256": "f10acff56393b1dddc076e988b1f7f7b0d323dda3f750942d7d823a00a864795" }, "downloads": -1, "filename": "alfredcmd-0.1.7.tar.gz", "has_sig": false, "md5_digest": "a23c52dd8ed4a4025382334bb8c12efb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13990, "upload_time": "2018-03-30T22:22:12", "url": "https://files.pythonhosted.org/packages/05/93/37294321696bcb09edca527a6e09de45fccf2fac4bb66478ca7465eb1cdf/alfredcmd-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3b476accb286f06ceb2473e741321a3b", "sha256": "c954ff0b45b0a151fe12c175780ddc770fda146eced966b3644f834c3291fd4e" }, "downloads": -1, "filename": "alfredcmd-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3b476accb286f06ceb2473e741321a3b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8642, "upload_time": "2018-03-30T22:22:11", "url": "https://files.pythonhosted.org/packages/43/76/a0dd59ad793cb9e6a680953b5c91ddba484af73b6b13a6d91921ae9e4aa4/alfredcmd-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a23c52dd8ed4a4025382334bb8c12efb", "sha256": "f10acff56393b1dddc076e988b1f7f7b0d323dda3f750942d7d823a00a864795" }, "downloads": -1, "filename": "alfredcmd-0.1.7.tar.gz", "has_sig": false, "md5_digest": "a23c52dd8ed4a4025382334bb8c12efb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13990, "upload_time": "2018-03-30T22:22:12", "url": "https://files.pythonhosted.org/packages/05/93/37294321696bcb09edca527a6e09de45fccf2fac4bb66478ca7465eb1cdf/alfredcmd-0.1.7.tar.gz" } ] }