Skip to main content

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)

Uploaded Source

Built Distribution

pydantic_examples-0.0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for pydantic_examples-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ffe37d7c0443b92d472974efd277e61e45f5fd05d5ce758c6814c6b0a47fb491
MD5 627a9a6fffc767ac40098fc57cf41bcc
BLAKE2b-256 856585f332bda2647e24100992c407ad035b9f4f6169ee71dcd6d5f64596dc9c

See more details on using hashes here.

File details

Details for the file pydantic_examples-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_examples-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1235488b8c3869f701bcb801567e5872092f7ad700bb0a90e3a7b1216e16e2f4
MD5 4088cfb08a36661ccf29f74e4ea76411
BLAKE2b-256 d1640de139a7f97ca29a2a58b5423887f7299f9198b72bb744f8ed6cd5afc458

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page