Skip to content

MarvinGravert/PythonPackageTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Package Template

This is used as an Template for python package structure. It will be extended further down the line. For the moment it functions as a testbed for learning about python packaging

What has been learned

Hereafter, the lessons learned will be talked about. A pretty good baseline are this write down and this stackoverflow. In theory also this python packaging guide, though I found a bit confusing as the provided examples are not matching up with the code in the guide. The overall documentation/explanation of the setuptool can be found here.

Package namespaces

To allow access like import package.subpackage.module{:.language-python}. One needs a structure such as shown in this repository. The package is a folder in the top level repo (same level as the setup.py). One level further down the subpackages are stored which individually each have an init.py.

Now it suffices to place find_packages in the setup.py to find all the subpackages and modules.

Usage

testImportRunner 

This will write messages into the console

About

Package Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages