Alternatives to Python PasteScript's paster create?

老子叫甜甜 提交于 2019-12-03 09:19:43

问题


It seems like PasteScript's paster create functionality is just about the only widely used framework for building/generating a project skeleton within python. I'm wondering if there are any alternatives in the python world that folks use?

Update

I want to comment on my experience since originally asking this question. The accepted answer still stands - there are a number of templating/skeleton packages out there one could use. However, from the other answers given, I did start to use mr.bob and have checked out cookiecutter. Both are generic (as in not bound to a particular framework), easy to use and relatively current and active projects - which were part of the criteria I was looking for but did not detail in my original question.


回答1:


It depends on your framework. For Django applications, you use django-admin.py startproject mysite. For developing GUI applications on Linux, there's Ubuntu's Quickly, which also creates a skeleton project. For Paste projects, you use paster.

There's not really a general purpose tool for what you're doing though. It depends on the framework, and usually, those scripts come with particular frameworks. And for what it's worth, PyCharm (an IDE) includes some project templates for things like Google App Engine too.




回答2:


I'm rather partial to cookiecutter. It works for Python 2.7, 3.3, 3.4, and PyPy on Linux, Mac OS X, and Windows. It's fully documented, actively maintained, well tested, and really easy to use. Here is my blog entry on it. It even has its own Stack Overflow tag: https://stackoverflow.com/questions/tagged/cookiecutter




回答3:


"Skeleton" looks very promising. http://pypi.python.org/pypi/skeleton/




回答4:


As I'm in the process of releasing mr.bob 0.1a6, it is mostly feature complete as PasteScript. It is a general purpose directory skeleton generator that shouldn't require Python knowledge to write new skeletons.

Documentation: http://mrbob.readthedocs.org/en/latest/




回答5:


There is also the Python Packager that I just ran across while searching for these types of tools. It appears to have a fairly narrow use case, but it might nice for those looking for help pulling OSS license files.



来源:https://stackoverflow.com/questions/9356190/alternatives-to-python-pastescripts-paster-create

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!