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

Method __init__

src/dotenv/main.py:35–50  ·  view source on GitHub ↗
(
        self,
        dotenv_path: Optional[StrPath],
        stream: Optional[IO[str]] = None,
        verbose: bool = False,
        encoding: Optional[str] = None,
        interpolate: bool = True,
        override: bool = True,
    )

Source from the content-addressed store, hash-verified

33
34class DotEnv:
35 def __init__(
36 self,
37 dotenv_path: Optional[StrPath],
38 stream: Optional[IO[str]] = None,
39 verbose: bool = False,
40 encoding: Optional[str] = None,
41 interpolate: bool = True,
42 override: bool = True,
43 ) -> None:
44 self.dotenv_path: Optional[StrPath] = dotenv_path
45 self.stream: Optional[IO[str]] = stream
46 self._dict: Optional[Dict[str, Optional[str]]] = None
47 self.verbose: bool = verbose
48 self.encoding: Optional[str] = encoding
49 self.interpolate: bool = interpolate
50 self.override: bool = override
51
52 @contextmanager
53 def _get_stream(self) -> Iterator[IO[str]]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected