{"id":14065008,"url":"https://github.com/h3x4g0ns/py-templater","last_synced_at":"2025-07-27T02:05:16.936Z","repository":{"id":49846490,"uuid":"514492097","full_name":"h3x4g0ns/py-templater","owner":"h3x4g0ns","description":"utility tool that generates code files from user-defined templates","archived":false,"fork":false,"pushed_at":"2022-08-25T01:10:13.000Z","size":29,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T08:18:25.416Z","etag":null,"topics":["pip","python","templater"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h3x4g0ns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-16T05:57:45.000Z","updated_at":"2024-02-19T01:51:13.000Z","dependencies_parsed_at":"2022-08-30T15:53:15.512Z","dependency_job_id":null,"html_url":"https://github.com/h3x4g0ns/py-templater","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h3x4g0ns/py-templater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3x4g0ns%2Fpy-templater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3x4g0ns%2Fpy-templater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3x4g0ns%2Fpy-templater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3x4g0ns%2Fpy-templater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h3x4g0ns","download_url":"https://codeload.github.com/h3x4g0ns/py-templater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3x4g0ns%2Fpy-templater/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267284914,"owners_count":24064081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pip","python","templater"],"created_at":"2024-08-13T07:04:14.133Z","updated_at":"2025-07-27T02:05:16.880Z","avatar_url":"https://github.com/h3x4g0ns.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# py-templater\n\n![pypi build](https://img.shields.io/github/workflow/status/h3x4g0ns/py-templater/pypi-build)\n[![PyPI version](https://badge.fury.io/py/py-templater.svg)](https://badge.fury.io/py/py-templater)\n\n## About this Project\n\nPython utility tool that generates code files from user-defined templates. Save files/directories and user-defined templates, and load them on the fly whenever you need access to your boilerplate templates.\n\n## Getting Started\n\n### Prerequisites\n\nYou will need `typer` and `rich` in order to use `py-templater`. These should install as dependencies by default.\n\n```sh\npip install py-templater typer rich\n```\n\n\u003e ⚠️ Warning\u003cbr\u003e\n\u003e `py-templater` only works on Linux and macOS machines\n\n### Usage\n\n```sh\ntemplater --help\n                                                                                                                   \n  Usage: templater [OPTIONS] COMMAND [ARGS]...                                                                      \n                                                                                                                   \nOptions\n  --install-completion          Install completion for the current shell.                                        \n  --show-completion             Show completion for the current shell, to copy it or customize the installation.\n  --help                        Show this message and exit.\n\nCommands\n  add       Add a new template\n  gen       Generates file(s) from templates\n  list      List current current templates\n  rm        Delete a template\n  view      View template head\n```\n\n#### `add`\n\nAllows user to define a file/directory as new template\n\n```sh\ntemplater add --help\n\n  Usage: templater add [OPTIONS] NAME PATH\n\nArguments\n  name      template name\n  path      path to original file/directory\n```\n\n#### `gen`\n\nGenerates any user defined templates in the current working directory\n\n```sh\ntemplater gen --help\n\n  Usage: templater gen [OPTIONS] NAME\n\nArguments\n  name      template name\n```\n\n#### `list`\n\nLists all user-defined templates and corresponding metadata\n\n```sh\ntemplater list --help\n  \n  Usage: templater list [OPTIONS]\n```\n\n#### `rm`\n\nAllows user to delete any user-defined templates\n\n```sh\ntemplater rm --help\n\n  Usage: templater rm [OPTIONS]\n```\n\n#### `view`\n\nViews head snippet of template\n\n```sh\ntemplater view --help\n\n  Usage: templater view [OPTIONS] NAME [N]\n\nArguments\n  name      template name\n  n         (default: 5) numbers of lines to show\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3x4g0ns%2Fpy-templater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh3x4g0ns%2Fpy-templater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3x4g0ns%2Fpy-templater/lists"}