PK!E5GGblockbuster/core/__init__.py# pylint: disable=C0111 __version__ = "0.1.1" DATE_FORMAT = "%Y-%m-%d" PK!* blockbuster/core/factory.py"""Functions to create a Task instance from text in todo.txt format""" import re from blockbuster.core.model import Task def _done(todotxt): """ Returns ------- tuple boolean indicating whether the task is complete the todo.txt string stripped of any completed portion """ done = todotxt.startswith("x") if done: todotxt = todotxt[1:].strip() return done, todotxt def _priority(todotxt): """ Returns ------- tuple Any priority character The todo.txt string stripped of any priority character """ regex = re.compile(r"\s*\((\S)\)") match = regex.search(todotxt) priority = None if match: priority = match.group(0).strip().lstrip("(").rstrip(")") todotxt = regex.sub("", todotxt).strip() return priority, todotxt def _dates(todotxt): print(todotxt) regex = re.compile(r"(?~O[gӒfKtm[PyG}rl$'tE!u6>̦ MB_L(z]6:C9HŒOw'<-UP+[C!,*PN|'}W &.o~aM;x6ljsU:8=ޖjW(_|1׆B!ıCųG|nuFh?ʥ6FΝdlI* 2P0hqHP)UaXJi] ɛ|[S*| ișWT*ѸIb-;Hr]g3a<= :|Hq3S; Ix1*n <B\L'=m3@x?7#BiJZ΢jO$\V-3tiG}JI$NaVUݒ^v(ae0(- KĈΙ9SJUn7(L )CB FG*UV~4J \A72s 2CMN6)r s2#Pw!$jZ`g!'3FT>pK*7@cT I V* `+F~~ tM6q*O7p+Zu%'PK!E5GGblockbuster/core/__init__.pyPK!* blockbuster/core/factory.pyPK!% ; blockbuster/core/io.pyPK!J3blockbuster/core/model.pyPK!HnHTU&)blockbuster_core-0.1.1.dist-info/WHEELPK!HO )~*blockbuster_core-0.1.1.dist-info/METADATAPK!HSD&b1'/blockbuster_core-0.1.1.dist-info/RECORDPKZ1