BSD Ports

devel/py-pydantic-compat 0.1.2p2 OpenBSD

compatibility for pydantic v1-v2 cross compatibility

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Renaud Allard <[email protected]>
Categories
devel, lang/python

Description

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).

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).

In the other systems

The newest version among them is 0.1.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
OpenBSDdevel/py-pydantic-compat0.1.2p2 newestno data-Renaud Allard <[email protected]>-
FreeBSDdevel/py-pydantic-compat0.1.2 newestnone known-[email protected]-
DragonFlydevel/py-pydantic-compat0.1.2 newestnone known-[email protected]-
HardenedBSDdevel/py-pydantic-compat0.1.2 newestno data-[email protected]-
GhostBSDdevel/py-pydantic-compat0.1.2 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg_add py3-pydantic_compat

From the ports tree:

cd /usr/ports/devel/py-pydantic-compat && make install

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Build dependencies 4
Run dependencies 3

No port depends on this one.