MCPcopy Create free account
hub / github.com/TechifyBots/File-Stream-Bot / parse_from_env

Method parse_from_env

biisal/utils/config_parser.py:10–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8 self.config_file = config_file
9
10 def parse_from_env(self) -> Dict[int, str]:
11 self.tokens = dict(
12 (c + 1, t)
13 for c, (_, t) in enumerate(
14 filter(
15 lambda n: n[0].startswith("MULTI_TOKEN"), sorted(environ.items())
16 )
17 )
18 )
19 return self.tokens

Callers 1

initialize_clientsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected