yourls/core.py
def db_stats(self):
        """Get database statistics.

        Returns:
            DBStats: Total clicks and links statistics.

        Raises:
            requests.exceptions.HTTPError: Generic HTTP Error
        """
        data = dict(action='db-stats')
        jsondata = self._api_request(params=data)

        stats = DBStats(total_clicks=int(jsondata['db-stats']['total_clicks']),
                        total_links=int(jsondata['db-stats']['total_links']))

        return stats
def db_stats(self):
        data = dict(action='db-stats')
        jsondata = self._api_request(params=data)

        stats = DBStats(total_clicks=int(jsondata['db-stats']['total_clicks']),
                        total_links=int(jsondata['db-stats']['total_links']))

        return stats
def db_stats ( self ) : data = dict ( action = 'db-stats' ) jsondata = self . _api_request ( params = data ) stats = DBStats ( total_clicks = int ( jsondata [ 'db-stats' ] [ 'total_clicks' ] ) , total_links = int ( jsondata [ 'db-stats' ] [ 'total_links' ] ) ) return stats
Get database statistics.

        Returns:
            DBStats: Total clicks and links statistics.

        Raises:
            requests.exceptions.HTTPError: Generic HTTP Error
Get database statistics .