GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lozzo/sfr: a tiny spark task DAG runner

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
__pycache__
__pycache__
 
 
test
test
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
container.py
container.py
 
 
exceptions.py
exceptions.py
 
 
funcobj.py
funcobj.py
 
 

Repository files navigation

SFR

Simple Flow Runer 一个简单的流程执行框架,包含流程

from sfr import index,factory,depend,IndexRunner

class Mysql:
    def __init__(self) -> None:
        print("mysql")
        
@factory()
def get_mysql()->Mysql:
    return Mysql()

@depend(cache="auto", depend_temp_view=[])
def yl1(ny:Mysql) -> str:
    print('yl1')
    return "1"

@index(index_name="指标1", depend_temp_view=[yl1, "依赖2"])
def zb1() -> str:
    print('zb1')
    return "1"

@index(index_name='指标2', depend_temp_view=[])
def zb2() -> str:
    print('zb2')
    return "1"

@depend(name="依赖2", cache="auto", depend_temp_view=[yl1])
def yl2() -> str:
    print('yl2')
    return "1"

if __name__ == "__main__":
    a = IndexRunner(auto_cache_number=1, debug=True)
    a.run(index_name=["指标1", "指标2"])

About

a tiny spark task DAG runner

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.