I've had a bit of an overall challenge when portin...
# general
i
I've had a bit of an overall challenge when porting over our
uvicorn
usage over to a pex/pants friendly world and would like some thoughts. I'm worried that our usage of
dramatiq
are going to hit even more sever issues when I get that far. Previous to trying out pants we evoke
uvicorn
via the cli. Evocation looking something like
Copy code
uvicorn --port 3001 --no-access-log --proxy-headers swizzler:app
I tried for a while to get it so the
pex_binary
target would be doing this basic thing for me. However I couldn't find anyway to both execute a cli as my entry point -and- give it options. I've gotten into a decent spot by instantiating unicorn programmatically, but I am concerned that for something like
dramatiq
I will need to be able to use the CLI with arguments. Is there a reasonable way to achieve that (or does anyone know if I can start
dramatiq
programmatically?)