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.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for stage_left-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0dc2dc2d0c4a0e88629d1dd740ee349879a082e9a9dea5a7030737ab798c10b |
|
MD5 | 3d2c1050b075720435df026663e68561 |
|
BLAKE2b-256 | b81b6779e5868c6e690a1148396a4e8ed48fc0413dc93ea9ca9165f63ab1d2f5 |