Is there a way to only install the Prefect API client from the prefect package? I have some systems that interact with Prefect via the Python API, but they don’t need the entire server part of the package to work.
✅ 1
z
Zanie
03/21/2023, 5:43 PM
Not at this time, we share schemas across the server / client.
👍 1
d
Daniel Smith
03/22/2023, 2:41 PM
Just echoing that it would be great to have a lightweight client, the dependencies of Prefect server are relatively heavy.
Plenty of solutions sharing schema between server/client, all take effort however (server imports client, separate schema package, etc).
z
Zanie
03/22/2023, 2:44 PM
Yep there’s an issue for this and it’s on our roadmap — it’s a lot of work though and will need to be done carefully to avoid breaking changes.
👍 1
d
Daniel Smith
03/22/2023, 2:55 PM
Awesome!
z
Zanie
03/22/2023, 3:13 PM
One option we are considering (and that has been considered by others) is generating the client from our OpenAPI spec
d
Daniel Smith
03/22/2023, 3:32 PM
👍 I recall a OpenAPI to Pydantic object tool running around somewhere too.