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

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.

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.3.tar.gz (50.4 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.3-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for etherdump-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9261e40b4025bee33efdc088e8a7d713e227ce96ab2fee9501b7d798580875f6
MD5 ce2702cc1dbd764517cd9c1c07b5eabb
BLAKE2b-256 3e281e1cedb184790ffca63ab9b18443866b55d3b3d4690f68827595114b8c83

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for etherdump-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ebe405887af4121cb5f8d95c7779780eb5059ab240c5278972b27bbe710c1e7
MD5 2a398daa86bbced251292dce39ebf21e
BLAKE2b-256 bee6b3721ad235d27e605de3c8572d31186721c38cd14c43dde0368cdd2233d6

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