Classes | Functions | Variables
pyclearsilver::guid Namespace Reference

Classes

class  CircularSet
 A simple circular set to ensure we don't duplicate GUIDs in the same millisecond. More...

Functions

def decode64Char
def encode64Char
def extract_ip
def extract_random
def extract_time
def generate
 Public module functions.
def main
def pack64
def test
 TESTING OF GUID CLASS ###.
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
 global module variables
tuple queue = CircularSet()
int QUEUE_SIZE = 100
tuple rand = random.Random()

Function Documentation

Definition at line 107 of file guid.py.

Definition at line 91 of file guid.py.

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.

Extracts the random bits from the guid (returns the bits in decimal)

Definition at line 232 of file guid.py.

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)

Public module functions.

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.

TESTING OF GUID CLASS ###.

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

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.

Definition at line 135 of file guid.py.

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

Definition at line 88 of file guid.py.

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.

global module variables

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.



pyclearsilver
Author(s): Scott Hassan/hassan@willowgarage.com
autogenerated on Sat Dec 28 2013 17:47:30