Skip to main content

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

etherdump-1.0.1.tar.gz (50.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etherdump-1.0.1-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

Details for the file etherdump-1.0.1.tar.gz.

File metadata

  • Download URL: etherdump-1.0.1.tar.gz
  • Upload date:
  • Size: 50.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.26

File hashes

Hashes for etherdump-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e5588cf77d0b5451f97d699067879b3581b8f92931c79d0ea4756e41d9d7289f
MD5 56db45359684396e8caee0e788d0949e
BLAKE2b-256 c64046c97631c2fa2f2e18b415c58a51295ba38ff2378e11ddf6aca76c5b4447

See more details on using hashes here.

File details

Details for the file etherdump-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: etherdump-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 53.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.26

File hashes

Hashes for etherdump-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 036879d3fba7326e6c27497f9870ac9ff0091145b6fb8a7ec502b19f35381aa3
MD5 a01616c425b6686bc5a76d7beecc9a07
BLAKE2b-256 621a8cc1bf5f318b8bd3385f149fc5b628103d864dead3c023511c0a2c3ff3b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page