code: def from_value(cls, value, size=None, fmt='Q', **kwargs):
          '''
          Factory method
  
          For format characters see: https://docs.python.org/2/library/struct.html
          '''
          bl = cls(**kwargs)  # size is 0 by default
          bl.fromvalue(value=value, size=size, fmt=fmt)
          return bf from_value(cls, value, size=None, fmt='Q', **kwargs):
          '''
          Factory method
  
          For format characters see: https://docs.python.org/2/library/struct.html
          '''
          bl = cls(**kwargs)  # size is 0 by default
          bl.fromvalue(value=value, size=size, fmt=fmt)
          return bl
docs: Factory method
  
          For format characters see: https://docs.python.org/2/library/struct.html