MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / get

Method get

src/dotenv/main.py:102–113  ·  view source on GitHub ↗

(self, key: str)

Source from the content-addressed store, hash-verified

100 return True
101
102 def get(self, key: str) -> Optional[str]:
103 """
104 """
105 data = self.dict()
106
107 if key in data:
108 return data[key]
109
110 if self.verbose:
111 logger.warning("Key %s not found in %s.", key, self.dotenv_path)
112
113 return None
114
115
116def get_key(

Callers 3

getFunction · 0.80
resolveMethod · 0.80
get_keyFunction · 0.80

Calls 1

dictMethod · 0.95

Tested by

no test coverage detected