forked from muskankhedia/Student-Utility-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
54 lines (45 loc) · 1.18 KB
/
__init__.py
File metadata and controls
54 lines (45 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
String Utilities Module
This module contains various utility functions for string manipulation and processing.
Students can contribute by implementing the functions in the individual modules.
Each function includes:
- Detailed docstrings explaining the purpose and parameters
- Type hints for better code clarity
- Examples in the docstrings to guide implementation
- Comments explaining the expected logic
Author: Student Contributors
Last Updated: February 2026
"""
# Import all string utilities from individual modules
from .manipulation import (
reverse_string,
capitalize_words,
remove_duplicates,
replace_multiple
)
from .analysis import (
count_words,
count_characters,
find_longest_word,
extract_numbers
)
from .validation import (
is_palindrome,
is_anagram
)
# Make all functions available when importing from string_utils module
__all__ = [
# String manipulation
'reverse_string',
'capitalize_words',
'remove_duplicates',
'replace_multiple',
# String analysis
'count_words',
'count_characters',
'find_longest_word',
'extract_numbers',
# String validation
'is_palindrome',
'is_anagram'
]