{ "info": { "author": "Mike Spindel", "author_email": "mike@spindel.is", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python" ], "description": "=============\r\npython-alfred\r\n=============\r\n\r\n:Authors:\r\n Mike Spindel\r\n:Version: 0.2\r\n\r\n\r\n`AlfredApp `_ is an application launcher and\r\ngeneral productivity tool for Mac OS X. It can be extended and\r\ncustomized with custom workflows and plugin scripts.\r\n\r\nPlugin scripts, called\r\n\"`script filters `_\"\r\nby AlfredApp, operate by printing an XML document to standard\r\noutput. ``python-alfred`` is a Python library for easily building these\r\nXML documents.\r\n\r\nInstallation\r\n============\r\n\r\n::\r\n\r\n $ pip install alfred\r\n\r\n\r\nUsage\r\n=====\r\n\r\nAs an example, consider a filter that converts numeric input into\r\nbinary and hexadecimal.::\r\n\r\n import sys\r\n import alfred\r\n \r\n \r\n if __name__ == \"__main__\":\r\n try:\r\n val = int(sys.argv[1])\r\n except:\r\n sys.exit(1)\r\n\r\n # Use the icon associated with the Calculator app\r\n icon = alfred.Icon(filepath=\"/Applications/Calculator.app\")\r\n\r\n # Create an item for the hex conversion\r\n hex_item = alfred.Item(\r\n uid='hex',\r\n arg=\"\",\r\n title=hex(val),\r\n subtitle=\"Hexadecimal\",\r\n valid=False,\r\n icon=icon)\r\n\r\n # Create an item for the binary conversion\r\n bin_item = alfred.Item(\r\n uid='bin',\r\n arg=\"\",\r\n title=bin(val),\r\n subtitle=\"Binary\",\r\n valid=False,\r\n icon=icon)\r\n\r\n # Call alfred.render to generate the XML document\r\n print alfred.render([hex_item, bin_item])\r\n\r\n\r\nRequirements\r\n============\r\n\r\n``python-alfred`` requires ``lxml``.\r\n\r\n\r\nChanges\r\n=======\r\n\r\n0.2 - June 8, 2013\r\n-----------------------\r\n\r\n* Added support for new ```` elements\r\n\r\n0.1 - June 4, 2013\r\n-----------------------\r\n\r\n* Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/deactivated/pyalfred", "keywords": "alfred alfredapp script filter", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "alfred", "package_url": "https://pypi.org/project/alfred/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/alfred/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/deactivated/pyalfred" }, "release_url": "https://pypi.org/project/alfred/0.2/", "requires_dist": null, "requires_python": null, "summary": "Utilities for Alfred script filters.", "version": "0.2" }, "last_serial": 763265, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "379d0195cbbe7907e390d77ff66966e7", "sha256": "417e3483e77da61879622cfdedbe7d805460e90955466ed62b1918c9974ef68f" }, "downloads": -1, "filename": "alfred-0.1.tar.gz", "has_sig": false, "md5_digest": "379d0195cbbe7907e390d77ff66966e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1579, "upload_time": "2013-06-04T17:51:38", "url": "https://files.pythonhosted.org/packages/55/d5/ab9b04dad5c0967bd308a67a9b6d43b812ebaf35b515dc5a8d4a30c486e5/alfred-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "1c1aebc7c3ccf4bbaba3acebb21a7001", "sha256": "1a0876b2b6f276d509f4bf11e370573a5a35763a5e97a43c0f4e78df78ed52ab" }, "downloads": -1, "filename": "alfred-0.2.tar.gz", "has_sig": false, "md5_digest": "1c1aebc7c3ccf4bbaba3acebb21a7001", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3459, "upload_time": "2013-06-09T04:10:09", "url": "https://files.pythonhosted.org/packages/8d/b3/c3f8079c11329e0e18f7b85063134c384b6593bf26b5994f8b98cac4ddff/alfred-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c1aebc7c3ccf4bbaba3acebb21a7001", "sha256": "1a0876b2b6f276d509f4bf11e370573a5a35763a5e97a43c0f4e78df78ed52ab" }, "downloads": -1, "filename": "alfred-0.2.tar.gz", "has_sig": false, "md5_digest": "1c1aebc7c3ccf4bbaba3acebb21a7001", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3459, "upload_time": "2013-06-09T04:10:09", "url": "https://files.pythonhosted.org/packages/8d/b3/c3f8079c11329e0e18f7b85063134c384b6593bf26b5994f8b98cac4ddff/alfred-0.2.tar.gz" } ] }