module

headfake.output

Classes
  • Output() Base output class.
  • FileOutput(options) Output generated mock data for a single fieldset to the file specified in the options (output_file)
  • CsvFileOutput Output generated mock data for a single fieldset to a CSV file specified in the options (output_file)
  • JsonFileOutput Output generated data for a single fieldset to a JSON text file specified in the options (output_file)
  • StdoutOutput Output generated data for a single fieldset to the console/STDOUT as CSV data
abstract class

headfake.output.Output()

Base output class.

Methods
  • write(dataframe) Main method used to write the fieldset to the output. :param dataframe: :return:
abstract method
write(dataframe)

Main method used to write the fieldset to the output. :param dataframe: :return:

abstract class

headfake.output.FileOutput(options)

Bases
headfake.output.Output

Output generated mock data for a single fieldset to the file specified in the options (output_file)

Methods
  • write(dataframe) Main method used to write the fieldset to the output. :param dataframe: :return:
abstract method
write(dataframe)

Main method used to write the fieldset to the output. :param dataframe: :return:

class

headfake.output.CsvFileOutput(options)

Bases
headfake.output.Output

Output generated mock data for a single fieldset to a CSV file specified in the options (output_file)

Methods
  • write(dataframe) Main method used to write the fieldset to the output. :param dataframe: :return:
method
write(dataframe)

Main method used to write the fieldset to the output. :param dataframe: :return:

class

headfake.output.JsonFileOutput(options)

Bases
headfake.output.Output

Output generated data for a single fieldset to a JSON text file specified in the options (output_file)

Methods
  • write(dataframe) Main method used to write the fieldset to the output. :param dataframe: :return:
method
write(dataframe)

Main method used to write the fieldset to the output. :param dataframe: :return:

class

headfake.output.StdoutOutput(options)

Bases
headfake.output.FileOutput headfake.output.Output

Output generated data for a single fieldset to the console/STDOUT as CSV data

Methods
  • write(dataframe) Main method used to write the fieldset to the output. :param dataframe: :return:
method
write(dataframe)

Main method used to write the fieldset to the output. :param dataframe: :return: