tiddly wiki server
Project description
tw5-server is a TiddlySpot like server to save TiddlyWiki file online.
Install
$: pip install tw5-server
Configuration
WIKI_ROOT where to save wiki files
AUTH_BASIC_USER_FILE file contains view_key and write_key
Tutorial
Create wiki named demo
tw5-server ) WIKI_ROOT=/tmp/wiki_root FLASK_APP=tw5_server/app.py flask create-wiki demo wiki "demo" is created. Dir is /tmp/wiki_root/demo tw5-server ) cd /tmp/wiki_root/demo demo ) tree . └── index.html 0 directories, 1 file demo ) git log commit ab08b0d2a903754a8b2a63d86f715ba87d9b1bed (HEAD -> master) Author: tw5-server <> Date: Mon Feb 1 13:49:52 2021 +0800 automatic create
Set basic auth
[demo] view_key=
demo_view_keywrite_key=demo_write_keyRun server
tw5-server ) WIKI_ROOT=/tmp/wiki_root AUTH_BASIC_USER_FILE=basic_auth.ini FLASK_APP=tw5_server/app.py flask run * Serving Flask app "tw5_server/app.py" * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Open browser and visit http://127.0.0.1:5000/demo. Enter the view_key as basic auth and you can see the wiki now.
Configure TiddlySpot Saver. Set server url as http://127.0.0.1:5000/demo/store and paste write_key as password. Then press the Save Changes button and the wiki will be saved to local server.
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
tw5_server-1.1.1.tar.gz
(392.4 kB
view hashes)
Built Distribution
tw5_server-1.1.1-py3-none-any.whl
(397.5 kB
view hashes)
Close
Hashes for tw5_server-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e17d0776b9fea099312966941ba54b00f609f1f7e311a0f6352c5eaac228e795 |
|
MD5 | 6d69525422fbcee85f7f7f54983b002b |
|
BLAKE2b-256 | abaf5b9c022c6cadf5331dbbc1632bcd4430f39662a0fbf9ed9d8445cef03894 |