Skip to content
Back to top
View this page

# ValueBlob

class dsviper.ValueBlob(initial_value=None)

  Bases: `object`

  A class used to represent a value of type blob. Seamless with bytes, bytearray and base64_string.

  Or use Value.create(Type.BLOB [, initial_value]).

  static base64_decode(base64_string: str) → ValueBlob

    Return a blob from a base64 encoded string.

  base64_encode() → str

    Return the base64 encoded string representation of this blob.

  static cast(value: Value) → ValueBlob

    Return a blob or raise.

  copy() → ValueBlob

    Return a deep copy.

  description(*, namespace: NameSpace | None = None) → str

    Return the description.

  embed(name: str) → str

    Return the c++ representation of a blob.

  encoded() → bytes

    Return a Python bytes.

  hash() → int

    Return the hash value.

  representation() → str

    Return the representation.

  sha1() → str

    Return the hexdigest (SHA1).

  size() → int

    Return the size.

  type() → Type

    Return the type.

  type_code() → str

    Return the type code.