diff --git a/src/aind_data_schema_models/data_name_patterns.py b/src/aind_data_schema_models/data_name_patterns.py new file mode 100644 index 0000000..c650105 --- /dev/null +++ b/src/aind_data_schema_models/data_name_patterns.py @@ -0,0 +1,67 @@ +"""Module for defining our data naming conventions""" + +from datetime import datetime +from enum import Enum + + +class RegexParts(str, Enum): + """Regular expression components to be re-used elsewhere""" + + DATE = r"\d{4}-\d{2}-\d{2}" + TIME = r"\d{2}-\d{2}-\d{2}" + + +class DataRegex(str, Enum): + """Regular expression patterns for different kinds of data and their properties""" + + DATA = f"^(?P