linkahead.common.administration module
- class linkahead.common.administration.PermissionRule(action: str, permission: str, priority: bool = False)
Bases:
object
Permission rules.
- linkahead.common.administration.generate_password(length: int)
Create a random password that fulfills the security requirements
- Parameters:
length (int) – Length of the generated password. Has to be greater than 7.
- Returns:
password – Generated random password of the given length
- Return type:
string
- Raises:
ValueError: – If the length is less than 8.
- linkahead.common.administration.get_server_properties() dict[str, str | None]
get_server_properties.
Get all server properties as a dict.
- Returns:
The server properties.
- Return type: