Callables.with_name()
with_name(
name: str
,
sensitivity: bool = True
) →
Callables
Adds a filter to get callables having specified name. Returns a filtered Callables child object. This method can be called on all Callables child classes: Functions and Modifiers.
To get all but the specified name, refer to Callables.without_name().
To filter given a list of names, refer to Callables.with_one_of_the_names().
Functions Example
from glider import *
def query():
# Retrieve the functions named `distributeFunds`
functions = Functions().with_name("distributeFunds").exec(100)
# Return the first five functions
return functions[:5]
Output:

Modifiers Example
from glider import *
def query():
# Retrieve the modifiers named `onlyCaller`
modifiers = Modifiers().with_name("onlyCaller").exec(100)
# Return the first five modifiers
return modifiers[:5]
Output:

Last updated