'Initialize a new `Limit`.
@param verb: HTTP verb (POST, PUT, etc.)
@param uri: Human-readable URI
@param regex: Regular expression format for this limit
@param value: Integer number of requests which can be made
@param unit: Unit of measure for the value parameter'

def __init__(self, verb, uri, regex, value, unit):

    self.verb = verb
    self.uri = uri
    self.regex = regex
    self.value = int(value)
    self.unit = unit
    self.unit_string = self.display_unit().lower()
    self.remaining = int(value)
    if (value <= 0):
        raise ValueError('Limit    value    must    be    >    0')
    self.last_request = None
    self.next_request = None
    self.water_level = 0
    self.capacity = self.unit
    self.request_value = (float(self.capacity) / float(self.value))
    msg = (_('Only    %(value)s    %(verb)s    request(s)    can    be    made    to    %(uri)s    every    %(unit_string)s.') % {'value': self.value, 'verb': self.verb, 'uri': self.uri, 'unit_string': self.unit_string})
    self.error_message = msg
