Giter VIP home page Giter VIP logo

ualfred's Introduction

ualfred

GitHub Workflow Status codecov PyPI PyPI - Python Version

Modern Alfred workflow library for Python3.

Note

This project is based on deanishe/alfred-workflow, and make it compatible with Python3.

Currently, the test passed on Python3.7~3.11.

Install uaflred directly into your workflow with:

pip install --target=/path/to/my/workflow ualfred

For full usage documentation, see the origin project docs. And don't forget to replace import statements from workflow to ualfred:

# replace this:
# from workflow import *
# to
from ualfred import *

ualfred's People

Contributors

deanishe avatar fniephaus avatar ischaojie avatar owenwater avatar idpaterson avatar jag-k avatar notabene01 avatar zhuozhiyongde avatar ecbrodie avatar janclarin avatar terryx-lee avatar ecmadao avatar

Stargazers

Paul Spitzner avatar Chris L. avatar 总钻风 avatar 代码即是地狱 avatar Torsten Curdt avatar Glenn 'devalias' Grant avatar  avatar  avatar Eric Shen avatar tari avatar  avatar WylYeak avatar LR avatar juanborre avatar vancaem avatar

ualfred's Issues

not working

i am using Alfred5, MacOS 13.2.1, and Install uaflred directly into my workflow folder, change the Alfred language to /usr/bin/python3, and change the head in the editing box:

#from workflow import Workflow3
from ualfred import Workflow3

uaflred do not work,
i tried all python2 workflow, it works fine(to avoid other error).

----below is the whole code----

#!/usr/bin/python3
#encoding: utf-8

import sys
#from workflow import Workflow3
from ualfred import Workflow3

query = sys.argv[1]

def main(wf):
    args = wf.args
    wf.add_item(query,arg=query,valid=True)
    wf.add_item(u'hello world',arg="follow customer",icon="01 customer.png",valid=True)

    # are ignored (otherwise the JSON sent to Alfred would be invalid).
    wf.send_feedback()


if __name__ == '__main__':
    # Create a global `Workflow3` object
    wf = Workflow3()
    sys.exit(wf.run(main))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.