Flytekit Pydantic Plugin
Warning
This plugin is deprecated and will be removed in the future.
Please directly install pydantic and use BaseModel in your Flyte tasks.
Introduction
Pydantic is a data validation and settings management library that uses Python type annotations to enforce type hints at runtime and provide user-friendly errors when data is invalid. Pydantic models are classes that inherit from pydantic.BaseModel and are used to define the structure and validation of data using Python type annotations.
The plugin adds type support for pydantic models.
To install the plugin, run the following command:
pip install flytekitplugins-pydantic
Type Example
from pydantic.v1 import BaseModel
class TrainConfig(BaseModel):
lr: float = 1e-3
batch_size: int = 32
files: List[FlyteFile]
directories: List[FlyteDirectory]
@task
def train(cfg: TrainConfig):
...
Release files for flytekitplugins-pydantic 1.14.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flytekitplugins_pydantic-1.14.9.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flytekitplugins_pydantic-1.14.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / flytekitplugins_pydantic-1.14.9.tar.gz
| Download URL | flytekitplugins_pydantic-1.14.9.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a09dad4631671b871d056c32fdb1baec3a95226dc435ed38bc6baf2bf37ed18
|
|
BLAKE2b-256 checksum How to use checksums |
0a8136526bed8a0f32e7f954a94f57e339f484825773c046efeceabd17d87c5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / flytekitplugins_pydantic-1.14.9-py3-none-any.whl
| Download URL | flytekitplugins_pydantic-1.14.9-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bc3a527312df7d4bbf10d534fc6e21924c5b18baca8d3c1df086e467cbbad14
|
|
BLAKE2b-256 checksum How to use checksums |
f31f9b77dae8d1f4725ea310d822ff4a5b30956bb8b565f85a3c71bcc83a2d75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|