Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 518
Oberyn Martell Avatar asked Sep 05 '25 03:09

Oberyn Martell


1 Answers

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:

  • The official package guide: Python Packaging User Guide
  • Open Sourcing a Python Project the Right Way
  • Cookiecutter: Project Templates Made Easy
like image 156
lord63. j Avatar answered Sep 07 '25 17:09

lord63. j