Releases: Nriver/trilium-py
v1.3.2
What's Changed
- using mimetypes instead of magic by @6112562a in #62 the python-magic dependency is completely removed as per 8c59eec
- support importing images and files in markdown as attachments by @regomne in #60 it's now the default way to import as per 007f0f2
New Contributors
Full Changelog: v1.3.0...v1.3.2
v1.3.0
New Feature — (Advanced Usage) 🗓️🔁 Periodic TODOs
Automatically add recurring tasks to your TODO list using the new add_periodic_todos function!
This feature supports daily, weekly, monthly, and yearly tasks.
If a task is due today and isn’t already in your list, it will be added automatically.
💡 Example
periodic_todos = [
{"content": "Stretch body", "type": "daily"},
{"content": "Buy milk for Nriver :)", "type": "daily"},
{"content": "Wash clothes", "type": "weekly", "weekday": 6},
{"content": "Write monthly report", "type": "monthly", "day": 1},
{"content": "Annual review", "type": "yearly", "month": 12, "day": 31},
{"content": "Pay bills", "type": "monthly", "day": 15, "end_date": "2077-01-01"},
]
ea.add_periodic_todos(periodic_todos)🔗 More advanced usage
For more complex usage and options, please refer to the documentation.
New Feature — 📄 Create Branch (Note Clone)
In ETAPI, this is called a branch, but in the Trilium UI it represents a note clone.
Here’s an example of creating a clone of note2 under note1:
res = ea.create_branch(
noteId="note2",
parentNoteId="note1",
)
🗓️🔁 新功能 — (高级用法) 周期性 TODO
现在可以使用 add_periodic_todos 自动添加循环任务到待办列表!
支持 每日、每周、每月和每年 的任务。
如果任务今天到期且今天的清单中没有,它会自动添加。
💡 示例
periodic_todos = [
{"content": "每天拉伸身体", "type": "daily"},
{"content": "每天给 Nriver 买牛奶 :)", "type": "daily"},
{"content": "每周六洗衣服", "type": "weekly", "weekday": 6},
{"content": "每月 1 日写月报", "type": "monthly", "day": 1},
{"content": "年度总结", "type": "yearly", "month": 12, "day": 31},
{"content": "每月 15 日交账单", "type": "monthly", "day": 15, "end_date": "2077-01-01"},
]
ea.add_periodic_todos(periodic_todos)🔗 更多复杂用法
更多高级用法和配置说明,请参考官方文档:周期性 TODO
新功能 — 创建笔记克隆(分支)
在 ETAPI 中,这个对象被称为 branch(分支),但在 Trilium 用户界面中,它表示 笔记克隆(note clone)。
下面示例演示如何在 note1 下创建 note2 的克隆:
res = ea.create_branch(
noteId="note2",
parentNoteId="note1",
)
v1.2.6
New Feature
-
Periodic TODOs
- Supports recurring todos: daily, weekly, monthly, yearly
- Supports custom date ranges (
start_date,end_date) - Supports negative day values for monthly tasks (e.g.
-1= last day of month) - Avoids duplicate todos for the same day
Example
periodic_todos = [
{"content": "Check email", "type": "daily"},
{"content": "Wash clothes", "type": "weekly", "weekday": 6},
{"content": "Write monthly report", "type": "monthly", "day": 1},
{"content": "Pay rent", "type": "monthly", "day": -1},
]
ea.add_periodic_todos(periodic_todos)新功能
-
周期性 TODO
- 支持周期性任务:每日、每周、每月、每年
- 支持自定义日期范围(
start_date,end_date) - 支持 负数日期 用于月度任务(如
-1= 每月最后一天) - 自动避免重复添加相同任务
示例
periodic_todos = [
{"content": "检查邮件", "type": "daily"},
{"content": "洗衣服", "type": "weekly", "weekday": 6},
{"content": "写总结报告", "type": "monthly", "day": 1},
{"content": "交房租", "type": "monthly", "day": -1},
]
ea.add_periodic_todos(periodic_todos)v1.2.5
Release Note
-
Beautify note has been further enhanced:
- Headings are now automatically normalized (highest level unified to H2) for clearer structure
- Code blocks are now preserved and excluded from global beautification
- Leading and trailing blank lines inside code blocks are automatically removed
- Improved spacing between images and paragraphs
- Enhanced overall formatting consistency, making notes cleaner, clearer, and easier to read
-
Beautify note 功能进一步完善:
- 标题层级现在会自动规范化(最高统一为 H2),结构更加清晰
- 代码块内容会被完整保留,不再参与全局美化
- 自动去除代码块内部首尾多余的空行
- 优化图片与段落之间的间距
- 提升整体排版一致性,让笔记更加简洁、清晰、易读
v1.2.2
v1.2.1
What's Changed
- examples of using UV with trilium-py by @maphew in #52
- add bulk markdown upload example by @maphew in #54
- Add switch to disable math formula parse
Full Changelog: v1.2.0...v1.2.1
v1.2.0
New feature: traverse note tree https://github.com/Nriver/trilium-py?tab=readme-ov-file#advanced-usage--traverse-note-tree
v1.1.0
This release implement web API client for Trilium
v1.0.1
Some photo are rotated 90 degrees after conversion. Correct image orientation based on EXIF data, if available
