MCPcopy
hub / github.com/redis/redis-py / Path

Class Path

redis/commands/json/path.py:1–16  ·  view source on GitHub ↗

This class represents a path in a JSON value.

Source from the content-addressed store, hash-verified

1class Path:
2 """This class represents a path in a JSON value."""
3
4 strPath = ""
5
6 @staticmethod
7 def root_path():
8 """Return the root path's string representation."""
9 return "."
10
11 def __init__(self, path):
12 """Make a new path based on the string representation in `path`."""
13 self.strPath = path
14
15 def __repr__(self):
16 return self.strPath

Callers 6

test_respFunction · 0.90
test_respFunction · 0.90
run_baseline_scenarioFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_respFunction · 0.72
test_respFunction · 0.72