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 (Nonedeletes a key) and keeps the body,read_tags()collects#tagsfrom the body and thetagsfrontmatter key,read_public_and_secret_body()splits the body into (public, secret) around the first---line.VaultGit(root, token="", identity="azrideus-vault"): asyncpull()(merge only; aborts on conflict),commit(),push()andis_dirty(). A GitHub token is passed through a credential helper and never shows up in URLs or output.Vault(root=...): worlds are folders underworlds/with aWORLD_SETTINGS.md;scan(world_dir)sorts#player/#npc/#monster/#unit/#itemdocuments into aVaultScan(shared monsters come from0.0 - Documents/).VaultSync.pull_and_reload(git, worlds, vault): pull, then reload every world, reporting broken ones instead of stopping.VaultError: every error raised;.messageis 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.2
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 |
|---|---|---|---|---|
| azrideus_vault-0.1.2.tar.gz | 9.9 kB | Without provenance | Details for azrideus_vault-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azrideus_vault-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for azrideus_vault-0.1.2-py3-none-any.whl |
Total release size: 18.3 kB
Release files / azrideus_vault-0.1.2.tar.gz
| Download URL | azrideus_vault-0.1.2.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f867f60f3dff754b11f6ec7c0510fbd6f60f32ba85930188930c0def1ea26310
|
|
BLAKE2b-256 checksum How to use checksums |
ad3e28f1a2863d3c0ec605ae958295df1b53e2d394043efcf1c8db54653222c5
|
| 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.2-py3-none-any.whl
| Download URL | azrideus_vault-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a8f28c04f9445645dd4458bbef1f3dc2e5d36f1b5036b71325619d0d5ab867c
|
|
BLAKE2b-256 checksum How to use checksums |
fb47b6cdcb0584a7d7bd8f24ff898f3de5093982c0753084aba35512461a301d
|
| 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.2
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.