wiswa-typing

Shared types for the Wiswa ecosystem.

View on GitHub

wiswa-typing

Python versions PyPI - Version GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) CodeQL QA Dependabot Documentation Status mypy uv Ruff Downloads Stargazers pre-commit Prettier

@Tatsh Buy Me A Coffee Libera.Chat Mastodon Follow Patreon

Shared TypedDict definitions and type aliases used across the Wiswa ecosystem (wiswa, wiswa-vcs, wiswa-mcp).

This package ships types only — there is no runtime code. It exists so consumers can strongly type Wiswa settings and remote-host payload shapes without pulling in the full Wiswa generator, the GitHub/GitLab API clients, or the MCP server.

Installation

pip install wiswa-typing

Usage

The Wiswa settings shape and related pyproject/package.json types live at the package level:

from wiswa.typing import Settings, PyProject, PackageJSON

For GitHub and GitLab payload types, import the submodule and use a short alias. Names inside those modules are not prefixed (for example gh.Repository, gl.Config):

from wiswa.typing import github as gh
from wiswa.typing import gitlab as gl

def annotate(repo: gh.Repository, config: gl.Config) -> None: ...