Skip to main content

stage-left

Run tests codecov PyPI Version License Python Compatibility Code style: black

[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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stage-left 0.1.1
File Size Uploaded
stage-left-0.1.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stage-left 0.1.1
File Interpreter ABI Platform
stage_left-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / stage-left-0.1.1.tar.gz

Download URL stage-left-0.1.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e963bb244335a92c8bc8c34d5ca17921951b238ea840fca4bc0429af83b3b183
BLAKE2b-256 checksum
How to use checksums
2be49ab250161c7c87129869c2f8382d00fde7da72b769a8baad9250e48f0497
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.1-py3-none-any.whl

Download URL stage_left-0.1.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dd37c4a990f45c61fca0fbd566e037e858df4a24e63956f228d468c488e4c33
BLAKE2b-256 checksum
How to use checksums
667bd923779719b17e305a432fcaa4b19d211c0050b2d19f6ffe63c151d24dee
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 history Release notifications | RSS feed

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page