wh_is

treepathmap.wh_is(attribute_name: str, value: Union[int, str])str

Makes a ‘where is’ search pattern. Using this method ensures the correct key-value delimiter within the search pattern.

Parameters
  • attribute_name (str) – The attribute of which the value is choosen.

  • value (Union[int, str]) – The value of the attribute to choose.

Returns

str

Examples

>>> from treepathmap import wh_is
>>> wh_is("a", "b")
'a/b'