In Javascript it would be:
var newObject = { \'propertyName\' : \'propertyValue\' }; newObject.propertyName; // retur
class test: def __setattr__(self,key,value): return value myObj = test() myObj.mykey = 'abc' # set your property and value