graflag.config
Configuration management for GraFlag.
- graflag.config.get_config_path(override: str | None = None) Path[source]
Resolve the config file path.
Order: explicit override > a GraFlag-looking .env in the working directory > the standard user config location.
- graflag.config.init_config(target: Path | None = None) Path[source]
Interactively create configuration file.
Writes to target when given. Hardcoding CONFIG_FILE meant graflag setup –config /etc/graflag/prod.env ran the whole wizard, wrote somewhere else, and then failed for the file the user named – with no way to break the loop.
- class graflag.config.GraflagConfig(config_file: str | None = None)[source]
Bases:
objectHandle configuration loading and validation for GraFlag.
- property manager_ip: str
- property ssh_port: str
- property ssh_key: str | None
- property nfs_port: str
- property hosts_file: str | None
- property graflag_libs: str