Hey there! Is there anything equivalent to `prefec...
# ask-community
m
Hey there! Is there anything equivalent to
prefect get
(api here) in the Python client? In particular, is there any way to get a Flow ID by it’s name, project, & version as there is with the CLI?
b
I don't think there are any convenience methods but you can use
client.graphql
with a query like:
Copy code
{
    flow(where: {_and: {archived: {_eq: false}, name: {_eq: "$FLOW_NAME"}}}){
        id
    }
}
upvote 1
k
You could use the Python source code for that here