Skip to content

faircode profile/compare can't read from stdin #251

Description

@yakew7

Every input path in faircode/cli.py (profile and compare) expects a real file on disk - .csv, .tsv, .xlsx, .json, .parquet, dispatched by extension. There's no way to pipe data in, e.g. cat data.csv | faircode profile - or curl ... | faircode profile -, which is a common Unix CLI convention and would let the tool slot into a shell pipeline without writing a temp file first.

Proposed scope (keep it small): support - as the path argument for CSV/TSV input specifically (reading sys.stdin via pd.read_csv(sys.stdin, ...)), since format-sniffing-by-extension has no extension to go on for a stdin stream anyway - .xlsx/.parquet/.json support over stdin can be a follow-up if there's demand, not a blocker for this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions