示例 / uv
uv, the one tool for Python projects
1:30开发者工具由智能体用 VisoTalk Agent SKILL 制作
影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。
旁白
点击一句话即可跳到那里。
它展示了什么。 由代码构成的画面:终端里的文字和方块的大小都是补间的数值,由文档在词上设定。
源码文档的第一个场景
视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。
<Scene id="tools">
<Line id="h1l">Setting up a Python project usually means juggling a pile of tools.</Line>
<Line id="h2l" hold={1.5}>pip to install packages, virtualenv for environments, pip-tools to pin versions, pipx for command line tools, pyenv for Python itself, and poetry or twine to publish.</Line>
<Line id="h3l" hold={2.5}>uv, from Astral, the team behind Ruff, replaces all of them with a single binary, written in Rust.</Line>
<Part id="toolbox" x={0} y={230} w={1920} h={650}>{() => <Toolbox />}</Part>
<Animation>
<Appear target="title" line="h1l" word="Python project" dur={0}/>
<Appear target="toolbox" line="h2l" word="pip" dur={0}/>
<Set target="head" to={{text: "Python project setup"}} at="start"/>
<Set target="kick" to={{text: "Astral"}} at="start"/>
<Appear target="head" line="h1l" word="Python project"/>
<Appear target="t-pip" line="h2l" word="pip"/>
<Appear target="j-pip" line="h2l" word="install packages"/>
<Appear target="t-virtualenv" line="h2l" word="virtualenv"/>
<Appear target="j-virtualenv" line="h2l" word="environments"/>
<Appear target="t-pip-tools" line="h2l" word="pip-tools"/>
<Appear target="j-pip-tools" line="h2l" word="pin versions"/>
<Appear target="t-pipx" line="h2l" word="pipx"/>
<Appear target="j-pipx" line="h2l" word="command line tools"/>
<Appear target="t-pyenv" line="h2l" word="pyenv"/>
<Appear target="j-pyenv" line="h2l" word="Python itself"/>
<Appear target="t-poetry" line="h2l" word="poetry"/>
<Appear target="t-twine" line="h2l" word="twine"/>
<Appear target={["j-poetry", "j-twine"]} line="h2l" word="publish"/>
<Set target="head" to={{text: "uv"}} line="h3l" word="uv"/>
<Appear target="kick" line="h3l" word="Astral"/>
<Set target="kick" to={{text: "Astral, the team behind Ruff"}} line="h3l" word="Ruff"/>
<Disappear target={["j-pip", "j-virtualenv", "j-pip-tools", "j-pipx", "j-pyenv", "j-poetry", "j-twine"]} stagger={0.05} line="h3l" word="replaces"/>
<Tween id="mv" target="toolbox" to={{merge: 1}} dur={0.8} line="h3l" word="them"/>
<Appear target="uvblock" after="mv"/>
<Tween target="uvblock" to={{w: 1000, h: 260}} dur={0.7} after="mv"/>
<Appear target="uvtxt" after="mv" offset={0.7}/>
<Appear target="bin" line="h3l" word="single binary"/>
<Appear target="rust" line="h3l" word="Rust"/>
</Animation>
</Scene>在 GitHub 上查看 examples/uv/doc.tsx改编做成你自己的
整个示例打包成一个文件:文档、它用到的图片和片段,以及已经朗读好的旁白。在 VisoTalk Studio 中导入它(首页上的导入 .visotalk)即可在那里修改,或者用 npx visotalk import uv.visotalk 为 Agent SKILL 解包。