MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / PathInputData

Class PathInputData

example_code/item_052.py:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56print("Example 2")
57class PathInputData(InputData):
58 def __init__(self, path):
59 super().__init__()
60 self.path = path
61
62 def read(self):
63 with open(self.path) as f:
64 return f.read()
65
66
67print("Example 3")

Callers 1

generate_inputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected