messari.deepdao package
Submodules
messari.deepdao.deepdao module
This module is meant to contain the Deep DAO class
- class messari.deepdao.deepdao.DeepDAO
Bases:
messari.dataloader.DataLoader
This class is a wrapper around the DeepDAO API
Methods
get_dao_financials
(dao_slugs)Returns information about the financials of given DAO(s) Parameters ---------- dao_slugs: Union[str, List] Input DAO names as a string or list (ex. 'Uniswap').
get_dao_indices
(dao_slugs)Returns financial indices for given DAO(s). Like the Gini Index or the Herfindahl–Hirschman index Parameters ---------- dao_slugs: Union[str, List] Input DAO names as a string or list (ex. 'Uniswap').
get_dao_info
(dao_slugs)Returns basic information for given DAO(s) Parameters ---------- dao_slugs: Union[str, List] Input DAO names as a string or list (ex. 'Uniswap').
Returns list of DAOs tracked by Deep DAO Returns ------- list list of DAOs
get_dao_members
(dao_slugs)Returns information about the Members of given DAO(s) Parameters ---------- dao_slugs: Union[str, List] Input DAO names as a string or list (ex. 'Uniswap').
get_dao_proposals
(dao_slugs)Returns information about governance proposals for given DAO(s) Parameters ---------- dao_slugs: Union[str, List] Input DAO names as a string or list (ex. 'Uniswap').
get_dao_voter_coalitions
(dao_slugs)Returns information about different voting coalitions for given DAO(s) Parameters ---------- dao_slugs: Union[str, List] Input DAO names as a string or list (ex. 'Uniswap').
get_member_info
(pubkeys)Returns basic information for given member(s) Parameters ---------- pubkeys: Union[str, List] Input public keys for DAO members as a string or list
Returns list of DAO members tracked by Deep DAO Returns ------- list list of memberss
get_member_proposals
(pubkeys)Returns proposal history for given member(s) Parameters ---------- pubkeys: Union[str, List] Input public keys for DAO members as a string or list
get_member_votes
(pubkeys)Returns voting history for given member(s) Parameters ---------- pubkeys: Union[str, List] Input public keys for DAO members as a string or list
Returns basic info for all Deep DAO tracked organizations Returns ------- DataFrame pandas DataFrame of Deep DAO organizations info
Returns an overview of the DAO ecosystem aggreated by Deep DAO Returns ------- DataFrame pandas DataFrame of DAO ecosystem overview
Returns rankings for organizations tracked by Deep DAO Returns ------- DataFrame pandas DataFrame of Deep DAO organizations rankings
get_response
(endpoint_url[, params, headers])Gets response from endpoint and checks for HTTP errors when requesting data.
Returns basic summaries of information for all Deep DAO tracked organizations Returns ------- DataFrame pandas DataFrame of Deep DAO organizations summaries
Returns information about the utilization of different tokens Returns ------- DataFrame pandas DataFrame with token utilization
get_top_members
([count])Returns a dataframe of basic information for the the top Members Sorted by amount of DAO's particpating in.
set_api_dict
(api_dict)Sets a new dictionary to be used as an API key pair
set_taxonomy_dict
(taxonomy_dict)Sets a new dictionary to be used for taxonomy translations
translate
(input_slugs)Wrapper around messari.utils.validate_input, validate input & check if it's supported by DeFi Llama
- get_dao_financials(dao_slugs: Union[str, List]) pandas.core.frame.DataFrame
Returns information about the financials of given DAO(s) Parameters ———-
- dao_slugs: Union[str, List]
Input DAO names as a string or list (ex. ‘Uniswap’)
- Returns
- DataFrame
pandas DataFrame with DAO financials
- get_dao_indices(dao_slugs: Union[str, List]) pandas.core.frame.DataFrame
Returns financial indices for given DAO(s). Like the Gini Index or the Herfindahl–Hirschman index Parameters ———-
- dao_slugs: Union[str, List]
Input DAO names as a string or list (ex. ‘Uniswap’)
- Returns
- DataFrame
pandas DataFrame with DAO indices
- get_dao_info(dao_slugs: Union[str, List]) pandas.core.frame.DataFrame
Returns basic information for given DAO(s) Parameters ———-
- dao_slugs: Union[str, List]
Input DAO names as a string or list (ex. ‘Uniswap’)
- Returns
- DataFrame
pandas DataFrame with general DAO information
- get_dao_list() List
Returns list of DAOs tracked by Deep DAO Returns ——-
- list
list of DAOs
- get_dao_members(dao_slugs: Union[str, List]) pandas.core.frame.DataFrame
Returns information about the Members of given DAO(s) Parameters ———-
- dao_slugs: Union[str, List]
Input DAO names as a string or list (ex. ‘Uniswap’)
- Returns
- DataFrame
pandas DataFrame with DAO Members
- get_dao_proposals(dao_slugs: Union[str, List]) pandas.core.frame.DataFrame
Returns information about governance proposals for given DAO(s) Parameters ———-
- dao_slugs: Union[str, List]
Input DAO names as a string or list (ex. ‘Uniswap’)
- Returns
- DataFrame
pandas DataFrame with DAO governance proposals
- get_dao_voter_coalitions(dao_slugs: Union[str, List]) pandas.core.frame.DataFrame
Returns information about different voting coalitions for given DAO(s) Parameters ———-
- dao_slugs: Union[str, List]
Input DAO names as a string or list (ex. ‘Uniswap’)
- Returns
- DataFrame
pandas DataFrame with DAO voter coalitions
- get_member_info(pubkeys: Union[str, List]) pandas.core.frame.DataFrame
Returns basic information for given member(s) Parameters ———-
- pubkeys: Union[str, List]
Input public keys for DAO members as a string or list
- Returns
- DataFrame
pandas DataFrame with member information
- get_member_list() List
Returns list of DAO members tracked by Deep DAO Returns ——-
- list
list of memberss
- get_member_proposals(pubkeys: Union[str, List]) pandas.core.frame.DataFrame
Returns proposal history for given member(s) Parameters ———-
- pubkeys: Union[str, List]
Input public keys for DAO members as a string or list
- Returns
- DataFrame
pandas DataFrame with member governance proposals
- get_member_votes(pubkeys: Union[str, List]) pandas.core.frame.DataFrame
Returns voting history for given member(s) Parameters ———-
- pubkeys: Union[str, List]
Input public keys for DAO members as a string or list
- Returns
- DataFrame
pandas DataFrame with member voting history
- get_organizations() pandas.core.frame.DataFrame
Returns basic info for all Deep DAO tracked organizations Returns ——-
- DataFrame
pandas DataFrame of Deep DAO organizations info
- get_overview() pandas.core.frame.DataFrame
Returns an overview of the DAO ecosystem aggreated by Deep DAO Returns ——-
- DataFrame
pandas DataFrame of DAO ecosystem overview
- get_rankings() pandas.core.frame.DataFrame
Returns rankings for organizations tracked by Deep DAO Returns ——-
- DataFrame
pandas DataFrame of Deep DAO organizations rankings
- get_summary() pandas.core.frame.DataFrame
Returns basic summaries of information for all Deep DAO tracked organizations Returns ——-
- DataFrame
pandas DataFrame of Deep DAO organizations summaries
- get_tokens() pandas.core.frame.DataFrame
Returns information about the utilization of different tokens Returns ——-
- DataFrame
pandas DataFrame with token utilization
- get_top_members(count: int = 50) pandas.core.frame.DataFrame
Returns a dataframe of basic information for the the top Members Sorted by amount of DAO’s particpating in.
- Parameters
- count: int
Amount of members to return info for (default=50)
- Returns
- DataFrame
pandas DataFrame with top members across DAOs
messari.deepdao.helpers module
This module is dedicated to helpers for the DeepDAO class
- messari.deepdao.helpers.unpack_dataframe_of_dicts(df_in: pandas.core.frame.DataFrame) pandas.core.frame.DataFrame
Unpacks a dataframe where all entries are dicts
- Parameters
- df_in: pd.DataFrame
input DataFrame
- Returns
- DataFrame
formated pandas DataFrame
- messari.deepdao.helpers.unpack_dataframe_of_lists(df_in: pandas.core.frame.DataFrame) pandas.core.frame.DataFrame
Unpacks a dataframe where all entries are list of dicts
- Parameters
- df_in: pd.DataFrame
input DataFrame
- Returns
- DataFrame
formated pandas DataFrame
Module contents
Module to handle initialization, imports, for DeepDAO class