Search code examples
pythonrubygemspipcpanpypi

python tool to create skeleton for PyPI package?


I want to write my first python package that I can upload to PyPi. My question is is there any tool to initialize the required skeleton for the PyPi package ? So far I have found instructions here http://peterdowns.com/posts/first-time-with-pypi.html but it requires me to create all the files manually. I come from a Perl background and in Perl I could use following to create skeleton for cpan module.

module-starter --module=Foo::Bar --author="Foo Bar" [email protected]

In ruby I could just do

 bundle gem foo::bar

I am surprised that there isn't anything similar in python or may be just I couldn't find it.

Thanks


Solution

  • There is one: cookiecutter-pypackage

    By the way, I think you should do it by hand at first so you can have a better understanding about how to creat a python package. When you're familiar with it, you can use tools to make this task automatically.

    Further reading: