We just released Prefect 2.13.5! :prefect-spin: T...
# announcements
j
We just released Prefect 2.13.5! prefect spin This release introduces a few new features: You can now load and serve flows from a git repository! With the new
flow.from_source
method, you can specify a git repository and a path to a flow file in that repository. This method will return a flow object that can be run or served with
flow.serve()
. 🧪 Experimental Pydantic 2 compatibility! We’re working eagerly toward having Prefect installable with either
pydantic<2
or
pydantic>2
. As a first step toward compatibility, we’ve ensured that Prefect’s use of Pydantic is isolated from your use of Pydantic in as many ways as possible. As always this release includes lots of bug fixes 🐛, documentation updates📃, and community contributions🤝! See the release notes for more details. prefect build
💯 5
💥 3
🙌 14
🚀 5
Here’s an example of the new capability to load and serve flows from a git repository in your Python code.
Copy code
from prefect import flow

if __name__ == "__main__":
    flow.from_source(
        source="<https://github.com/org/repo.git>",
        entrypoint="path/to/flow.py:my_flow",
    ).serve(name="deployment-from-remote-flow")