filetagslib
index
filetagslib/filetagslib/filetagslib.py

# -*- coding: utf-8; mode: python; -*-
# Time-stamp: <2019-12-14 11:41:58 vk>

 
Modules
       
logging
re

 
Classes
       
builtins.object
filenameconvention

 
class filenameconvention(builtins.object)
    Utility library related to filenameconvention of filetags.
 
  Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
BETWEEN_TAG_SEPARATOR = ' '
DATESTAMP_PATTERN = r'(?P<datestamp>(?P<year>\d{4,4})-(?P<month>[01]\d)-(?P<day>[0123]\d))'
FILENAME_PATTERN_REGEX = re.compile('^(?P<datetimestamp>(?P<datestamp>(?P...)(\\.(?P<seconds>[012345]\\d))?))?)([-_ ](?P<des)
FILENAME_TAG_SEPARATOR = ' -- '
FILETAGS_PATTERN = ' --([ ](?P<filetags>.+))+'
HMS_PATTERN = r'(?P<hours>[012]\d)\.(?P<minutes>[012345]\d)(\.(?P<seconds>[012345]\d))?'
TIMESTAMP_PATTERN = r'(?P<datestamp>(?P<year>\d{4,4})-(?P<month>[01]\d...inutes>[012345]\d)(\.(?P<seconds>[012345]\d))?))?'