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
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'.
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).

Initialize the client and list GitHub repository templates.

from gh_templates import GHTemplates

client = GHTemplates()
# List available templates
templates = client.list_templates()
print(templates)