Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the standard pattern for releasing a python module

I am new to python and have been playing around with it for a while. I have written two python modules: gapbuffer and gapbuffertests. The question I have is - to release this publically for use do I just release the gapbuffer.py module file standalone or is there a Java .jar equivalent?

Thanks, Aly

like image 954
Aly Avatar asked Nov 25 '25 14:11

Aly


2 Answers

Setuptools is the standard packaging solution for Python. With setuptools, you can create eggs, which are the near-equivalent of jars. If your package is open source, you can also have it listed on PyPI (setuptools includes support for that) so that it can be installed with a command like pip install gapbuffer.

like image 114
Fred Foo Avatar answered Nov 27 '25 05:11

Fred Foo


This short guide (The Hitchhiker's Guide to Packaging) might be helpful as well.

like image 43
nikow Avatar answered Nov 27 '25 05:11

nikow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!