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):
...
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| flytekitplugins_pydantic-1.14.9.tar.gz | 9.4 kB | Without provenance | Details for flytekitplugins_pydantic-1.14.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flytekitplugins_pydantic-1.14.9-py3-none-any.whl | Python 3 | none | any | Details for flytekitplugins_pydantic-1.14.9-py3-none-any.whl |
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
|
Security for flytekitplugins-pydantic 1.14.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.