Classes | Functions | Variables
googlevoice::util Namespace Reference

Classes

class  AttrDict
class  DownloadError
class  Folder
class  ForwardingError
class  JSONError
class  LoginError
class  Message
class  ParsingError
class  Phone
class  ValidationError
class  XMLParser

Functions

def is_sha1
def load_and_validate
def print_
def validate_response

Variables

 input = raw_input
tuple sha1_re = re.compile(r'^[a-fA-F0-9]{40}$')

Function Documentation

Returns ``True`` if the string is a SHA1 hash

Definition at line 46 of file util.py.

Loads JSON data from http response then validates

Definition at line 61 of file util.py.

def googlevoice.util.print_ (   values,
  kwargs 
)
Implementation of Python3's print function

Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:

file: a file-like object (stream); defaults to the current sys.stdout.
sep:  string inserted between values, default a space.
end:  string appended after the last value, default a newline.

Definition at line 30 of file util.py.

Validates that the JSON response is A-OK

Definition at line 52 of file util.py.


Variable Documentation

Definition at line 24 of file util.py.

tuple googlevoice::util::sha1_re = re.compile(r'^[a-fA-F0-9]{40}$')

Definition at line 28 of file util.py.



continuous_ops_alerts
Author(s): Eitan Marder-Eppstein
autogenerated on Fri Dec 6 2013 21:23:50