MiniWiki
A tiny Python wiki engine.
Install / Use
/learn @Oxygem/MiniWikiREADME
MiniWiki
MiniWiki is a tiny wiki engine written in Python designed for small(er) wikis (such as Stack Setup). Features:
- Markdown content
- Inter-page linking (
[[Page Title|/Another/Page]]or[[/Another/Page]]) - Index generation based on a path prefix (
[index:/Another]) - Page history log (WIP)
- Pluggable authentication backend
- Custom template support
Quickstart
-
First, install MiniWiki:
pip install miniwiki -
Create a Python config file (see config options):
# config.py name = 'My MiniWiki' database = 'sqlite:///my-miniwiki.db' -
Initialize the database
miniwiki config.py --initdb -
Run it!
miniwiki config.py
Configuration
Database
The database variable can be any valid SQLAlchemy database URI.
Authentication
By default MiniWiki instances allow public editing. The authentication backend can be set via config variable auth_backend. MiniWiki comes with two builtin backends:
AnonymousAuthBackend
Allows anyone to edit the wiki, usage:
auth_backend = 'miniwiki.auth.AnonymousAuthBackend'
SimpleAuthBackend
Allows a hard-coded list of users to edit the wiki, usage:
auth_backend = 'miniwiki.auth.SimpleAuthBackend'
auth_backend_settings = {
'users': {
'USERNAME': 'HASHED_PASSWORD',
},
}
You will need to hash the passwords like so:
from bcrypt import hashpw, gensalt
hashed_password = hashpw(b'PASSWORD', gensalt(N_BCRYPT_ROUNDS))
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
