(client)
Prints a json representation of all available topics, suitable for the
    `kafka-reassign-partitions.sh `--topics-to-move-json-file` file.
Prints a json representation of all available topics, suitable for the
    `kafka-reassign-partitions.sh `--topics-to-move-json-file` file.
Prints a json representation of all available topics suitable for the kafka - reassign - partitions . sh -- topics - to - move - json - file file .
def print_topics(client):
    """
    Prints a json representation of all available topics, suitable for the
    `kafka-reassign-partitions.sh `--topics-to-move-json-file` file.
    """
    topics_dict = {
        'topics': [{'topic': topic} for topic in client.topics],
        'version': 1,
    }
    print(json.dumps(topics_dict, indent=4))
def print_topics ( client ) : topics_dict = { 'topics' : [ { 'topic' : topic } for topic in client . topics ] , 'version' : 1 , } print ( json . dumps ( topics_dict , indent = 4 ) )