Skip to content

lcaac: more output formats for lcaac commandline #63

@Shillaker

Description

@Shillaker

Is your feature request related to a problem? Please describe.

When running lcaac on the commandline, the CSV output is quite difficult to read as the columns and row are not aligned.

Describe the solution you'd like

The simplest option is an aligned version of the CSV output that already exists. For example, now you might see:

product,amount,reference unit,GWP,GWP_unit
rack_server,1.0,u,0.002862681278538813,kg_CO2_Eq

But this could be aligned as:

product      amount  reference unit  GWP                   GWP_unit
rack_server  1.0     u               0.002862681278538813  kg_CO2_Eq

This could be specified via a -o/--output parameter for the lcaac command.

Describe alternatives you've considered

Another alternative would be a JSON output, for example:

[
  {
    "product": "rack_server",
    "amount": 1.0,
    "reference_unit": "u",
    "GWP": 0.002862681278538813,
    "GWP_unit": "kg_CO2_Eq"
  }
]

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions