MCPcopy Index your code
hub / github.com/theskumar/python-dotenv / parse_key

Function parse_key

src/dotenv/parser.py:112–120  ·  view source on GitHub ↗
(reader: Reader)

Source from the content-addressed store, hash-verified

110
111
112def parse_key(reader: Reader) -> Optional[str]:
113 char = reader.peek(1)
114 if char == "#":
115 return None
116 elif char == "'":
117 (key,) = reader.read_regex(_single_quoted_key)
118 else:
119 (key,) = reader.read_regex(_unquoted_key)
120 return key
121
122
123def parse_unquoted_value(reader: Reader) -> str:

Callers 1

parse_bindingFunction · 0.85

Calls 2

peekMethod · 0.80
read_regexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…