BareNecessities is a Python library that provides the bn module containing a dictionary allowing attribute access to values.
Get Started
* Download and install from source or copy and paste from below:
class AttributeDict(dict):
def __getattr__(self, name):
if not self.has_key(name):
raise AttributeError('No such attribute %r'%name)
return self.__getitem__(name)
def __setattr__(self, name, value):
raise NotImplementedError(
'You cannot set attributes of this object directly'
)
Product's homepage
Requirements:
· Python
What's New in This Release: [ read full changelog ]
· Added OrderedDict and MarbleLike