Skip to main content

Todoosy Python Library

Python implementation of the Todoosy format parser, formatter, linter, and query engine.

Installation

pip install -e .

For development:

pip install -e ".[dev]"

Usage

from todoosy import parse, format, lint, query_upcoming, query_misc, parse_scheme

# Parse a document
result = parse('''
# Work

- Task (due 2026-01-15 p1 2h)

# Misc
''')

# Access the AST
for item in result.ast.items:
    print(f"{item.title_text}: due={item.metadata.due}")

# Format a document
formatted = format(input_text)

# Lint a document
warnings = lint(input_text)
for w in warnings.warnings:
    print(f"{w.code}: {w.message}")

# Query upcoming items
scheme = parse_scheme(scheme_text)
upcoming = query_upcoming(input_text, scheme)
for item in upcoming.items:
    print(f"{item.path}: {item.due}")

# Query misc items
misc = query_misc(input_text)
for item in misc.items:
    print(item.title_text)

Running Tests

pytest

Metadata

Release files for todoosy 0.3.8

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

Source distribution (sdist)

Source distribution for todoosy 0.3.8
File Size Uploaded Provenance Actions
todoosy-0.3.8.tar.gz 28.6 kB Without provenance Details for todoosy-0.3.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for todoosy 0.3.8
File Interpreter ABI Platform Actions
todoosy-0.3.8-py3-none-any.whl Python 3 none any Details for todoosy-0.3.8-py3-none-any.whl

Total release size: 61.0 kB

Release files / todoosy-0.3.8.tar.gz

Download URL todoosy-0.3.8.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1b4d7d09de29a07a54daad45afa2284a1f892e72fc802a581b1bf4380401a241
BLAKE2b-256 checksum
How to use checksums
bd7d344bc04438d7ef08854179c259d50c7aedd964d75d0a1fa8b42bd7cb9d82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / todoosy-0.3.8-py3-none-any.whl

Download URL todoosy-0.3.8-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eb8bb1770f71fed1a9c9c31cdf9373894015508c026507f532ca21d0a5bd603
BLAKE2b-256 checksum
How to use checksums
47cc5b1933f3489f394a9f5410291cdb404d8aa265fe1200f1b11d7c62cdc37b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for todoosy 0.3.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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