crossbar.network._util

Attributes

Functions

_qn(obj)

alternative_username(username)

extract_member_oid(→ uuid.UUID)

Extract the XBR network member ID from the WAMP session authid (eg member_oid==72de3e0c-ca62-452f-8f09-2d3d30d1b511 from authid=="member-72de3e0c-ca62-452f-8f09-2d3d30d1b511"

hl(text[, bold, color])

hlcontract(oid)

hlid(oid)

hltype(obj)

hluserid(oid)

hlval(val[, color])

maybe_from_env(value)

Module Contents

_ENVPAT[source]
_ENVPAT_STR = '^\\$\\{(.+)\\}$'[source]
_qn(obj)[source]
alternative_username(username)[source]
extract_member_oid(details: autobahn.wamp.CallDetails) uuid.UUID[source]

Extract the XBR network member ID from the WAMP session authid (eg member_oid==72de3e0c-ca62-452f-8f09-2d3d30d1b511 from authid=="member-72de3e0c-ca62-452f-8f09-2d3d30d1b511"

Parameters:

details – Call details.

Returns:

Extracted XBR network member ID.

hl(text, bold=False, color='yellow')[source]
hlcontract(oid)[source]
hlid(oid)[source]
hltype(obj)[source]
hluserid(oid)[source]
hlval(val, color='white')[source]
maybe_from_env(value)[source]