Expand description
Utility functions for grammar and string operations
Functions§
- escape_
special_ characters - Escape special characters in a string for use in configuration values
- get_
valid_ filename - Get a valid filename by stripping invalid characters This is similar to Django’s get_valid_filename
- is_
special_ char - Check if a character is a special character that needs escaping
- is_
valid_ key - Validate that a key name is valid (no special characters except dots and underscores)
- join_
key - Join key parts into a dotted key
- normalize_
file_ name - Normalize a config file name by adding .yaml extension if needed
- sanitize_
path_ component - Sanitize a string for use in a file path
- split_
key - Split a dotted key into parts
- unescape_
string - Unescape a string by removing escape sequences