DEV Community

Discussion on: Why Starting a Fresh EC2 Instance and Running Python with Meadowrun Took Over a Minute

 
kurt2001 profile image
Kurt

Re: 3 I had the same idea, I don't want Eliot as a runtime dependency of meadowrun (or at the very least only as an optional one).

I started by making a facade to Eliot in an optional_eliot.py module, and mocking the calls if the import fails: github.com/kurtschelfthout/meadowr...

Please be advised that that file is only a very rough sketch - the actual Eliot calls work but the mock calls definitely don't. I think that approach would be nicer than trying to wrap every eliot call in an if, with similar small overheads if Eliot is not present.