Not that I'm aware of, but you might get a better ...
# questions
d
Not that I'm aware of, but you might get a better answer in #C03RKP2LW64 (I'm often not up to date on these things). Only thing that comes to mind is the custom dry runner
i
I think we are in questions 👀 The call is coming from inside the house
facepalming 1
😄 1
r
this is very interesting usecase. we are building a project snapshot layer, and maybe we could have this too @Ravi Kumar Pilla
i
Cool!
d
Also, I forgot the word "dry" in my response; just added it. My initial thought was that the dry runner would let you essentially list nodes by tag, at the very least. But perhaps the inspection layer is the truer solution!
r
Hi @Ian Whalen, At this moment (currently in main branch),
ProjectSnapshot
has no built-in filter method for tags. But since
NodeSnapshot.tags
is there, you can query it directly something like below :
Copy code
from kedro.inspection import get_project_snapshot
snapshot = get_project_snapshot("/path/to/project")
tag = "companies"
tagged_nodes = {
    n.name
    for p in snapshot.pipelines
    for n in p.nodes
    if tag in n.tags
}
tagged_nodes
Inspection layer models - https://github.com/kedro-org/kedro/blob/main/kedro/inspection/models.py The inspection layer will be improved iteratively and we would love to hear more use cases as we build filters or additional functionality. Please feel free to share your thoughts here or open an enhancement request here. Thank you
🥳 1
❤️ 2
i
Thanks Ravi!
np 1