全部搜尋項
trixie  ] [  forky  ] [  sid  ]
[ 原始碼: pydantic-compat  ]

套件:python3-pydantic-compat(0.1.2-3)

python3-pydantic-compat 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 pydantic-compat

維護小組:

外部的資源:

相似套件:

Compatibility layer for pydantic v1/v2

Pydantic 2 was a major release that completely changed the pydantic API.

For applications, this is not a big deal, as they can pin to whatever version of pydantic they need. But for libraries that want to exist in a broader environment, pinning to a specific version of pydantic is not always an option (as it limits the ability to co-exist with other libraries).

This package provides (unofficial) compatibility mixins and function adaptors for pydantic v1-v2 cross compatibility. It allows you to use either v1 or v2 API names, regardless of the pydantic version installed. (Prefer using v2 names when possible).

Tests are run on Pydantic v1.8 and up

The API conversion is not exhaustive, but suffices for many use cases.

其他與 python3-pydantic-compat 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-pydantic-compat

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 13。7 kB56。0 kB [檔案列表]