Embedded Python Real-Time FrameWork : API  Build 20250616.1
 All Classes Namespaces Files Functions Variables Pages
Constants.py File Reference

Namespaces

 pyRT.native.Constants
 Hard-coded constant values and useful utilities used across all native embedded modules.
 

Functions

def pyRT.native.Constants.BuildNum
 Return Build Number and Date. More...
 
def pyRT.native.Constants.EOM
 Return string-ified YYYYMMDD of last day of last month. More...
 
def pyRT.native.Constants.EOMunx
 Return Unix Time() of last day of last month. More...
 
def pyRT.native.Constants.EOY
 Return string-ified YYYYMMDD of last day of last year. More...
 
def pyRT.native.Constants.EOYunx
 Return Unix Time() of last day of last year. More...
 
def pyRT.native.Constants.GetObjectCounts
 Return dict of { className : count, ... More...
 
def pyRT.native.Constants.GetObjectCounts_OBSOLETE
 
def pyRT.native.Constants.gmt_offset
 Return number of seconds betwween GMT and localtime. More...
 
def pyRT.native.Constants.InRange
 Check if b is between a and c. More...
 
def pyRT.native.Constants.IsPY3
 Return True if Python 3.x. More...
 
def pyRT.native.Constants.IsWin
 Return True if Windows. More...
 
def pyRT.native.Constants.Nanos2Unix
 Convert Nanos since Epoch to Unix Time (double) More...
 
def pyRT.native.Constants.PyNumObjects
 Return Number of Python Objects. More...
 
def pyRT.native.Constants.PyRefCount
 Return object reference count. More...
 
def pyRT.native.Constants.PyTrashSize
 Collect Garbage; Return number of objects collected. More...
 
def pyRT.native.Constants.Unix2Millis
 Convert Unix Time (double) to Millis since Epoch. More...
 
def pyRT.native.Constants.Unix2Nanos
 Convert Unix Time (double) to Nanos since Epoch. More...
 
def pyRT.native.Constants.WithinRange
 Bounds check : Ensure b is between a and c. More...
 

Variables

string pyRT.native.Constants._CLEAR = '\033[H\033[m\033[J'
 ANSI Clear. More...
 
string pyRT.native.Constants._HOME = '"\033[1;1H\033[K'
 ANSI Move Cursor to ( 1,1 ) More...
 
float pyRT.native.Constants._MIKE = 1000000.0
 Microsecond. More...
 
float pyRT.native.Constants._MILLI = 1000.0
 Millisecond. More...
 
tuple pyRT.native.Constants._MILLISPERDAY = int( _MILLI * _SECPERDAY )
 Millis per day. More...
 
tuple pyRT.native.Constants._MILLISPERHOUR = int( _MILLI * 3600 )
 Millis per hour. More...
 
float pyRT.native.Constants._NANO = 1000000000.0
 Nanosecond. More...
 
float pyRT.native.Constants._NANOd = 1.0
 1.0 / _NANO More...
 
int pyRT.native.Constants._SECPERDAY = 86400
 Seconds per day. More...
 
int pyRT.native.Constants._SECPERYEAR = _SECPERDAY*365
 Seconds per year. More...
 
string pyRT.native.Constants._UNDEF = 'undefined'
 Undefined Value. More...