No project description provided
Project description
stage-left
[x]it! is a plain-text file format for todos and check lists. Stage-left parses [x]it! documents into rich python objects.
Installation
pip install stage-left
Usage
Parse checklist from file
from stage_left import parse_file, ParseError
with open("/path/to/checklist.xit") as fp:
try:
checklist = parse_file(fp)
print(checklist)
except ParseError:
raise
Parse checklist from string
from stage_left import parse_text, ParseError
text = """
[ ] Open
[x] Done
"""
try:
checklist = parse_text(text)
print(checklist)
except ParseError:
raise
Implementation notes
Due dates specified using the numbered week syntax e.g: 2022-W01
are parsed assuming Monday is the first day of the week. All days in a new year preceding the first Monday are considered to be in week 0 (W00
).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stage-left-0.1.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for stage_left-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dd37c4a990f45c61fca0fbd566e037e858df4a24e63956f228d468c488e4c33 |
|
MD5 | f3b720b620c2f0e65ca7fc108927b863 |
|
BLAKE2b-256 | 667bd923779719b17e305a432fcaa4b19d211c0050b2d19f6ffe63c151d24dee |