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.9

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.9
File Size Uploaded Provenance Actions
todoosy-0.3.9.tar.gz 28.9 kB Without provenance Details for todoosy-0.3.9.tar.gz

Built distribution (wheel)

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

Total release size: 61.8 kB

Release files / todoosy-0.3.9.tar.gz

Download URL todoosy-0.3.9.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
336f09f721d273f88e3852d83903e3fe464cff45eccc46fcbed18a7f23e64329
BLAKE2b-256 checksum
How to use checksums
407020c01ed9ac05580d9dd0f0eb04ec2bd9635d64ef788ddabd955a97b66891
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.9-py3-none-any.whl

Download URL todoosy-0.3.9-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f88a5f61be6b5212f26d55a1a59bdda981d759162db191e1eb1a8f9f325bf02
BLAKE2b-256 checksum
How to use checksums
a3df8046fff65b91a74a79d40a5f87ce40fd28d2a523f3a3bbf7a8f61efeca78
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.9

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