This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

AlfredApp is an application launcher and general productivity tool for Mac OS X. It can be extended and customized with custom workflows and plugin scripts.

Plugin scripts, called “script filters” by AlfredApp, operate by printing an XML document to standard output. python-alfred is a Python library for easily building these XML documents.

Installation

$ pip install alfred

Usage

As an example, consider a filter that converts numeric input into binary and hexadecimal.:

import sys
import alfred


if __name__ == "__main__":
    try:
        val = int(sys.argv[1])
    except:
        sys.exit(1)

    # Use the icon associated with the Calculator app
    icon = alfred.Icon(filepath="/Applications/Calculator.app")

    # Create an item for the hex conversion
    hex_item = alfred.Item(
        uid='hex',
        arg="",
        title=hex(val),
        subtitle="Hexadecimal",
        valid=False,
        icon=icon)

    # Create an item for the binary conversion
    bin_item = alfred.Item(
        uid='bin',
        arg="",
        title=bin(val),
        subtitle="Binary",
        valid=False,
        icon=icon)

    # Call alfred.render to generate the XML document
    print alfred.render([hex_item, bin_item])

Requirements

python-alfred requires lxml.

Changes

0.2 - June 8, 2013

  • Added support for new <arg></arg> elements

0.1 - June 4, 2013

  • Initial release
Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
alfred-0.2.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Jun 9, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting