1 | initial version |
See the related Ask Sage question: https://ask.sagemath.org/question/33954/can-i-create-a-sage-file-and-import-it-as-a-python-module/.
See also this template for packaging Sage code as a Python module: https://github.com/sagemath/sage_sample/.
See also these slides by Marc Masdeu about packaging Sage code as a Python module and distributing it: https://www.slideshare.net/mmasdeu/distributing-sage-python-code-the-right-way.