Initial commit: Python library for Markdown note services

- Add MDAuth class for authentication and session management
- Add MDClient class for note operations (CRUD + export/search)
- Add CLI tool mdclient_cli.py for quick operations
- Support for CodiMD, HedgeDoc, and HackMD services
- Multi-endpoint API compatibility

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
2026-03-17 14:38:54 +08:00
commit 38b4bc5377
15 changed files with 1992 additions and 0 deletions

12
.env.example Normal file
View File

@@ -0,0 +1,12 @@
# MDclient 設定檔案範例
# 複製此檔案為 .env 並填入你的資訊
# 伺服器位址
MDCLIENT_URL=https://codimd.lotimmy.com
# 登入帳密
MDCLIENT_EMAIL=your@email.com
MDCLIENT_PASSWORD=your_password
# Cookie 檔案路徑(可選,預設為 key.conf
# MDCLIENT_COOKIE_FILE=key.conf