azure-servicebus/azure/servicebus/common/mixins.py
def from_connection_string(cls, conn_str, name=None, **kwargs):
        """Create a Client from a Service Bus connection string.

        :param conn_str: The connection string.
        :type conn_str: str
        :param name: The name of the entity, if the 'EntityName' property is
         not included in the connection string.
        """
        address, policy, key, entity = parse_conn_str(conn_str)
        entity = name or entity
        address = build_uri(address, entity)
        name = address.split('/')[-1]
        return cls(address, name, shared_access_key_name=policy, shared_access_key_value=key, **kwargs)
def from_connection_string(cls, conn_str, name=None, **kwargs):
        address, policy, key, entity = parse_conn_str(conn_str)
        entity = name or entity
        address = build_uri(address, entity)
        name = address.split('/')[-1]
        return cls(address, name, shared_access_key_name=policy, shared_access_key_value=key, **kwargs)
def from_connection_string ( cls , conn_str , name = None , * * kwargs ) : address , policy , key , entity = parse_conn_str ( conn_str ) entity = name or entity address = build_uri ( address , entity ) name = address . split ( '/' ) [ - 1 ] return cls ( address , name , shared_access_key_name = policy , shared_access_key_value = key , * * kwargs )
Create a Client from a Service Bus connection string.

        :param conn_str: The connection string.
        :type conn_str: str
        :param name: The name of the entity, if the 'EntityName' property is
         not included in the connection string.
Create a Client from a Service Bus connection string .