nkululeko icon indicating copy to clipboard operation
nkululeko copied to clipboard

Add multi file structure

Open felixbur opened this issue 1 year ago • 0 comments

Makes sense to hide functions from package users that would like to use this as a software library

  • Switch to multi file structure
  • Select which part of the code should be public
  • Easier to refactor code later
spmath/__init__.py
spmath/core/__init__.py  # empty file
spmath/core/api.py       # was spmath.py before
  • spmath/__init__.py contains
from spmath.core.api import from_db
from spmath.core.api import to_db

felixbur avatar Oct 05 '23 08:10 felixbur