How do I split a Python module into PyPi packages?

I wrote a Python module that I would like to make available to others. Right now, this is one big module nested in subfolders:

  • ghost
    • Util
    • ext
    • Colour

I think it’s better to break these subfolders into separate packages. The tipfy project does this . However, external and color modules are usage dependent.

What is the best way to organize and free these modules? Do I separate them and call them wraith.util, wraith.ext and wraith.color as tipfy? Do I turn it on when people set ext or color?

+5
source share
1 answer

wraith.ext .. , . , - wrait.util wraith.color?

, install_requires setup.py, setuptools .. . namespace_packages, , vrait .

+1

All Articles