I'm not sure where to post this, but is it possible to run Sage without a GUI/notebook interface?
The idea is to be able to run Sage solely in the terminal so that I can detach from the Tmux session and have Sage compute for hours. With the notebook interface it ends up stopping after a few hours, and it's not as easy to run multiple instances in parallel.
If not, is there some Sage module for Python? I've tried importing the components that are built into Sage but they do not have all the functions that are available when actually using Sage. For example, using NetworkX allows me to have DiGraphs but not the specific functions I need that Sage offers.
Sage was, in fact, originally a CLI-only program! Every version of Sage has a command line interface as part of it, except in the following two cases:
It doesn't sound like you are in those situations, though.
If you download a binary or build one from scratch, it includes the CLI. The SageMathCloud also includes command line access. If you are on Mac or Windows, the commenter is right that ask.sagemath.org should be searchable for how exactly to access it. On the Mac app it's fairly straightforward - you should be able to use the menu item on the upper right to ask for a Terminal session. Good luck!