The horizon.utils.csvbase Module

class horizon.utils.csvbase.BaseCsvResponse(request, template, context, content_type, **kwargs)[source]

Bases: horizon.utils.csvbase.CsvDataMixin, django.http.response.HttpResponse

Base CSV response class. Provides handling of CSV data.

BaseCsvResponse.get_row_data()[source]
class horizon.utils.csvbase.BaseCsvStreamingResponse(request, template, context, content_type, **kwargs)[source]

Bases: horizon.utils.csvbase.CsvDataMixin, django.http.response.StreamingHttpResponse

Base CSV Streaming class. Provides streaming response for CSV data.

BaseCsvStreamingResponse.buffer()[source]
BaseCsvStreamingResponse.get_content()[source]
BaseCsvStreamingResponse.get_row_data()[source]
class horizon.utils.csvbase.CsvDataMixin[source]

Bases: object

CSV data Mixin - provides handling for CSV data.

horizon.utils.csvbase.columns

A list of CSV column definitions. If omitted - no column titles will be shown in the result file. Optional.

CsvDataMixin.encode(value)[source]
CsvDataMixin.write_csv_header()[source]
CsvDataMixin.write_csv_row(args)[source]

Previous topic

The horizon.utils Module

Next topic

The horizon.management Module

This Page