Run TiddlyWiki in Datasette and save Tiddlers to a SQLite database
Project description
datasette-tiddlywiki
Run TiddlyWiki in Datasette and save Tiddlers to a SQLite database
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-tiddlywiki
Usage
Start Datasette with a tiddlywiki.db database. You can create it if it does not yet exist using --create.
You need to be signed in as the root user to write to the wiki, so use the --root option and click on the link it provides:
% datasette tiddlywiki.db --create --root
http://127.0.0.1:8001/-/auth-token?token=456670f1e8d01a8a33b71e17653130de17387336e29afcdfb4ab3d18261e6630
# ...
Navigate to /-/tiddlywiki on your instance to interact with TiddlyWiki.
Authentication and permissions
By default, the wiki can be read by anyone who has permission to read the tiddlywiki.db database. Only the signed in root user can write to it.
You can sign in using the --root option described above, or you can set a password for that user using the datasette-auth-passwords plugin and sign in using the /-/login page.
You can use the edit-tiddlywiki permission to grant edit permisions to other users, using another plugin such as datasette-permissions-sql.
You can use the view-database permission against the tiddlywiki database to control who can view the wiki.
Datasette's permissions mechanism is described in full in the Datasette documentation.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-tiddlywiki
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette-tiddlywiki-0.2.tar.gz.
File metadata
- Download URL: datasette-tiddlywiki-0.2.tar.gz
- Upload date:
- Size: 416.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2e94bfb562697d71fcc074883ecd8ce611cec26c05f4f2593f0c04d60181c8b
|
|
| MD5 |
d4997e8931904db76fa1337c80e8c2ab
|
|
| BLAKE2b-256 |
f3694995333650fb8e6a8eaf904ef645e7853aa4c687e5b8275c414203fd7001
|
File details
Details for the file datasette_tiddlywiki-0.2-py3-none-any.whl.
File metadata
- Download URL: datasette_tiddlywiki-0.2-py3-none-any.whl
- Upload date:
- Size: 420.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12ffe3a1db713f19bebb3831c785420f5ea566ef618eeeb3af845d610db072b0
|
|
| MD5 |
5882d3af752606af6d027fe366735685
|
|
| BLAKE2b-256 |
2904e40fcbb39d946a7210b792c498ba50f64a65033b0ffa07612179a6931d6a
|