Next / Previous / Contents / TCC Help System / NM Tech homepage

7. Imports

This module relies on several Python library modules. First, we'll need all the standard trig functions and other math from the math module.

sidereal.py
#================================================================
# Imports
#----------------------------------------------------------------

from math import *

Next, we'll need the Python regular expression module.

sidereal.py
import re

Python's standard datetime module, available since Python version 2.3, contains a full set of function for manipulating dates and times. There are references to this module's datetime, date, and time objects throughout this module. Refer to the online documentation for datetime.

sidereal.py
import datetime