yfpy.utils.jsonify_data_to_file

jsonify_data_to_file(data, data_file)[source]

Function to serialize a YahooFantasyObject to JSON and output it to a file.

Parameters:
  • data (object) – YahooFantasyObject to be serialized to JSON and output to a file.

  • data_file (IO[str]) –

Return type:

None