Skip to main content

azrideus-vault

Small helpers for an Obsidian vault.

  • Document(path=...): one markdown file. read() returns the YAML frontmatter (integer strings become ints), write({...}) merges keys into it (None deletes a key) and keeps the body, tags() collects #tags from the body and the tags frontmatter key.
  • VaultGit(root, token="", identity="azrideus-vault"): async pull() (merge only; aborts on conflict), commit(), push() and is_dirty(). A GitHub token is passed through a credential helper and never shows up in URLs or output.
  • Vault(root=...): worlds are folders under worlds/ with a WORLD_SETTINGS.md; scan(world_dir) sorts #player/#npc/#monster/#unit/#item documents into a VaultScan (shared monsters come from 0.0 - Documents/).
  • VaultSync.pull_and_reload(git, worlds, vault): pull, then reload every world, reporting broken ones instead of stopping.
  • VaultError: every error raised; .message is safe to show to a user.
from pathlib import Path
from azrideus_vault import Document

doc = Document(path=Path("vault/Notes/Bob.md"))
doc.write({"hp": 12})
print(doc.read()["hp"], doc.tags())

Tests: python -m unittest discover -s tests -t . -v

Metadata

Release files for azrideus-vault 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azrideus-vault 0.1.0
File Size Uploaded Provenance Actions
azrideus_vault-0.1.0.tar.gz 9.7 kB Without provenance Details for azrideus_vault-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for azrideus-vault 0.1.0
File Interpreter ABI Platform Actions
azrideus_vault-0.1.0-py3-none-any.whl Python 3 none any Details for azrideus_vault-0.1.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / azrideus_vault-0.1.0.tar.gz

Download URL azrideus_vault-0.1.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a5e192fb5cde4312a32d812c0f283fc6586d7a43dcfb280cd633b8d1ee432fae
BLAKE2b-256 checksum
How to use checksums
efc8bb8ba0bb57ce8b1827be87c38218340834a456ac5b863e5af3ffe211af37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / azrideus_vault-0.1.0-py3-none-any.whl

Download URL azrideus_vault-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0eb555a011f51ce8a2e585e7bc1d19a69d117e66687e9c0dacdc039d0f8944d
BLAKE2b-256 checksum
How to use checksums
a68a632eaba3b08ff77e793f9c10264d68a71de9d7856ef65c88bc2ac9366f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for azrideus-vault 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.

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