Selection Overview¶
Here you will find an overview of psv’s objects and methods, but not the objects attributes which are generated dynamically by psv.
Api¶
Selections¶
- class
psv.core.objects.selections.Selection(selection, api_mother)¶
addcolumn(columnname, columndata='', add_to_columns=True)¶Adds a column
Parameters:
- columnname (
str) – Name of the column to add.- columndata – The default value of the new column.
- add_to_columns (
bool) – Determines whether this column should be added to the internal tracker.
all_output()¶Sets all rows to output
columns¶
disable(selectionfirstarg_data=None, **kwargs)¶
enable(selectionfirstarg_data=None, **kwargs)¶
fast_add(sel)¶
find(selectionfirstarg_data=None, **kwargs)¶
find_all(selectionfirstarg_data=None, **kwargs)¶
flip(selectionfirstarg_data=None, **kwargs)¶
flip_output()¶
grab(*args)¶Grabs specified columns from every row
Returns: tupleof the result.
lenoutput()¶
merge(sel, safe_merge=True)¶
no_output()¶Sets all rows to not output
nonoutputtedrows¶
output(loc=None, columns=None, quote_all=None, encoding='utf-8')¶
outputs(columns=None, quote_all=None, encoding='utf-8')¶Outputs to str
outputtedrows¶
rows¶
select(selectionfirstarg_data=None, **kwargs)¶Method for selecting part of the csv document. generates a function based of the parameters given.
single_find(selectionfirstarg_data=None, **kwargs)¶Find a single row based off search criteria given. will raise error if returns more than one result
tabulate(limit=100, format='grid', only_ascii=True, columns=None, text_limit=None, remove_newline=True)¶
unique(*args)¶Grabs specified columns from every row
Returns: setof the result.