Python program to automate exporting my Markdown timesheets to Odoo
Find a file
Jef Roosens 615bfe30e0
feat(cli): add natural language date parsing via dateparser
- Add _parse_natural() to utils.py using dateparser as a fallback when
  structured date formats (YYYY-MM-DD, MM-DD, DD-MM) don't match
- Supports expressions like 'today', 'yesterday', 'monday', '3 days ago'
- Change day argument to nargs='*' and join tokens so unquoted
  multi-word expressions like: uv run timesheets 3 days ago work correctly
- Pin dateparser to English to avoid locale-dependent behaviour
- Update tests to cover natural language cases and fix test_last_monday
  (dateparser does not support 'last monday'; use 'monday' instead)
2026-06-02 09:31:05 +02:00
src/timesheets feat(cli): add natural language date parsing via dateparser 2026-06-02 09:31:05 +02:00
tests feat(cli): add natural language date parsing via dateparser 2026-06-02 09:31:05 +02:00
.coverage feat(cli): add natural language date parsing via dateparser 2026-06-02 09:31:05 +02:00
.gitignore feat(config): add TOML config file support 2026-06-02 09:31:04 +02:00
.python-version feat: set up modularized version of project with testing 2026-06-02 09:31:01 +02:00
AGENTS.md feat(config): add TOML config file support 2026-06-02 09:31:04 +02:00
project_map.json feat: set up modularized version of project with testing 2026-06-02 09:31:01 +02:00
pyproject.toml feat(cli): add natural language date parsing via dateparser 2026-06-02 09:31:05 +02:00
README.md feat: set up modularized version of project with testing 2026-06-02 09:31:01 +02:00
timesheets.example.toml feat(config): add TOML config file support 2026-06-02 09:31:04 +02:00
uv.lock feat(cli): add natural language date parsing via dateparser 2026-06-02 09:31:05 +02:00