Exemple #1
0
 def explain_data_call(self, data_call):
     """
     Output the methodology for a given data call.
     """
     response = self.api.get_response("%s/meta/methodology" % data_call)
     native = json.loads(response)
     self.output(data_call)
     self.output("-" * len(data_call))
     self.output(native["methodology"])
Exemple #2
0
    def list_data_calls(self):
        """
        Output a list of available data calls.
        """
        response = self.api.get_response("list.json")
        native = json.loads(response)

        for plugin in sorted(p["slug"] for p in native):
            self.output(plugin)