Skip to content

t.info: add format option and support for JSON output #7041

@ninsbl

Description

@ninsbl

t.info returns a relatively complex metadata for Space Time Datasets. As of now, JSON output is not yet supported.

t.info should be able to return JSON format, this a format option and JSON output (possibly YAML and others) should be added.

The most elegant solution may be to add a print_json (or print_yaml, ...) method to:

@abstractmethod
def print_info(self):
"""Print information about this class in human readable style"""
@abstractmethod
def print_shell_info(self):
"""Print information about this class in shell style"""
@abstractmethod
def print_self(self):
"""Print the content of the internal structure to stdout"""

And the subsequent dataset types...

Metadata

Metadata

Assignees

No one assigned

    Labels

    PythonRelated code is in PythonenhancementNew feature or requestlibrariesmoduletemporalRelated to temporal data processing

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions