Python workflow 模块,Workflow() 实例源码

我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用workflow.Workflow()

项目:vino-workflows    作者:wuchangfeng    | 项目源码 | 文件源码
def today():

    now = datetime.datetime.now()

    url = 'http://gank.io/api/day/' + now.strftime("%Y/%m/%d")

    r = web.get(url)

    # throw an error if request failed, Workflow will catch this and show it to the user
    r.raise_for_status()

    ganks = []
    data = r.json()

    # ????
    results = data['results']
    # ????
    #print(results)
    categories = data['category']
    results = data['results']
    for category in categories:
        for gank in results[category]:
            ganks.append(gank)

    return ganks
项目:alfred-mpd    作者:deanishe    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alfred-mpd    作者:deanishe    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-mpd    作者:deanishe    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:Gank-Alfred-Workflow    作者:hujiaweibujidao    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:Gank-Alfred-Workflow    作者:hujiaweibujidao    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:Gank-Alfred-Workflow    作者:hujiaweibujidao    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:Gank-Alfred-Workflow    作者:hujiaweibujidao    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:Gank-Alfred-Workflow    作者:hujiaweibujidao    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:workflows.kyoyue    作者:wizyoung    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:workflows.kyoyue    作者:wizyoung    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:workflows.kyoyue    作者:wizyoung    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alphy    作者:maximepeschard    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alphy    作者:maximepeschard    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alphy    作者:maximepeschard    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:GoToMeetingTools    作者:plongitudes    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:GoToMeetingTools    作者:plongitudes    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:GoToMeetingTools    作者:plongitudes    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:behelper    作者:istommao    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:behelper    作者:istommao    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:behelper    作者:istommao    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:radar    作者:amoose136    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:radar    作者:amoose136    | 项目源码 | 文件源码
def wf():
    """Return Workflow object for this module.

    Returns:
        workflow.Workflow: Workflow object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:radar    作者:amoose136    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-workflows    作者:arthurhammer    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alfred-workflows    作者:arthurhammer    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-workflows    作者:arthurhammer    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-zebra    作者:r0x73    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alfred-zebra    作者:r0x73    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-zebra    作者:r0x73    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-bear    作者:chrisbro    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alfred-bear    作者:chrisbro    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-bear    作者:chrisbro    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-confluence    作者:skleinei    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alfred-confluence    作者:skleinei    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-confluence    作者:skleinei    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred_reviewboard    作者:lydian    | 项目源码 | 文件源码
def __init__(self):
        self.wf = Workflow(update_settings=WF_CONFIG, libraries=['./lib'])
项目:alfred_reviewboard    作者:lydian    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alfred_reviewboard    作者:lydian    | 项目源码 | 文件源码
def wf():
    """Return Workflow object for this module.

    Returns:
        workflow.Workflow: Workflow object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred_reviewboard    作者:lydian    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:MathKernelToggle    作者:LingyuanJi    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:MathKernelToggle    作者:LingyuanJi    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:MathKernelToggle    作者:LingyuanJi    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-moeha    作者:moeHa    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:alfred-moeha    作者:moeHa    | 项目源码 | 文件源码
def wf():
    """Return `Workflow` object for this module.

    Returns:
        workflow.Workflow: `Workflow` object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-moeha    作者:moeHa    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:simplingua-workflow    作者:bydmm    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf
项目:simplingua-workflow    作者:bydmm    | 项目源码 | 文件源码
def wf():
    """Return Workflow object for this module.

    Returns:
        workflow.Workflow: Workflow object for current workflow.
    """
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:simplingua-workflow    作者:bydmm    | 项目源码 | 文件源码
def wf():
    """Lazy `Workflow` object."""
    global _wf
    if _wf is None:
        _wf = workflow.Workflow()
    return _wf
项目:alfred-baidu-translate    作者:ketor    | 项目源码 | 文件源码
def wf():
    global _wf
    if _wf is None:
        _wf = Workflow()
    return _wf