{"id":31482171,"url":"https://github.com/flyteorg/flyte-sdk","last_synced_at":"2026-05-04T20:02:12.073Z","repository":{"id":307192838,"uuid":"1028470682","full_name":"flyteorg/flyte-sdk","owner":"flyteorg","description":"Type-safe, distributed orchestration of agents, ML pipelines, and more — in pure Python with async/await.","archived":false,"fork":false,"pushed_at":"2025-10-02T01:58:28.000Z","size":2955,"stargazers_count":52,"open_issues_count":30,"forks_count":17,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-02T03:27:44.256Z","etag":null,"topics":["ai","async","ml","mlops"],"latest_commit_sha":null,"homepage":"https://flyte.org/","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flyteorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-29T15:19:31.000Z","updated_at":"2025-10-02T01:34:43.000Z","dependencies_parsed_at":"2025-08-20T02:20:32.237Z","dependency_job_id":"f3a6619d-4734-4743-87e0-94af35d614a7","html_url":"https://github.com/flyteorg/flyte-sdk","commit_stats":null,"previous_names":["flyteorg/flyte-sdk"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/flyteorg/flyte-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflyte-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflyte-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflyte-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflyte-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyteorg","download_url":"https://codeload.github.com/flyteorg/flyte-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflyte-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277974419,"owners_count":25908396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","async","ml","mlops"],"created_at":"2025-10-02T07:42:39.420Z","updated_at":"2026-04-29T05:08:04.218Z","avatar_url":"https://github.com/flyteorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e ## Flyte 2 Devbox is now available!\n\u003e\n\u003e Check out the guide [here](https://www.union.ai/docs/v2/flyte/user-guide/run-modes/running-devbox/) to get started.\n\n---\n\n# Flyte 2 SDK\n\n**Reliably orchestrate ML pipelines, models, and agents at scale — in pure Python.**\n\n[![Version](https://img.shields.io/pypi/v/flyte?label=version\u0026color=blue)](https://pypi.org/project/flyte/)\n[![Python](https://img.shields.io/pypi/pyversions/flyte?color=brightgreen)](https://pypi.org/project/flyte/)\n[![License](https://img.shields.io/badge/license-Apache%202.0-orange)](LICENSE)\n[![Try in Browser](https://img.shields.io/badge/Try%20in%20Browser-Live%20Demo-7652a2)](https://flyte2intro.apps.demo.hosted.unionai.cloud/)\n[![Docs](https://img.shields.io/badge/Docs-flyte-blue)](https://www.union.ai/docs/v2/flyte/user-guide/running-locally/)\n[![SDK Reference](https://img.shields.io/badge/SDK%20Reference-API-brightgreen)](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/)\n[![CLI Reference](https://img.shields.io/badge/CLI%20Reference-API-brightgreen)](https://www.union.ai/docs/v2/union/api-reference/flyte-cli/)\n\n## Install\n\n```bash\npip install flyte\n```\n\n## Example\n\n```python\nimport asyncio\nimport flyte\n\nenv = flyte.TaskEnvironment(\n    name=\"hello_world\",\n    image=flyte.Image.from_debian_base(python_version=(3, 12)),\n)\n\n@env.task\ndef calculate(x: int) -\u003e int:\n    return x * 2 + 5\n\n@env.task\nasync def main(numbers: list[int]) -\u003e float:\n    results = await asyncio.gather(*[\n        calculate.aio(num) for num in numbers\n    ])\n    return sum(results) / len(results)\n\nif __name__ == \"__main__\":\n    flyte.init()\n    run = flyte.run(main, numbers=list(range(10)))\n    print(f\"Result: {run.result}\")\n```\n\n\u003ctable\u003e\n\u003ctr\u003e\u003ctd\u003e\u003cb\u003ePython\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eFlyte CLI\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```bash\npython hello.py\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\n```bash\nflyte run hello.py main --numbers '[1,2,3]'\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Serve a Model\n\n```python\n# serving.py\nfrom fastapi import FastAPI\nimport flyte\nfrom flyte.app.extras import FastAPIAppEnvironment\n\napp = FastAPI()\nenv = FastAPIAppEnvironment(\n    name=\"my-model\",\n    app=app,\n    image=flyte.Image.from_debian_base(python_version=(3, 12)).with_pip_packages(\n        \"fastapi\", \"uvicorn\"\n    ),\n)\n\n@app.get(\"/predict\")\nasync def predict(x: float) -\u003e dict:\n    return {\"result\": x * 2 + 5}\n\nif __name__ == \"__main__\":\n    flyte.init_from_config()\n    flyte.serve(env)\n```\n\n\u003ctable\u003e\n\u003ctr\u003e\u003ctd\u003e\u003cb\u003ePython\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eFlyte CLI\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```bash\npython serving.py\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\n```bash\nflyte serve serving.py env\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n### Local Development Experience\n\nInstall the TUI for a rich local development experience:\n\n```bash\npip install flyte[tui]\n```\n\n[![Watch the local development experience](https://img.youtube.com/vi/lsfy-7DbbRM/maxresdefault.jpg)](https://www.youtube.com/watch?v=lsfy-7DbbRM)\n\n## Learn More\n\n- **[Live Demo](https://flyte2intro.apps.demo.hosted.unionai.cloud/)** — Try Flyte 2 in your browser\n- **[Documentation](https://www.union.ai/docs/v2/flyte/user-guide/running-locally/)** — Get started running locally\n- **[SDK Reference](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/)** — API reference docs\n- **[CLI Reference](https://www.union.ai/docs/v2/union/api-reference/flyte-cli/)** — CLI docs\n- **[Join the Flyte 2 Production Preview](https://www.union.ai/try-flyte-2)** — Get early access\n- **[Features](FEATURES.md)** — Async parallelism, app serving, tracing, and more\n- **[Examples](examples/)** — Ready-to-run examples for every feature\n- **[Contributing](CONTRIBUTING.md)** — Set up a dev environment and contribute\n- **[Slack](https://slack.flyte.org/)** | **[GitHub Discussions](https://github.com/flyteorg/flyte/discussions)** | **[Issues](https://github.com/flyteorg/flyte/issues)**\n\n## License\n\nApache 2.0 — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyteorg%2Fflyte-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyteorg%2Fflyte-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyteorg%2Fflyte-sdk/lists"}