Is there a way to install a "lite" version of the ...
# show-and-tell
m
Is there a way to install a "lite" version of the python Prefect Client without having to install the whole Core package? I need it to interact with my Prefect server from another app and a think that adding the whole
prefect
python package might be a little overkill.
Or maybe you recommend using a GraphQL library like
graphene
for interaction with Prefect?
t
what are you trying to do from the other app?
n
Hi @Matias Godoy! Prefect doesn't have a "lite" version, but any client that can interact with GraphQL should work just fine! On the front end we use the
vue-apollo
client.
👍 1
t
^^ i was going to say that 😀
n
The Prefect UI has the InteractiveAPI (you can find it in the menu at the top left) which will allow you to mock up/tool any calls you'll want to make from your other application and see what results you'll get back ahead of time.
m
what I'm trying to do is to start a flow from another app
a flow which requires some parameters
I've never used GraphQL before, but I'll get to read about it 🤓
any hint on how to run a flow with parameters?
n
Should be very straightforward! The call for that should look like this:
Copy code
mutation {
  create_flow_run(input: { flow_id: "", parameters: {} }) {
    id
  }
}
In the thread above this one, I posted some links to tutorials on how to get started with GraphQL, I recommend checking those out 🙂
m
excellent, thanks a lot!
n
😄