tfw you’ve created something that excites you like nothing in years but it feels like you have to write a book first to lay the context to make wide appreciation even possible
Look y’all, it’s all public on my GitHub. I just don’t know how to go the path of testability → loose coupling → hexagonal architecture → service locator without losing 95% of the audience at step two by the latest. I’ve extracted something I’ve used successfully for years and applying it to other work projects was always a HUGE improvement but you only get one chance to make a first impression.

@hynek I like what I see, can it layer contexts/disposal/dependency?

We have a little monster in pytest for managing fixture's

@hynek I have at least 15 projects where I want such a things,but it's hard in python and the pattern is so often despised
@hynek a key issue i presume from examples is that factorys ain't context managers

@ossronny yes, they’re much better.

The container is an `with closing(container)` context manage and the factories are pytest-style generators. MUCH more ergonomic in practice.

@hynek pytest style fixtures are a bit of an mistake in terms of concern Separation, they make a convenient api but the lack of a porcelain level that hasn't concrete language level construct's and layer's makes pinpoint Testing insanity tricky and typically sidestepped