Is there a way to only install the Prefect API cli...
# ask-community
s
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
Not at this time, we share schemas across the server / client.
👍 1
d
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
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
Awesome!
z
One option we are considering (and that has been considered by others) is generating the client from our OpenAPI spec
d
👍 I recall a OpenAPI to Pydantic object tool running around somewhere too.