Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5192 > unrolled thread

Re: lightweight way to create new projects from templates

Started byChris Angelico <rosuav@gmail.com>
First post2011-05-12 14:00 +1000
Last post2011-05-12 14:00 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: lightweight way to create new projects from templates Chris Angelico <rosuav@gmail.com> - 2011-05-12 14:00 +1000

#5192 — Re: lightweight way to create new projects from templates

FromChris Angelico <rosuav@gmail.com>
Date2011-05-12 14:00 +1000
SubjectRe: lightweight way to create new projects from templates
Message-ID<mailman.1442.1305172811.9059.python-list@python.org>
On Thu, May 12, 2011 at 4:34 AM, Jonathan Hartley <tartley@tartley.com> wrote:
> Hi.
>
> I'm looking for a quick way to create new Python projects from a template.
>
> I understand that 'Paste' (http://pythonpaste.org/) is one way to do this,
> but I find Paste very intimidating because of all the functionality it
> includes. I'm not even sure whether 'creating new projects from templates'
> is the central goal of Paste, or just an incidental benefit that it provides
> while performing some other task.
>
> As a lightweight alternative, I'm creating a project called 'Genesis'.
> Functionally, it will be little more than a 'cp -r' followed by a few search
> and replace operations.

Depending on how simple your goals are, it might be possible to do it
with a simple shell or Python script that creates multiple files
and/or directories. That way, your template is all contained in a
single file, which is convenient for distribution and such; and the
scripting facilities can handle the search and replace operations.

Chris Angelico

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web