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.

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.

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

Bases: object

CSV data Mixin - provides handling for CSV data.

columns

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

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

Previous topic

The horizon.utils.secret_key Module

Next topic

The horizon.utils.lazy_encoder Module

Project Source

This Page