a set of utilities for using the etherpad API to make static dumps of pads
Project description
etherdump
Tool to help manage periodic publishing of etherpads to static files, preserving metadata. Uses the etherpad API (and so it requires having the APIKEY.txt contents of an etherpad installation).
Installation
pip install etherdump
Usage
mkdir mydump
cd myddump
etherdump init
The settings are placed in a file called etherpad_info.json (by default) and can be specified with the --padinfo option on subcommands. Make sure that this file is not exposed publically, as it contains the APIKEY to the etherpad server.
etherdump list
You should see a list of pads.
Cookbook
Using etherdump to maintain a static HTML archive of pads
# Mis à jour les pads changé
etherdump pull --padinfo ..path/to/etherpad_info.json
# Récrée les pages index...
etherdump index --padinfo ../path/to/etherpad_info.json p/*.meta.json > index.html
Using etherdump to migrate from one etherpad instance to another
mkdir instance1 && cd instance1
etherdump init
etherdump pull
(cd ..)
mkdir instance2 && cd instance2
etherdump init
etherdump pushhtml --basepath ../instance1 ../instance1/p/*.meta.json
NB: sethtml/pushhtml seems to only work on the server itself, ie using API url such as localhost:9001.
NB: This command indescriminantly clobbers pads in instance2 with the HTML of the dumped versions from instance1.
This technique can be used to "reset" the database of a pad by recreating pads (without their history or editor info/colors) in a fresh database.
Magicwords
Following the suggestions of sister project/friendly fork etherpump, the magic word mechanism has been expanded (from the inital single hard coded __NOPUBLISH__ value) to and generalized to allow a the use of text markers in the source text to control various options, including options for use in preprocessing and translation of markdown using pandoc.
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
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 etherdump-1.0.2.tar.gz.
File metadata
- Download URL: etherdump-1.0.2.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
052e4a77f38826c79bb73e1bc3c7736bb0d61ba38757b037282f134be1238568
|
|
| MD5 |
11d432d60dd34416f0ef6f1a5703a8c1
|
|
| BLAKE2b-256 |
a84c3501614d415647ff219e5f17d3e0872bcc8fd4230252fcc4ce48da7d7353
|
File details
Details for the file etherdump-1.0.2-py3-none-any.whl.
File metadata
- Download URL: etherdump-1.0.2-py3-none-any.whl
- Upload date:
- Size: 53.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42b0bc3a4c8cd44d88392ffc5ecac81bad0734216f6e2c30f13de4a28b34c69a
|
|
| MD5 |
aaced89727e4917a09cbb579245c3765
|
|
| BLAKE2b-256 |
bae8fc73f808767c3777c87b3c1c5d839262b9d57437eb1d210fa8c9d1e00990
|