Skip to main content

evennia-archive

Archives Evennia accounts and characters into a separate database so you can rebuild your world without losing your players.

Status

Working, not yet used by a real game. All four calls are built and tested — objects and accounts can be archived, found, restored and deleted, with identity surviving and dbrefs deliberately not. References between objects are dropped rather than rebuilt, and nothing has been tested on PostgreSQL. See docs/progress.md for what exists and what proves it.

The problem it solves

Evennia identity is the ObjectDB primary key. Rebuild your world and those keys are re-issued from scratch, so a character's rows cannot simply be restored — the references inside them point at objects that no longer exist, including references buried inside pickled attribute values.

That makes "rebuild the world from source" and "keep the players" hard to have at the same time.

The approach

A second Evennia database, on the same schema, migrated alongside the game and never run as a game — no rooms, no mobs, nothing instantiated. Account and character rows are copied into it as they change. Because both ends share a schema, attribute values move as opaque bytes and are never parsed.

What replaces that work is reference translation: every stored reference is resolved to a stable identifier on the way in, and back to whatever primary key the object receives on the way out.

Is this for you?

Probably, if you rebuild your world from source — YAML, batch scripts, a world builder — and want player characters to survive the rebuild.

Probably not, if you are looking for database backups. This is not pg_dump; it holds a live, queryable record of accounts and characters, and it is not a substitute for backing up your database.

Install

pip install evennia-archive

Editable install for development against a checkout:

git clone https://github.com/FullCircleMUD/evennia-archive.git
cd evennia-archive
python -m venv venv
# Activate the venv (platform-specific)
pip install evennia
pip install -e .
python runtests.py

Installing the package is not enough on its own — a consumer declares the app, a second database alias and a router in their own settings. See docs/archive-settings.md for what to add, including the one entry that will silently break a game that already has database routers.

Learn more

Licence

BSD 3-Clause. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evennia_archive-0.1.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

evennia_archive-0.1.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file evennia_archive-0.1.0.tar.gz.

File metadata

  • Download URL: evennia_archive-0.1.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for evennia_archive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 74efe2b406b037877d87e905ad04c47d6d7908d8a43bd5da7b0f27d830f23034
MD5 0c6a883cd23fda045f71b494f14855be
BLAKE2b-256 b7f814bca2bb0551340d48d84bc45ecb649b8d63f0eece8081db5489fbb642b4

See more details on using hashes here.

File details

Details for the file evennia_archive-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for evennia_archive-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b456a4e98479fa92c3650ad13ef22f0c91c760eb702aec9c9f0c1eab0d02a026
MD5 5b59ac8f8bc208ff69b80afc39f6390a
BLAKE2b-256 4eda1e205df5ded514e0891a6b02412498b860545c836af7a05dad944179adab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page