Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python.
$ pip install area
Simply pass a geojson string or python dictionary to the area function and get the area.
>>> from area import area >>> obj = {'type':'Polygon','coordinates':[[[-180,-90],[-180,90],[180,90],[180,-90],[-180,-90]]]} >>> area(obj) 511207893395811.06
$ python test.py