betty.machine_name module#
Machine names.
- final exception betty.machine_name.InvalidMachineName#
Bases:
HumanFacingException,ValueErrorRaised when something is not a valid machine name.
- final class betty.machine_name.MachineName#
-
A machine name.
A machine name is a string that meets these criteria: - At least 1 character long. - At most 250 characters long. - Lowercase letters, numbers, and non-consecutive hyphens (-).
- classmethod machinify(source: str, /) Self | None#
Attempt to convert a source string into a valid machine name.
- property persistent: bool#
Whether this machine name is persistent, and will exist beyond the current Betty process.
- classmethod resolve(machine_name: ResolvableMachineName) MachineName#
Resolve a value to a machine name.