pyclearsilver::guid Namespace Reference

Classes

class  CircularSet

Functions

def decode64Char
def encode64Char
def extract_ip
def extract_random
def extract_time
def generate
def main
def pack64
def test
def unpack64
def usage

Variables

tuple c = encode64Char(i)
string hexip = ''
string InvalidGUID = "Invalid GUID"
string ip = ''
tuple ipaddr64 = pack64(ipaddr)
tuple ipaddrStr = socket.inet_aton(ip)
tuple j = decode64Char(c)
string lastguid = ''
tuple lock = threading.RLock()
 MAX_RANDOM = sys.maxint
tuple queue = CircularSet()
int QUEUE_SIZE = 100
tuple rand = random.Random()

Function Documentation

def pyclearsilver::guid::decode64Char (   c  ) 

Definition at line 107 of file guid.py.

def pyclearsilver::guid::encode64Char (   i  ) 

Definition at line 91 of file guid.py.

def pyclearsilver::guid::extract_ip (   guid  ) 
Extracts the ip portion out of the guid and returns it
   as a string like 10.10.10.10

Definition at line 217 of file guid.py.

def pyclearsilver::guid::extract_random (   guid  ) 
Extracts the random bits from the guid (returns the bits in decimal)

Definition at line 232 of file guid.py.

def pyclearsilver::guid::extract_time (   guid  ) 
Extracts the time portion out of the guid and returns the 
   number of seconds since the epoch as a float

Definition at line 208 of file guid.py.

def pyclearsilver::guid::generate (   time_t = None  ) 
Generates a new guid

Definition at line 178 of file guid.py.

def pyclearsilver::guid::main (   argv,
  stdout,
  environ 
)

Definition at line 248 of file guid.py.

def pyclearsilver::guid::pack64 (   i,
  bytes = 6 
)

Definition at line 97 of file guid.py.

def pyclearsilver::guid::test (  ) 

Definition at line 242 of file guid.py.

def pyclearsilver::guid::unpack64 (   s,
  bytes = 6 
)

Definition at line 117 of file guid.py.

def pyclearsilver::guid::usage (   progname  ) 

Definition at line 245 of file guid.py.


Variable Documentation

tuple pyclearsilver::guid::c = encode64Char(i)

Definition at line 130 of file guid.py.

Definition at line 87 of file guid.py.

string pyclearsilver::guid::InvalidGUID = "Invalid GUID"

Definition at line 206 of file guid.py.

Definition at line 78 of file guid.py.

tuple pyclearsilver::guid::ipaddr64 = pack64(ipaddr)

Definition at line 135 of file guid.py.

tuple pyclearsilver::guid::ipaddrStr = socket.inet_aton(ip)

Definition at line 88 of file guid.py.

tuple pyclearsilver::guid::j = decode64Char(c)

Definition at line 131 of file guid.py.

Definition at line 80 of file guid.py.

tuple pyclearsilver::guid::lock = threading.RLock()

Definition at line 79 of file guid.py.

Definition at line 76 of file guid.py.

Definition at line 172 of file guid.py.

Definition at line 70 of file guid.py.

tuple pyclearsilver::guid::rand = random.Random()

Definition at line 77 of file guid.py.

 All Classes Namespaces Files Functions Variables Properties


pyclearsilver
Author(s): Scott Hassan/hassan@willowgarage.com
autogenerated on Fri Jan 11 09:14:53 2013