Skip to content

Add structured output to tach reportΒ #678

@pavelzw

Description

@pavelzw

It would be nice if tach report also supported json output.

Something like this

$ tach report --help
...
  --output        Output format, one of `pretty`, `raw`, `json`
tach report --json my_module
{
  "dependencies": [
    {
      "file_path": "my_module/abc.py",
      "line_number": 44,
      "import": "other_module.abc"
    },
    // ...
  ],
  "usages": ...,
  "external-dependencies": ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions