Skip to main content

A simple archiving server for the `Hoardy-Web` Web Extension browser add-on.

Project description

What is hoardy-web-sas?

hoardy-web-sas is a very simple archiving server for the Hoardy-Web Web Extension browser add-on (also on GitHub).

I.e. this is the thing you run and then paste the URL of into the Server URL setting of the Hoardy-Web add-on.

This is not the most feature-rich thing for doing that, hoardy-web serve (also on GitHub) is much more powerful. But, hoardy-web serve is not at all simple and it depends on quite a lot of things. Meanwhile, this hoardy-web-sas thing is less than 300 lines of pure Python that only uses the Python's standard library and nothing else. You could be running it already.

Why does hoardy-web-sas exists?

This was made for easy Quickstart (also there) that also does reliable archiving.

Quickstart

Pre-installation

Installation

  • On a Windows system with unconfigured PATH, install with:

    pip install hoardy-web-sas
    

    and run as

    python3 -m hoardy_web_sas --help
    
  • On a conventional POSIX system or on a Windows system with configured PATH environment variable, install it with:

    pip install hoardy-web-sas
    

    and run as

    hoardy-web-sas --help
    
  • Alternatively, run without installing:

    ./hoardy-web-sas.py --help
    
  • Alternatively, on a system with Nix package manager

    nix-env -i -f ./default.nix
    hoardy-web-sas --help
    

    Though, in this case, you'll probably want to do the first command from the parent directory, to install everything all at once.

Usage

usage: hoardy-web-sas [-h] [--version] [--host HOST] [--port PORT] [-t ROOT] [--compress | --no-compress] [--default-bucket NAME] [--ignore-buckets] [--no-print]

A simple archiving server for the `Hoardy-Web` Web Extension browser add-on: listen on given `--host` and `--port` via `HTTP`, dump each `POST`ed `WRR` dump to `<--archive-to>/<bucket>/<year>/<month>/<day>/<epoch>_<number>.wrr`.

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --host HOST           listen on what host/IP; default: `127.0.0.1`
  --port PORT           listen on what port; default: `3210`
  -t ROOT, --to ROOT, --archive-to ROOT, --root ROOT
                        path to dump data into; default: `pwebarc-dump`
  --compress            compress new archivals before dumping them to disk; default
  --no-compress, --uncompressed
                        dump new archivals to disk without compression
  --default-bucket NAME, --default-profile NAME
                        default bucket to use when no `profile` query parameter is supplied by the extension; default: `default`
  --ignore-buckets, --ignore-profiles
                        ignore `profile` query parameter supplied by the extension and use the value of `--default-bucket` instead
  --no-print, --no-print-cbors
                        don't print parsed representations of newly archived CBORs to stdout even if `cbor2` module is available

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

hoardy_web_sas-1.9.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

hoardy_web_sas-1.9.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file hoardy_web_sas-1.9.0.tar.gz.

File metadata

  • Download URL: hoardy_web_sas-1.9.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hoardy_web_sas-1.9.0.tar.gz
Algorithm Hash digest
SHA256 d56f6694722ab7a8be907fb9d94b0f4fd8cf9b702f5ab11f8a69ce4b40ea617c
MD5 77d354314896f56f126f86aef664bd86
BLAKE2b-256 6f67fe77667f46bac4e4105f7f2731db35bd9d6135c64d96c86269bcc06d0450

See more details on using hashes here.

File details

Details for the file hoardy_web_sas-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: hoardy_web_sas-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hoardy_web_sas-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31eee3ed4e11c65189969e21ac689448e6ffc11592955838f3c6d8ccd30c6c52
MD5 7b33a6affecc8856bdfa65ca6b48dfc9
BLAKE2b-256 dd0b3b6d7e8a580d6a0026738b870650e1502d8908b97256cf73a5c2727e3ed1

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