"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cloudkitty/dataframe.py" between
cloudkitty-16.0.0.tar.gz and cloudkitty-17.0.0.tar.gz

About: OpenStack CloudKitty provides Rating-as-a-Service for OpenStack.
The "Zed" series (latest release).

dataframe.py  (cloudkitty-16.0.0):dataframe.py  (cloudkitty-17.0.0)
skipping to change at line 161 skipping to change at line 161
@property @property
def desc(self): def desc(self):
output = dict(self.metadata) output = dict(self.metadata)
output.update(self.groupby) output.update(self.groupby)
return datastructures.ImmutableDict(output) return datastructures.ImmutableDict(output)
DATAFRAME_SCHEMA = voluptuous.Schema({ DATAFRAME_SCHEMA = voluptuous.Schema({
voluptuous.Required('period'): { voluptuous.Required('period'): {
voluptuous.Required('begin'): voluptuous.Any( voluptuous.Required('begin'): voluptuous.Any(
datetime.datetime, voluptuous.Coerce(tzutils.dt_from_iso)), datetime.datetime, tzutils.dt_from_iso),
voluptuous.Required('end'): voluptuous.Any( voluptuous.Required('end'): voluptuous.Any(
datetime.datetime, voluptuous.Coerce(tzutils.dt_from_iso)), datetime.datetime, tzutils.dt_from_iso),
}, },
voluptuous.Required('usage'): vutils.IterableValuesDict( voluptuous.Required('usage'): vutils.IterableValuesDict(
str, DataPoint.from_dict), str, DataPoint.from_dict),
}) })
class DataFrame(object): class DataFrame(object):
__slots__ = ("start", "end", "_usage") __slots__ = ("start", "end", "_usage")
def __init__(self, start, end, usage=None): def __init__(self, start, end, usage=None):
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)