def format(pc):
    player_txt = ('[ShinyMUD Version "%s"]\n' % VERSION +
                  _pack_player(pc) +
                  '\n[Inv Items]\n' + json.dumps(_pack_items(pc.inventory)) +
                  '\n[End Inv Items]\n'
                 )
                 
    return player_txt
Serialize a player character (and their inventory) into ShinyFormat.
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/lib/sport_plugins/formatters/player_write_shiny_format.py/format