Skip to main content

azrideus-vault

Small helpers for an Obsidian vault.

  • VaultDocument(path=...): one markdown file. read_frontmatter() returns the YAML frontmatter (integer strings become ints), read_frontmatter_value(key, default) returns one key of it, write_frontmatter({...}) merges keys into it (None deletes a key) and keeps the body, read_tags() collects #tags from the body and the tags frontmatter key, read_public_and_secret_body() splits the body into (public, secret) around the first --- line.
  • 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.
  • VaultEntity: pydantic mixin with a doc: VaultDocument field; read_safe(attr) returns the attribute, or None (logged) when the document is missing or broken.
  • VaultError: every error raised; .message is safe to show to a user.
from pathlib import Path
from azrideus_vault import VaultDocument

doc = VaultDocument(path=Path("vault/Notes/Bob.md"))
doc.write_frontmatter({"hp": 12})
print(doc.read_frontmatter()["hp"], doc.read_tags())

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

Metadata

Release files for azrideus-vault 0.1.3

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.3
File Size Uploaded Provenance Actions
azrideus_vault-0.1.3.tar.gz 10.6 kB Without provenance Details for azrideus_vault-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 19.6 kB

Release files / azrideus_vault-0.1.3.tar.gz

Download URL azrideus_vault-0.1.3.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e1e8fa29e0e0933610d58fa9b9ff520409d24a355e4b4b3fe1faa26bb0e25d8b
BLAKE2b-256 checksum
How to use checksums
7a29054567fe9cb7287a4ad67fc49c58e1fc599b0c0d6867cae4bc7d38cfb0c6
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.3-py3-none-any.whl

Download URL azrideus_vault-0.1.3-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3663ed6cc1a38a0d9097c270a2b908d24f6b2239dc36ef7b473676922a837275
BLAKE2b-256 checksum
How to use checksums
df23bc8d496b043d472c8a3846573c64a23a220b96e42fd501eb743a019f1f6f
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.3

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