https://prefect.io logo
Title
m

Matias Godoy

04/29/2020, 2:23 PM
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

Tyler Wanner

04/29/2020, 2:30 PM
what are you trying to do from the other app?
n

nicholas

04/29/2020, 2:31 PM
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

Tyler Wanner

04/29/2020, 2:31 PM
^^ i was going to say that 😀
n

nicholas

04/29/2020, 2:32 PM
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

Matias Godoy

04/29/2020, 2:32 PM
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

nicholas

04/29/2020, 2:34 PM
Should be very straightforward! The call for that should look like this:
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

Matias Godoy

04/29/2020, 2:41 PM
excellent, thanks a lot!
n

nicholas

04/29/2020, 2:42 PM
😄