Uid

class app.portfolio.models.uid.Uid[source]

Bases: object

Uid(namespace: str = ‘DEFAULT’, id: Hashable = <factory>)

Inheritance diagram of Uid

Inheritance Diagram for Uid

Methods

__init__([namespace, id])

as_tuple()

Attributes

namespace

id

id_as_str

Returns the ID as a string, suitable for display.

__init__(namespace='DEFAULT', id=<factory>)
Parameters:
Return type:

None

as_tuple()[source]
id: Hashable
property id_as_str: str

Returns the ID as a string, suitable for display.

namespace: str