Generate examples of serialized data from Pydantic models
Project description
pydantic-examples
Project to create example data from Pydantic models.
From a model like:
from pydantic import BaseModel, Field
from pydantic_examples import yaml_with_comments
from typing import Annotated
class Example(BaseModel):
"""Example model"""
value: Annotated[str, Field(description="Does not really matter")] = "foo"
You can generate
# Example model
value: foo # Does not really matter
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydantic_examples-0.0.3.tar.gz
(23.1 kB
view details)
Built Distribution
File details
Details for the file pydantic_examples-0.0.3.tar.gz
.
File metadata
- Download URL: pydantic_examples-0.0.3.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe37d7c0443b92d472974efd277e61e45f5fd05d5ce758c6814c6b0a47fb491 |
|
MD5 | 627a9a6fffc767ac40098fc57cf41bcc |
|
BLAKE2b-256 | 856585f332bda2647e24100992c407ad035b9f4f6169ee71dcd6d5f64596dc9c |
File details
Details for the file pydantic_examples-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pydantic_examples-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1235488b8c3869f701bcb801567e5872092f7ad700bb0a90e3a7b1216e16e2f4 |
|
MD5 | 4088cfb08a36661ccf29f74e4ea76411 |
|
BLAKE2b-256 | d1640de139a7f97ca29a2a58b5423887f7299f9198b72bb744f8ed6cd5afc458 |