Tax-Brain Command Line Interface

Tax-Brain Command Line Interface#

cli

taxbrain.cli#

Command line interface for the Tax-Brain package

taxbrain.cli.cli_core(startyear, endyear, data, usecps, reform, behavior, assump, baseline, outdir, name, make_report, author)[source]#

Core logic for the CLI

Parameters:
  • startyear (int) – year to start analysis

  • endyear (int) – last year for analysis

  • data (str or Pandas DataFrame) – path to or DataFrame with data for Tax-Calculator

  • usecps (bool) – whether to use the CPS or (if False) the PUF-based file

  • reform (dict) – parameter changes for reform run in Tax-Calculator

  • behavior (dict) – behavioral assumptions for Behavioral-Responses

  • assump (dict) – consumption assumptions

  • base_policy (dict) – parameter changes (relative to current law baseline) for baseline policy

  • verbose (bool) – indicator for printing of output

Returns:

reports saved to disk at path specified by outdir

Return type:

None

taxbrain.cli.cli_main()[source]#

Command line interface to taxbrain package

Parameters:

None

Return type:

None

taxbrain.cli.make_tables(tb, year, outpath)[source]#

Make and write all of the tables for a given year

Parameters:
  • tb (TaxBrain object) – instance of a TaxBrain object

  • year (int) – year to produce tables for

  • outpath (str) – path to save output to

Returns:

tables saved to disk

Return type:

None