50 lines
1.0 KiB
Python
50 lines
1.0 KiB
Python
"""
|
|
MarkiTect Utils - A collection of utility functions for the MarkiTect ecosystem.
|
|
|
|
This capability provides commonly used utility functions that can be shared
|
|
across different MarkiTect capabilities and projects.
|
|
"""
|
|
|
|
from .string_utils import (
|
|
slugify,
|
|
truncate,
|
|
camel_to_snake,
|
|
snake_to_camel,
|
|
strip_ansi_codes,
|
|
)
|
|
|
|
from .file_utils import (
|
|
safe_filename,
|
|
ensure_extension,
|
|
get_file_size,
|
|
is_text_file,
|
|
normalize_path,
|
|
)
|
|
|
|
from .validation_utils import (
|
|
is_valid_email,
|
|
is_valid_url,
|
|
is_valid_semver,
|
|
validate_required_fields,
|
|
)
|
|
|
|
__version__ = "0.1.0-dev"
|
|
__all__ = [
|
|
# String utilities
|
|
"slugify",
|
|
"truncate",
|
|
"camel_to_snake",
|
|
"snake_to_camel",
|
|
"strip_ansi_codes",
|
|
# File utilities
|
|
"safe_filename",
|
|
"ensure_extension",
|
|
"get_file_size",
|
|
"is_text_file",
|
|
"normalize_path",
|
|
# Validation utilities
|
|
"is_valid_email",
|
|
"is_valid_url",
|
|
"is_valid_semver",
|
|
"validate_required_fields",
|
|
] |