gh-templates-linux-x86-musl
raw JSON → 0.1.39 verified Sat May 09 auth: no python
GitHub Templates CLI tool for managing and using GitHub repository templates. Current version 0.1.39, requires Python >=3.7. Sporadic releases.
pip install gh-templates-linux-x86-musl Common errors
error ModuleNotFoundError: No module named 'gh-templates-linux-x86-musl' ↓
cause Import uses hyphens instead of underscores.
fix
Change import to 'from gh_templates import GHTemplates'.
error AttributeError: 'GHTemplates' object has no attribute 'get_template' ↓
cause Method renamed in newer versions.
fix
Use 'fetch_template' instead of 'get_template'.
Warnings
breaking The package name on PyPI contains 'linux-x86-musl' but the import uses underscores: 'gh_templates'. Do not use the hyphenated name in imports. ↓
fix Use 'from gh_templates import ...' instead of 'from gh-templates-linux-x86-musl import ...'.
deprecated The method 'get_template' has been deprecated in favor of 'fetch_template'. ↓
fix Replace client.get_template(name) with client.fetch_template(name).
Imports
- GHTemplates wrong
from gh_templates_linux_x86_musl import GHTemplatescorrectfrom gh_templates import GHTemplates - TemplateManager wrong
from gh_templates.cli import TemplateManagercorrectfrom gh_templates import TemplateManager
Quickstart
from gh_templates import GHTemplates
client = GHTemplates()
# List available templates
templates = client.list_templates()
print(templates)