StashClientProtocol
Mixin for version-related methods.
Functions
version
Examples:
Get current version:
latestversion
Examples:
Check for updates:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Operations for checking Stash version information.
StashClientProtocol
Mixin for version-related methods.
version() -> Version
| Type | Description |
|---|---|
Version | Version object containing version, hash, and build_time |
version = await client.version()
print(f"Stash version: {version.version}")
print(f"Git hash: {version.hash}")
print(f"Build time: {version.build_time}")
latestversion() -> LatestVersion
| Type | Description |
|---|---|
LatestVersion | LatestVersion object containing version, shorthash, release_date, and url |
current = await client.version()
latest = await client.latestversion()
if current.version != latest.version:
print(f"Update available: {latest.version}")
print(f"Release date: {latest.release_date}")
print(f"Download: {latest.url}")