pyre.tabular

Package Contents

pyre.tabular.field
pyre.tabular.derivation
pyre.tabular.literal
class pyre.tabular.measure

Bases: pyre.records.measure

Base class for the measures in this package

_primary = False
primary(self)

Mark this measure as a primary key

pyre.tabular.bool
pyre.tabular.decimal
pyre.tabular.float
pyre.tabular.inet
pyre.tabular.int
pyre.tabular.identity
pyre.tabular.str
pyre.tabular.date
pyre.tabular.dimensional
pyre.tabular.time
pyre.tabular.uri
pyre.tabular.list
pyre.tabular.set
pyre.tabular.tuple
class pyre.tabular.sheet(name, **kwds)

Bases: pyre.records.record

The base class for pyre worksheets, collections of record instances

pyre_name
pyre_data
pyre_immutable(self, data)

Iterate over {data} extracting records that are compatible with my layout and use them to populate my data set

pyre_mutable(self, data)

Iterate over {data} extracting records that are compatible with my layout and use them to populate my data set

pyre_append(self, row)

Add the given {row} to my data set

pyre_new(self)

Create a new blank mutable record instance and add it to my data set

__len__(self)

Compute the number of records in my dataset

__iter__(self)

Build an iterator over my data set

__getitem__(self, address)

Retrieve the portion of the sheet that corresponds to {address}

class pyre.tabular.inferred

Bases: pyre.tabular.Dimension.Dimension

A chart axis whose tick marks are the unique values found in a given sheet column

class axis(chart, dimension, **kwds)

Bases: dict

__get__(self, chart, cls)
class pyre.tabular.interval(interval, subdivisions, **kwds)

Bases: pyre.tabular.Dimension.Dimension

A chart axis whose tick marks are intervals of (a subset) of the range of the values in a given sheet column.

class axis(chart, dimension, **kwds)
__len__(self)
__iter__(self)
__getitem__(self, bin)
__get__(self, chart, cls)
class pyre.tabular.chart(sheet, **kwds)

The base class for imposing coördinate systems on sheets

A chart contains the specification of a number of dimensions that enable the categorization and analysis of the facts in a sheet. For example, given a sales table that contains transaction information that includes date, sku and amount, a chart with these three dimensions would simplify answering questions such as “compute the total sales of a given sku in a given time period”.

Charts are used by pivot tables as a means of imposing structure on the data and precomputing data slices. See {pyre.tabular.Pivot} and the {pyre.tabular.Dimension} subclasses for more details.

pyre_sheets
pyre_dimensions
pyre_localDimensions
pyre_filter(self, **kwds)

Create an iterable over those facts that statisfy the criteria specified in {kwds}, which is assumed to be a value specification for each dimension that is to be used to restrict the data set

pyre.tabular.record
pyre.tabular.csv
class pyre.tabular.tabulator

Bases: pyre.records.templater

Metaclass that builds sheets

class pyre.tabular.surveyor

Bases: pyre.patterns.AttributeClassifier.AttributeClassifier

Inspect charts and harvest their dimensions