{"id":20623021,"url":"https://github.com/dluman/springform","last_synced_at":"2026-04-16T16:40:19.789Z","repository":{"id":65119529,"uuid":"582175652","full_name":"dluman/springform","owner":"dluman","description":"A simple Python file templating system.","archived":false,"fork":false,"pushed_at":"2024-05-19T21:53:27.000Z","size":36,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-18T05:36:06.196Z","etag":null,"topics":["python-template-engine","python-templates","templates","templating","templating-engine","templating-tool"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/springform/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dluman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-26T01:24:50.000Z","updated_at":"2024-04-24T20:02:44.000Z","dependencies_parsed_at":"2024-05-19T22:38:28.025Z","dependency_job_id":null,"html_url":"https://github.com/dluman/springform","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"8ae46129ca08c6039969cc02db5507628819c1d4"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dluman%2Fspringform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dluman%2Fspringform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dluman%2Fspringform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dluman%2Fspringform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dluman","download_url":"https://codeload.github.com/dluman/springform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242332579,"owners_count":20110345,"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","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":["python-template-engine","python-templates","templates","templating","templating-engine","templating-tool"],"created_at":"2024-11-16T12:25:31.371Z","updated_at":"2026-04-16T16:40:19.760Z","avatar_url":"https://github.com/dluman.png","language":"Python","readme":"# springform\n\n[![PyPI version](https://img.shields.io/pypi/v/springform)](https://pypi.org/project/springform/)\n\nA simple templating system for Python class files.\n\n## Installation\n\nFind this tool on `PyPI`: `pip install springform`\n\n## Usage\n\n\u003e **Note**: The following applies to the version currently on `PyPI`. Code in the `main` branch\n\u003e now takes a different approach. Documentation to follow.\n\nGiven the following template file (let's call it `Item.py`):\n\n```python\nimport time\nfrom time import sleep\n\nclass Item:\n\n    copy = False\n\n    def __init__(self):\n        pass\n\n    def __str__(self):\n        return f\"Copy status: {self.copy}\"\n```\n\nand a reasonable driver (aw heck, let's call it `main.py`):\n\n```python\nfrom springform import Form\n\ndef __dumb(self):\n    print(\"It really is.\")\n\ndef main():\n    template = Form(mod = \"Item\", cls = \"Item\")\n    template.remove(\"time\")\n    template.add_base(object)\n    template.make(\"ItemCopy\", copy = True, __dumb = __dumb)\n\nif __name__ == \"__main__\":\n    main()\n```\n\nThe module should make a new file in the current working directory: `ItemCopy.py`\nwhose `__str__` magic will report to you that it's a _copy_ (the above example changes\nthe value of the `copy` instance variable).\n\nAs of a couple of minor versions ago (of course I forget which), you may not _remove_\nthings from the template by name _and_ add inhertiances (well, as of `0.6.0` at least).\n\n## Notes\n\nThe module can handle single or multiple inheritance as of `0.2.0` -- find it everywhere\nreputable Python modules are listed (i.e. only `PyPI`, rly).\n\nObligatory \"it's under construction\" statement.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdluman%2Fspringform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdluman%2Fspringform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdluman%2Fspringform/lists"}