def create_stream(name, **header):
    """Create a stream for publishing messages.

    All keyword arguments will be used to form the header.
    """
    assert isinstance(name, basestring), name
    return CreateStream(parent=None, name=name, group=False, header=header)