Skip to main content

A small TUI that turns natural-language recurrence sentences into Kimai timesheet entries.

Project description

kimai-everyday

A small TUI that turns natural-language recurrence sentences into Kimai timesheet entries.

Type "jeden Tag von 08:00 bis 12:00 und von 13:00 bis 17:00 im Mai außer vom 15. bis 23. Mai" — get a preview of every working day with both time blocks — confirm — done.

See CONTEXT.md for the domain glossary and docs/adr/ for the recorded architectural decisions.

Install

pipx install .

Requires Python 3.11+.

First run

kimai-everyday

On first run, the tool prompts for:

  • Kimai base URL (e.g. https://kimai.example.com)
  • Kimai API token
  • Anthropic API key (or leave blank to use $ANTHROPIC_API_KEY)
  • Timezone (defaults to your system timezone)

The token is validated against GET /api/users/me before the config is written. The file is saved to ~/.config/kimai-everyday/config.toml with mode 0600.

Day-to-day

kimai-everyday              # full wizard
kimai-everyday --dry-run    # show the preview, skip the POST step
kimai-everyday config       # update saved settings (URL, tokens, timezone)

The wizard order: Project → Activity → Description → Pattern sentence → Preview table → confirmation → POST loop with progress bar → summary.

Patterns

The sentence is parsed by Claude Haiku. It accepts free-form German or English, including:

  • "jeden Tag im Juni von 09:00 bis 17:00 Uhr"
  • "Montag bis Donnerstag in der ersten Maiwoche, 08–12 und 13–17"
  • "die nächsten zwei Wochen, 9–18 Uhr, außer Pfingstmontag"
  • "jeden Werktag im Mai, auch am Samstag den 17."

Weekends and dates returned by Kimai's /api/public-holidays are skipped by default. The user can opt them in with phrases like "auch am Samstag den 17. Mai" or "auch am Tag der Arbeit".

Tests

pip install -e ".[dev]"
pytest

The pure date-filter logic in expansion.py is the only thing worth unit-testing in depth; the rest is shell around external services.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kimai_everyday-0.1.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kimai_everyday-0.1.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file kimai_everyday-0.1.0.tar.gz.

File metadata

  • Download URL: kimai_everyday-0.1.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for kimai_everyday-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c551c6512019a1c776522e904e4ddd1585f132e29f2516bc7940f8e21b1a4422
MD5 e2da9004a61e2bf904d5e16019292cdb
BLAKE2b-256 db10188689ad17ee679fc873ac3692e67d92229f0cbe146224ad3b3376fea9b1

See more details on using hashes here.

File details

Details for the file kimai_everyday-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kimai_everyday-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for kimai_everyday-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff04988bb5588c30b1dcb67feb1ce9c1a2d7076e5b666f09101f864d6c432ad
MD5 27c76e757b008914402e82f2f303bdda
BLAKE2b-256 7041efdeb9d61ba70d3088797e40a4c67a2dc5998b48fb3a6a7b2204366ed68d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page