libpysal.io.open

libpysal.io.open

Methods

__init__([dataPath, mode, dataFormat])

cast(key, typ)

Cast key as typ.

check()

Prints the contents of the registry.

close()

Subclasses should clean themselves up and then call this method.

flush()

get(n)

Seeks the file to n and returns n.

getType(dataPath, mode[, dataFormat])

Parse the dataPath and return the data type.

open(*args, **kwargs)

Alias for FileIO().

read([n])

Read at most n objects, less if read hits EOF.

seek(n)

Seek the FileObj to the beginning of the n'th record.

tell()

Return ID (or offset) of next object.

truncate([size])

Should be implemented by subclasses and redefine this doc string.

write(obj)

Must be implemented by subclasses that support 'w' subclasses Should increment .pos.

Attributes

by_row

ids

rIds

alias of FileIO