creating org-mode routines and habits from source-files
Find a file
Ralph Mayer 43d3d1bef8
All checks were successful
Test / test (push) Successful in 12s
Publish Package / publish (push) Successful in 12s
Fix publish workflow: remove /upload suffix from PyPI URL
Forgejo's PyPI registry endpoint is /api/packages/{owner}/pypi,
not /api/packages/{owner}/pypi/upload.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 17:25:25 +01:00
.forgejo/workflows Fix publish workflow: remove /upload suffix from PyPI URL 2026-02-06 17:25:25 +01:00
example/input migration 2026-02-06 11:33:55 +01:00
src/routinen_converter migration 2026-02-06 11:33:55 +01:00
.gitignore migration 2026-02-06 11:33:55 +01:00
LICENSE Initial commit 2026-02-06 11:27:23 +01:00
pyproject.toml migration 2026-02-06 11:33:55 +01:00
README.md migration 2026-02-06 11:33:55 +01:00

routinen-converter

Python tool to convert org-tables with routines, habits, and checklists into org-mode files.

Installation

# From Forgejo package registry
uv add routinen-converter --index-url https://forgejo.mayer.rocks/api/packages/public/pypi/simple

# Or from git
uv add git+https://forgejo.mayer.rocks/public/project-routinen-core.git

Usage

# Run in a directory with input/ folder containing .org files
routinen-convert

# Specify directories
routinen-convert --input path/to/input --output path/to/output

# Run from different working directory
routinen-convert --directory /path/to/project

Input Format

Place .org files in the input/ directory with tables like:

| Thema              | Kadenz | wo     | kontext | type      | checklist |
|--------------------+--------+--------+---------+-----------+-----------|
| Water plants       | W01    | home   | morning | routine   |           |
| Exercise           | T01    |        | morning | habit     |           |
| Pack sunscreen     |        | travel |         | checklist | vacation  |

Columns

  • Thema: Task description
  • Kadenz: Recurrence pattern (see below)
  • wo: Location tag
  • kontext: Context tag
  • type: routine (default), habit, or checklist
  • checklist: Checklist name (required when type=checklist)

Kadenz Patterns

Pattern Meaning Example
JAN, FEB, ... Yearly on 1st of month APR = April 1st, +1y
M01, M02, ... Monthly on 1st M01 = every month, M02 = every 2 months
W01, W02, ... Weekly on Monday W01 = every week, W02 = every 2 weeks
T01, T02, ... Daily (for habits) T01 = daily, T02 = every 2 days

Output

  • output/routinen.org - Recurring TODO entries for routines
  • output/habits.org - Org-mode habits with :STYLE: habit property
  • output/checklist-{name}.org - One-time checklists

License

MIT