1 [![Build Status](https://travis-ci.org/bosswissam/pysize.svg?branch=master)](https://travis-ci.org/bosswissam/pysize)
5 Use to quickly measure the size of your python objects. Supports:
6 * Measuring the size of self-referential objects
7 * No double-counting for repeated objects in a collection
10 <https://github.com/bosswissam/pysize>
14 >>> class Test(object):
16 >>> from pysize import get_size
23 >>> z.l = ["test"*100]
30 To measure the size of `properties`, call `pysize.get_size` on the full list
31 of the object's members minus overhead and unwanted memberes:
46 to_measure = [getattr(obj, prop) for prop in dir(obj)\
47 if prop not in dir(Ping)] # Exclude inherited attrs
48 empty_list_size = pysize.get_size([])
49 pysize.get_size(to_measure) - empty_list_size - 8 * len(to_measure)