parthsql package

Submodules

parthsql.main module

parthsql.main.main()[source]

The main loop for the commandline parser.

parthsql.main.usage()[source]

How to use the commandline parser.

parthsql.parthsql module

class parthsql.parthsql.Database(name, tables)[source]

Bases: object

delete_table(tablename)[source]

Deletes a table from the database.

get_table(tablename)[source]

Returns the table whoose name is tablename.

load_contents()[source]

Loads contents of the tables into database.

print_contents()[source]
store_contents()[source]

Stores the contents of tables into file.

class parthsql.parthsql.Table(name, columns, rows)[source]

Bases: object

A table representaion for database.

delete_row(key, value)[source]

Deletes the rows where key = value.

get_column(column)[source]

Return the values having of column.

load_contents()[source]

Loads contents of Database from a filename database.csv.

make_output_row(row)[source]
print_contents()[source]

Prints Contents of Table.

put_row(row)[source]

Adds a row to the table.

put_row_raw(row)[source]

Adds a raw raw by first making it to a proper row.

store_contents()[source]

Stores contests of the Database into a filename database.csv.

parthsql.parthsql.make_row(columns, values)[source]

Module contents