ValueUUId¶
- class dsviper.ValueUUId(initial_value=None)¶
Bases:
objectA class used to represent a value of type uuid.
Use the static factory method create(…) or try_parse(…).
Or use Value.create(Type.UUID [, initial_value]).
- INVALID = 00000000-0000-0000-0000-000000000000¶
- static create(uuid_string: str | ValueUUId | None = None) ValueUUId¶
Return an uuid from uuid_string if specified otherwise a generated one.
- encoded() str¶
Return a Python str.
- hash() int¶
Return the hash value.
- is_valid() bool¶
Return True if the value is not INVALID.
- representation() str¶
Return the representation.
- type_code() str¶
Return the type code.