def create_topic(self, topic):
        """Create a topic."""
        nsq.assert_valid_topic_name(topic)
        return self._request('POST', '/topic/create', fields={'topic': topic})
def create_topic ( self , topic ) : nsq . assert_valid_topic_name ( topic ) return self . _request ( 'POST' , '/topic/create' , fields = { 'topic' : topic } )
Create a topic.