Documentation for stdnet 0.8.2. For development docs, go here.
The structure fields are the networked equivalent of data-structures such as sets, hash-tables, lists and so forth. They are associated with an instance of a StdModel or, for redis backend only, with a StdModel class.
default encoder: stdnet.utils.encoders.NumericDefault.
Methods
The following api methods are available for a ListField via the List structure:
default encoder: stdnet.utils.encoders.NumericDefault.
Methods
The following api methods are available for a Set and SetField:
Backends: redis
default encoder: stdnet.utils.encoders.NumericDefault.
Methods
The following api methods are available for a Zset and SetField with SetField.ordered attribute set to True:
Backends: redis
default field encoder: stdnet.utils.encoders.Default.
default value encoder: stdnet.utils.encoders.NumericDefault.
Methods
The following api methods are available for a HashTable and HashField:
Backends: redis
default field encoder: stdnet.utils.encoders.DateTimeConverter.
default value encoder: stdnet.utils.encoders.Json.
A timeseries is an ordered associative container where entries are ordered with respect times and each entry is associated with a time. There are two types of timeseries in stdnet: the stdnet.odm.TS which accepts any type of entry and the stdnet.apps.columnts.ColumnTS, a specialized stdnet.odm.TS for multivariate numeric timeseries.
The TS has a simple api:
from datetime import date
from stdnet import odm
session = ...
with session.begin() as t:
ts = t.add(odm.TS())
ts[date(2013,1,1)] = "New year's day!"
Methods
The following api methods are available for a TS and TimeSeriesField: