Skip to main content

A highly opinionated way to generate and maintain projects with Jsonnet.

Project description

wiswa

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

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

A highly opinionated way to generate projects with Jsonnet.

Installation

We recommend a global install so wiswa and wiswa-mcp are on your PATH from any working directory:

uv tool install wiswa

Or with pipx:

pipx install wiswa

If you prefer not to install globally, add Wiswa as a development dependency of your project—for example uv add --group dev wiswa, or list wiswa under dependency-groups.dev in pyproject.toml and install inside the project virtual environment with your usual workflow.

Usage

demo

Add -d to show debug logs.

Usage: wiswa [OPTIONS] [FILE]

  Entry point for the Wiswa CLI.

Options:
  --cache-time INTEGER            Cache expiry time in seconds.  [default:
                                  600]
  -d, --debug                     Enable debug output.
  -J, --jpath TEXT                Add a directory to the Jsonnet search path
                                  (only used when evaluating settings).
  --no-cache                      Disable HTTP response caching.
  -o, --output-dir DIRECTORY      Output directory for generated files.
  -q, --quiet                     Suppress the progress spinner.
  --skip-jsonnet                  Skip project.jsonnet manifests; settings merge still runs.
  --skip-postprocess              Skip post-processing steps.
  --skip-remote                   Skip configuring the remote Git host (GitHub or GitLab).
  --skip-static                   Skip copying static files.
  --skip-templates                Skip Jinja2 template evaluation.
  --skip-yarn                     Skip Yarn download.
  -h, --help                      Show this message and exit.

Remote API tokens (GitHub and GitLab)

When Wiswa configures the remote (wiswa without --skip-remote), it calls the GitHub or GitLab API using a personal access token. Tokens are read from the environment when supported, or from the system keyring. Service names include the repository hostname so different hosts (for example GitHub.com, GitHub Enterprise, or self-managed GitLab) keep separate credentials.

Keyring entries use the usual service name and username fields (for example as shown by secret-tool on Linux or Keychain Access on macOS). The username is normally your OS login name (whoami).

GitHub

  1. Service wiswa-github:<hostname>, username your OS user. The hostname is taken from repository_uri (for example github.com for https://github.com/org/repo).

Example (hostname github.com, OS user alice):

python -m keyring set 'wiswa-github:github.com' alice
# paste the token at the prompt

GitLab

  1. Environment: GITLAB_TOKEN (if set, used first).
  2. Preferred: service wiswa-gitlab:<hostname>, username your OS user (for example wiswa-gitlab:gitlab.com).
  3. Same service with username equal to the hostname is also checked (for older or alternate storage patterns).

Example for gitlab.com:

export GITLAB_TOKEN='glpat-...'   # optional; overrides keyring

python -m keyring set 'wiswa-gitlab:gitlab.com' "$(whoami)"

MCP Server

Wiswa includes an MCP server (wiswa-mcp) that exposes settings discovery tools for AI assistants.

Claude Code

claude mcp add wiswa-mcp -- wiswa-mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "wiswa-mcp": {
      "command": "wiswa-mcp"
    }
  }
}

GitHub Copilot CLI

Add to .github/copilot/mcp.json:

{
  "mcpServers": {
    "wiswa-mcp": {
      "command": "wiswa-mcp"
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wiswa-0.2.3.tar.gz (155.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wiswa-0.2.3-py3-none-any.whl (141.9 kB view details)

Uploaded Python 3

File details

Details for the file wiswa-0.2.3.tar.gz.

File metadata

  • Download URL: wiswa-0.2.3.tar.gz
  • Upload date:
  • Size: 155.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wiswa-0.2.3.tar.gz
Algorithm Hash digest
SHA256 b8626b9bbf81bc82331a14bd38720f86c51b1f5fdf46d52297fc6619d04ea04b
MD5 318fd606c9e0f5696b14d998d04dd87b
BLAKE2b-256 3b89332a63b9806867837dc54ed5244f4fc785a6dc2b51b9fc8f129c937a4a79

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiswa-0.2.3.tar.gz:

Publisher: publish.yml on Tatsh/wiswa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wiswa-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: wiswa-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 141.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wiswa-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7610124e57293549991db78feaca005a460262b00fbfdee92806420e6b07ebd9
MD5 5e04db801a5a81da4243c2329769b8d6
BLAKE2b-256 b84db3edf8dac83a31c2ab56635e01e599fad1a067dcf7c4c90a11f059d3f1b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiswa-0.2.3-py3-none-any.whl:

Publisher: publish.yml on Tatsh/wiswa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page