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.
  • 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.1

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.1
File Size Uploaded Provenance Actions
azrideus_vault-0.1.1.tar.gz 9.6 kB Without provenance Details for azrideus_vault-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 17.7 kB

Release files / azrideus_vault-0.1.1.tar.gz

Download URL azrideus_vault-0.1.1.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
af4e686ff34faf4c12f12241852bb08c6fafce1842f07e55d025a38c7459fce7
BLAKE2b-256 checksum
How to use checksums
865030a40cc4edcab92d5fd2c35128e0a2dc62a3d625e10b6ab77c4dd57b8379
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.1-py3-none-any.whl

Download URL azrideus_vault-0.1.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71f5eef218d97e2ae599fc7fc4c1b55cef4d29ff0804eb8fe9cfb818cebb900d
BLAKE2b-256 checksum
How to use checksums
c06f3124fd98167f5370a556728a9c8d7e5ed746ff4164acbb89c0c471a85c14
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.1

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