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
- docs/INDEX.md — the design wiki
- docs/design.md — the whole design, with a box above everything not yet settled
- docs/archive-settings.md — what a consumer declares in their settings
- docs/interoperability.md — this library against its siblings
- CLAUDE.md — context for LLM agents working in this repo
Licence
BSD 3-Clause. See LICENSE.
Metadata
Release files for evennia-archive 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evennia_archive-0.1.0.tar.gz | 21.3 kB | Without provenance | Details for evennia_archive-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evennia_archive-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for evennia_archive-0.1.0-py3-none-any.whl |
Total release size: 42.5 kB
Release files / evennia_archive-0.1.0.tar.gz
| Download URL | evennia_archive-0.1.0.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74efe2b406b037877d87e905ad04c47d6d7908d8a43bd5da7b0f27d830f23034
|
|
BLAKE2b-256 checksum How to use checksums |
b7f814bca2bb0551340d48d84bc45ecb649b8d63f0eece8081db5489fbb642b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / evennia_archive-0.1.0-py3-none-any.whl
| Download URL | evennia_archive-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b456a4e98479fa92c3650ad13ef22f0c91c760eb702aec9c9f0c1eab0d02a026
|
|
BLAKE2b-256 checksum How to use checksums |
4eda1e205df5ded514e0891a6b02412498b860545c836af7a05dad944179adab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for evennia-archive 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.