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).
Metadata
Release files for stage-left 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stage-left-0.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stage_left-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / stage-left-0.1.0.tar.gz
| Download URL | stage-left-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5354ce60a577e739224f85253a3fb10d7e7d814368da4fdd8001e8c7d78f0aa0
|
|
BLAKE2b-256 checksum How to use checksums |
77fcb2e49626dc1c0130d6c6795fb642b21f921c5f6dbac6ee74376d8aed8099
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.10 Linux/5.4.0-131-generic
|
Release files / stage_left-0.1.0-py3-none-any.whl
| Download URL | stage_left-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0dc2dc2d0c4a0e88629d1dd740ee349879a082e9a9dea5a7030737ab798c10b
|
|
BLAKE2b-256 checksum How to use checksums |
b81b6779e5868c6e690a1148396a4e8ed48fc0413dc93ea9ca9165f63ab1d2f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.10 Linux/5.4.0-131-generic
|