{"id":16391323,"url":"https://github.com/gjjvdburg/new.py","last_synced_at":"2026-06-13T04:30:17.487Z","repository":{"id":73568566,"uuid":"71817616","full_name":"GjjvdBurg/new.py","owner":"GjjvdBurg","description":"A simple utility to create files and folders based on templates","archived":false,"fork":false,"pushed_at":"2020-10-12T21:13:48.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-03T17:47:45.051Z","etag":null,"topics":["python-script","template","template-project"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GjjvdBurg.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":"2016-10-24T18:13:48.000Z","updated_at":"2021-08-31T21:52:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f01b772-96fc-479b-a42e-5dab1db764e0","html_url":"https://github.com/GjjvdBurg/new.py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GjjvdBurg%2Fnew.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GjjvdBurg%2Fnew.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GjjvdBurg%2Fnew.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GjjvdBurg%2Fnew.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GjjvdBurg","download_url":"https://codeload.github.com/GjjvdBurg/new.py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240232970,"owners_count":19769104,"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-script","template","template-project"],"created_at":"2024-10-11T04:45:45.260Z","updated_at":"2026-06-13T04:30:17.427Z","avatar_url":"https://github.com/GjjvdBurg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"new.py\n======\n\n*A simple utility to create files and folders based on templates*\n\nWith this program you can define template files, for instance a Python script \nwith some documentation or functions already defined, or a directory for a \nLaTeX document. See the example directory for an example of a Python script.\n\nUsage\n-----\n\nUsage is quite simple, type::\n\n    ./new.py\n\non the command line to get an overview of the current templates, and their \nnames. Templates should be stored in the home directory, in the directory \n`${HOME}/.newpy_templates`. If you have for instance a Python script with the \nname `python.py` as template name, you will get::\n\n    ./new.py\n    Available targets:\n    Name\t  \tFile / Dir\n    ----\t  \t----------\n    python\t-\u003e\tpython.py\n\nWith the target name `python`, you can use the following command to copy the \ntemplate to the current directory::\n\n    ./new.py python\n\nThis will create a new file in the current directory named `python.py`. \nFinally, there is the option of naming the file in the current directory \ndifferently::\n\n    ./new.py python myscript.py\n\nThis will create the file `myscript.py`, as a copy of the `python.py` \ntemplate.\n\n\nInstallation\n------------\n\nSimply download the script, create a template or two, and start using it! For \nadded usability, you can create an alias in your `~/.bashrc` file, for \ninstance:\n\n    alias new=\"/path/to/new.py\"\n\nThen you can simply type `new \u003ctarget\u003e` in your terminal.\n\nBash Completion\n---------------\n\nIf desired bash completion can be configured for the ``new`` command. This \nassumes that you have aliased ``new.py`` using the description above. To \nenable bash completion, add the following to your ``~/.bashrc`` file:\n\n    source /path/to/new.bash-completion\n\nThis should enable tab-completion of new.py targets.\n\nAfterwords\n----------\n\nAuthor: G.J.J. van den Burg\n\nDate: 2016-10-24\n\nLicense: GPLv3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjjvdburg%2Fnew.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgjjvdburg%2Fnew.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjjvdburg%2Fnew.py/lists"}