Date-of-Birth parser
Age (in years) beyond which we don’t recognize
decorator checking if sender is allowed to process feature.
checks if sender property is set on message
Returns: | function or bool |
---|
Takes a persons name as a single string and returns surname, first names, and alias:
>>> clean_names("smith john")
(u'Smith', u'John', u'jsmith')
Also can be passed an optional argument surname_first=False:
>>> clean_names("john ADAM smith", surname_first=False)
(u'Smith', u'John Adam', u'jasmith')
Return date of first Monday before givendate
get the median of a list of numeric values
A decorator that catches exceptions and sends the text of the exception to the sender by responding to the message object. It can be used on the rapidsms.app.App methods that are passed (self, message)