MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _write_env_dict

Method _write_env_dict

env_manager.py:50–54  ·  view source on GitHub ↗

Persist a full dict back to the .env file.

(self, env)

Source from the content-addressed store, hash-verified

48 return env
49
50 def _write_env_dict(self, env):
51 """Persist a full dict back to the .env file."""
52 with open(self.env_file_path, 'w') as f:
53 for key, value in env.items():
54 f.write(f'{key}={value}\n')
55
56 def get_env_key(self, key):
57 """Return the value of *key* from os.environ or the .env file."""

Callers 2

set_env_keyMethod · 0.95
delete_env_keyMethod · 0.95

Calls 2

itemsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected