On my work we faced a problem with collecting metrics from python apps running in several processes (using uvicorn). When you have these multi-process applications, you get into a situation where any of the multiple workers can respond to prometheus’s scraping request. Each worker then responds with a value for a metric that it knows of.
I faced with the problem with type coercion in
Union when resulting type depends on the order of types in annotation:
With Pydantic we can build full-fledged two-way mapping using
allow_population_by_field_name setting in
For couple of years I’m using pip-tools for managing requirements but recently I faced with a problem splitting requirements for dev and production environments. The problem was that if we just split requirements and compile them separately we will end up with different versions.