Appendix: Track D + BYOD CLI cheatsheet
Why this exists: A single page students can keep open while working. Everything here should stay stable; if it changes, --help is the source of truth.
Learning objectives
Know the minimal commands to run Track D from PyPI.
Know the minimal commands to normalize and analyze your own exports.
Outline
Install + create workbook (PyPI)
Install:
pip install "pystatsv1[workbook]"Create workbook:
pystatsv1 workbook init --track d --dest track_d_workbookList targets:
pystatsv1 workbook list --track d --workdir track_d_workbookOptional:
cd track_d_workbook(then you can omit--workdirbelow)
Run Track D scripts
Peek datasets:
pystatsv1 workbook run d00_peek_data --workdir track_d_workbookRun a chapter:
pystatsv1 workbook run d01 --workdir track_d_workbookNeed options?
pystatsv1 workbook --help
BYOD: normalize + validate
Init:
pystatsv1 trackd byod init --dest <BYOD_DIR> --profile core_glPut your export under
<BYOD_DIR>/tables/(typicallygl_journal.csv).Normalize:
pystatsv1 trackd byod normalize --project <BYOD_DIR>Normalize (fallback):
pystatsv1 trackd byod normalize --project <BYOD_DIR> --profile core_glValidate:
pystatsv1 trackd validate --datadir <BYOD_DIR>/normalized --profile core_glDaily totals:
pystatsv1 trackd byod daily-totals --project <BYOD_DIR>Help:
pystatsv1 trackd byod --help
Where this connects in the workbook
Track D Student Edition (Workbook Landing) (full student workflow)
Track D BYOD: Bring Your Own Data (BYOD hub with tutorials)
Note
If anything here differs from what you see locally, run the relevant --help command and follow that.
General help: pystatsv1 --help