OrmaosDocs

Reference

Environment variables

The environment variables that ormaos sets, reads and honours, and what each one changes.

View as Markdown

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.

VariableWhat it carries
ORMAOS_DIRthe folder of the recording, .ormaos/r<N>. A Python started without it is not recorded
ORMAOS_PATHthe scopes of --path
ORMAOS_IOwhether I/O is recorded (--no-io)
ORMAOS_CAPABILITIESthe choice of --only
ORMAOS_VALUESthat 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#

VariableWhat it changesDefault
ORMAOS_ONLYthe 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-packagesnot set
ORMAOS_MAX_CALLScalls kept per process200000
ORMAOS_MAX_EXCEPTIONSexceptions kept per process50000
ORMAOS_MAX_LINESlines kept per process (--path)200000
ORMAOS_MAX_IOI/O events kept per process100000
ORMAOS_MAX_LOGSlogging records kept per process50000
ORMAOS_MAX_CELLSnulls are not counted in a DataFrame larger than this many cells1000000
ORMAOS_MAX_ELEMENTSNaN and inf are not counted in an array larger than this many elements1000000
ORMAOS_MAX_HEALTH_MSthe time per process after which NaN, inf and nulls are no longer counted, in milliseconds2 seconds
ORMAOS_MAX_VALUEwith --values, the characters kept of each value200

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:

order-sync
$ 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 list

Read by the command line#

VariableEffect
NO_COLORno color in the text answers
TERM=dumbno color in the text answers

There is never color when the output is not a terminal, and never in JSON.