Skip to content

Latest commit

 

History

103 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stop-machine

A three-state halt. GREEN → AMBER → RED. RED does not move through the public API.

Ceiling

This is not a vault. A caller in the same process can still write _state with object.__setattr__. Out-of-process stop is out of scope.

See CEILING.md.

This repository does not prove adoption, certification, production readiness, or that evidence can be upgraded into permission.

30 seconds

git clone https://github.com/LalaSkye/stop-machine.git
cd stop-machine
python -c "from stop_machine import StopMachine; m=StopMachine(); m.advance(); m.advance(); print(m.state)"

Expected: State.RED

Then m.advance() raises TerminalStateError. m._state = … raises AttributeError.

Tests

pytest test_stop_machine.py -v

Licence

MIT.

Author: Ricky Dean Jones

Releases

Packages

Used by

Contributors

Languages