CSV Model

class acscsv.acscsv.AcsCSV(delim, options_keypath)[source]

Base class for all delimited list objects. Basic delimited list utility functions

asGeoJSON(x)[source]

Get results as GeoJSON representation.

asString(l, emptyField)[source]

Returns a delimited list object as a properly delimited string.

buildListString(l)[source]

Generic list builder returns a string representation of list

cleanField(f)[source]

Clean fields of new lines and delmiter.

file_reader(options_filename=None, json_string=None)[source]

Read arbitrary input file(s) or standard Python str. When passing file_reader() a JSON string, assign it to the json_string arg. Yields a tuple of (line number, record).

get_source_list(x)[source]

Wrapper for the core activity parsing function.

keyPath(d)[source]

Get a generic key path specified at run time. Consider using jq instead?

splitId(x, index=1)[source]

Generic functions for splitting id parts

string_hook(record_string, mode_dummy)[source]

Returns a file-like StringIO object built from the activity record in record_string. This is ultimately passed down to the FileInput.readline() method. The mode_dummy parameter is only included so the signature matches other hooks.

Previous topic

Command Line Application

Next topic

Twitter Model

This Page