Quantcast
Channel: User bavaza - Stack Overflow
Browsing all 45 articles
Browse latest View live

Answer by bavaza for Exclude fields from a pydantic class

Facing a similar issue, I ended up with (Pydantic 2):from typing import Any, Annotatedfrom pydantic import BaseModel, Field, AfterValidatorfrom pydantic.json_schema import SkipJsonSchemaExcludedField =...

View Article


Obfuscating timestamps in UUID v7

UUID7 is a type of time-ordered UUID, which compared to UUID4:Does not degrade performance when used as primary keys in databases (e.g. this benchmark).Includes its creation timestamp, which makes...

View Article


How to set-up liveness and readiness probes for Dramatiq worker pods [closed]

I want to set-up liveness and readiness probes for Dramatiq worker pods. By default, the workers do not run an http server, not listen to TCP connections, so defining a health/readiness http endpoints...

View Article

Storing response as json in Python requests-cache

I'm using requests-cache to cache http responses in human-readable format.I've patched requests using the filesystem backend, and the the serializer to json, like so:import...

View Article

Dynamically set path in target cointaier when saving files using...

I'm using SQLAlchemy file along with SQLModel to manage files on AZURE_BLOB storage. This works fine, but all the files gets saved in the top-level of the Azure Storage container, regardless of the...

View Article

Browsing all 45 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>