Adds a filter to get state variables with the given name.
with_name(name: str, sensitivity: bool = True) β StateVariables
with_name(name: str, sensitivity: bool = True) β
StateVariables
Query Example
from glider import * def query(): state_vars = StateVariables().with_name('balance', sensitivity=False).exec(2) for state_var in state_vars: print(state_var.name()) print(state_var.properties()) return []
Output
"root":{1 item "print_output":[4 items 0:string"balance" 1:string"['internal']" 2:string"BALANCE" 3:string"['constant', 'internal']" ] }
Last updated 4 months ago