Reference
Environment variables
The environment variables that ormaos sets, reads and honours, and what each one changes.
Set by ormaos for the recorded processes#
ormaos run and with ormaos.record(): put these in the environment, so that every Python process of the command finds the recording. You do not set them yourself.
| Variable | What it carries |
|---|---|
ORMAOS_DIR | the folder of the recording, .ormaos/r<N>. A Python started without it is not recorded |
ORMAOS_PATH | the scopes of --path |
ORMAOS_IO | whether I/O is recorded (--no-io) |
ORMAOS_CAPABILITIES | the choice of --only |
ORMAOS_VALUES | that values were asked for (--values, record(values=True)) |
with ormaos.record(): sets them in os.environ while the block runs and puts each back when the block ends; every recording of a block says so in not_collected.
Read by the recorder#
| Variable | What it changes | Default |
|---|---|---|
ORMAOS_ONLY | the files that count as your code: a list of paths, separated like PATH. Without it, your code is every file outside the standard library and outside site-packages | not set |
ORMAOS_MAX_CALLS | calls kept per process | 200000 |
ORMAOS_MAX_EXCEPTIONS | exceptions kept per process | 50000 |
ORMAOS_MAX_LINES | lines kept per process (--path) | 200000 |
ORMAOS_MAX_IO | I/O events kept per process | 100000 |
ORMAOS_MAX_LOGS | logging records kept per process | 50000 |
ORMAOS_MAX_CELLS | nulls are not counted in a DataFrame larger than this many cells | 1000000 |
ORMAOS_MAX_ELEMENTS | NaN and inf are not counted in an array larger than this many elements | 1000000 |
ORMAOS_MAX_HEALTH_MS | the time per process after which NaN, inf and nulls are no longer counted, in milliseconds | 2 seconds |
ORMAOS_MAX_VALUE | with --values, the characters kept of each value | 200 |
What comes after a limit is listed in not_collected. ormaos status prints the limits of the calls, exceptions, lines, I/O and logs, with their variables:
$ ormaos status
ormaos 0.0.1 on Python 3.14.4 (/tmp/ormaos-docs-generate/venv/bin/python)
this Python can record: yes; starts by itself under `run`: yes
this command is not running inside a recording
limits when recording, per process: 200000 calls, 50000 exceptions, 200000 lines, 100000 io events, 50000 logging records (ORMAOS_MAX_CALLS, ORMAOS_MAX_EXCEPTIONS, ORMAOS_MAX_LINES, ORMAOS_MAX_IO, ORMAOS_MAX_LOGS)
space: .ormaos uses …; the largest: r1, …; ormaos sets no limit on the folder and deletes nothing
1 recording in .ormaos; last: r1, 2026-11-27 12:00:00, complete, exit 0
next: ormaos show r1 | ormaos listRead by the command line#
| Variable | Effect |
|---|---|
NO_COLOR | no color in the text answers |
TERM=dumb | no color in the text answers |
There is never color when the output is not a terminal, and never in JSON.