> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jakan.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Version Operations

> Operations for checking Stash version information.

Operations for checking Stash version information.

Bases: `StashClientProtocol`

Mixin for version-related methods.

## Functions

### version

```python theme={null}
version() -> Version
```

Get the current Stash version information.

Returns:

| Type      | Description                                              |
| --------- | -------------------------------------------------------- |
| `Version` | Version object containing version, hash, and build\_time |

Examples:

Get current version:

```python theme={null}
version = await client.version()
print(f"Stash version: {version.version}")
print(f"Git hash: {version.hash}")
print(f"Build time: {version.build_time}")
```

### latestversion

```python theme={null}
latestversion() -> LatestVersion
```

Get the latest available Stash version from GitHub.

Returns:

| Type            | Description                                                                |
| --------------- | -------------------------------------------------------------------------- |
| `LatestVersion` | LatestVersion object containing version, shorthash, release\_date, and url |

Examples:

Check for updates:

```python theme={null}
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}")
```
