Skip to main content

Sage: A distributed dataflow orchestration system

Project description


SAGE-Flownet

SAGE-Flownet 是一个轻量、原生 Python 的动态数据流执行引擎。它以“嵌套动态图”为核心模型,把用户写下的普通 Python 函数编译为可执行的 FlowTask DAG,并由运行时按需调度执行,让复杂的工作流像调用函数一样自然。

它不是另一个固定模板的流水线框架。Flownet 将远程调用、闭包、回调以及子图嵌套视为一等公民,在不牺牲 Python 语义的前提下,支持灵活组合和横向扩展。

✧ 项目如何工作(概述)

  • Flow 定义与编译:通过 @flow 装饰器将函数包装为 Flow 定义(FlowDef),编译为包含 Transformation 的 FlowTask 图。
  • 数据流建模DataStream.map/flatmap 等算子创建上下游关系,形成可追踪的依赖图和执行边。
  • 运行时执行FlownetRuntime 负责处理请求栈(TransformationFrame),并由 operator handler 决定目标调用与转发策略。
  • Actor 调用统一化ActorRef / ActorMethodRef 将本地与远程调用统一抽象,运行时根据目标地址完成派发。
  • FlowRun 输出通道:运行时通过 FlowRunRef 的输出通道暴露“写入输入—等待输出”的调用方式,负责 fork/join 逻辑与结果收集。

✧ 预期目标与效果

  • 保持原生 Python 开发体验:无需额外 DSL,工作流像写函数一样简单。
  • 支持动态与嵌套的复杂流程:运行时编译、依赖跟踪与延迟执行适配不确定结构。
  • 可扩展的分布式执行:为本地/远程统一执行提供清晰路径,便于水平扩展。
  • 更可靠的并发与结果聚合:由运行时完成 fork/join、收集与异常处理,降低业务代码复杂度。

Intellectual Property

All Rights Reserved applies to repository contents authored by Jingyuan Tian, including code, documentation, benchmarks, and related assets.

The following copied lab projects are excluded from this claim and retain their original ownership/license context: applications/SAGE, applications/sage-studio, applications/sageData.

  1. License terms: LICENSE
  2. Ownership details: COPYRIGHT.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isage_flownet-0.1.1.tar.gz (196.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isage_flownet-0.1.1-py3-none-any.whl (258.7 kB view details)

Uploaded Python 3

File details

Details for the file isage_flownet-0.1.1.tar.gz.

File metadata

  • Download URL: isage_flownet-0.1.1.tar.gz
  • Upload date:
  • Size: 196.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for isage_flownet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a69b6b9f10aeee40d38d983508624c01761cd72f671f0fef617c5b46b7d8b5a5
MD5 14015a1a9f460d3623610084a60d7b94
BLAKE2b-256 cfcece267f722e3b8e89e810325dedf8a9c8a1be7c9e0f40db60307e0b258f45

See more details on using hashes here.

File details

Details for the file isage_flownet-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: isage_flownet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 258.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for isage_flownet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba1fe5a7e10ad30a55d85acef4832c0298850593d93c82a0edb0401d7edb544d
MD5 267b73b83b279f17b368e9456608cd19
BLAKE2b-256 4cb989b404f111097ff4dda796ffe6c1a2b63e2da46723d8f1441c2b23aa8818

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page