GH Templates CLI

raw JSON →
0.1.39 verified Sat May 09 auth: no python

A CLI tool that wraps GitHub templates into executable scripts. Version 0.1.39, requires Python >=3.7. Note: The package name is platform-specific (linux-x64-musl); it is designed for static linking on musl-based systems.

pip install gh-templates-linux-x64-musl
error ImportError: No module named 'gh_templates_linux_x64_musl'
cause The package is not installed or the import path is wrong.
fix
Ensure you installed the correct package: pip install gh-templates-linux-x64-musl. Then import using the underscored name: from gh_templates_linux_x64_musl import GhTemplatesCli
error ModuleNotFoundError: No module named 'gh_templates_linux_x64_musl'
cause Attempting to import on a non-musl Linux or non-x86_64 architecture. The package ships only a musl-based wheel for x86_64.
fix
Use a Docker container with musl-based Linux (e.g., Alpine) or install from source if available.
error AttributeError: 'GhTemplatesCli' object has no attribute 'run'
cause The method `run` was removed in version 0.1.40. You are using a newer version that only supports `execute`.
fix
Update your code to use cli.execute('list') instead of cli.run('list').
gotcha Package name includes platform and architecture (linux-x64-musl). If you are on a different OS or arch (e.g., macOS, Windows, ARM), this package will not install. Use the generic 'gh-templates' package instead if available, or install via a different wheel.
fix Check if a more general package exists on PyPI (e.g., gh-templates). If not, use Docker or a compatible environment.
deprecated The method `run()` is deprecated in favor of `execute()` since version 0.1.30. Old code using `cli.run()` will work but emits a deprecation warning.
fix Replace `cli.run('list')` with `cli.execute('list')`.

Initialize with GitHub token and list templates.

from gh_templates_linux_x64_musl import GhTemplatesCli
cli = GhTemplatesCli(token="<your-github-token>")
result = cli.run("list")