GChartWrapper/GChart.py
def fromurl(cls, qs):
        """
        Reverse a chart URL or dict into a GChart instance
        
        >>> G = GChart.fromurl('http://chart.apis.google.com/chart?...')
        >>> G
        <GChartWrapper.GChart instance at...>
        >>> G.image().save('chart.jpg','JPEG')
        """
        if isinstance(qs, dict):
            return cls(**qs)
        return cls(**dict(parse_qsl(qs[qs.index('?')+1:])))
def fromurl(cls, qs):
        """
        Reverse a chart URL or dict into a GChart instance
        
        >>> G = GChart.fromurl('http://chart.apis.google.com/chart?...')
        >>> G
        <GChartWrapper.GChart instance at...>
        >>> G.image().save('chart.jpg','JPEG')
        """
        if isinstance(qs, dict):
            return cls(**qs)
        return cls(**dict(parse_qsl(qs[qs.index('?')+1:])))
def fromurl ( cls , qs ) : if isinstance ( qs , dict ) : return cls ( * * qs ) return cls ( * * dict ( parse_qsl ( qs [ qs . index ( '?' ) + 1 : ] ) ) )
Reverse a chart URL or dict into a GChart instance
        
        >>> G = GChart.fromurl('http://chart.apis.google.com/chart?...')
        >>> G
        <GChartWrapper.GChart instance at...>
        >>> G.image().save('chart.jpg','JPEG')
Reverse a chart URL or dict into a GChart instance >>> G = GChart . fromurl ( http : // chart . apis . google . com / chart? ... ) >>> G <GChartWrapper . GChart instance at ... > >>> G . image () . save ( chart . jpg JPEG )