pydantic-examples
Project to create examples of serialized Pydantic models with comments.
Intended to easily generate example config files if you load and validate the configuration using Pydantic.
From a model like:
from pydantic import BaseModel, Field
from pydantic_examples.yaml 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
Status
This project was created with a single use-case in mind (YAML from Pydantic) but is open to PRs and collaboration on Github.
Feel free to file issues, raise PRs and join in if you want.
Metadata
Release files for pydantic-examples 0.1.3
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 | |
|---|---|---|---|---|
| pydantic_examples-0.1.3.tar.gz | 24.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydantic_examples-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.7 kB
Release files / pydantic_examples-0.1.3.tar.gz
| Download URL | pydantic_examples-0.1.3.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f86ccd6609e46ecc64321ee197cf1ea351ada6452a4704c94fefb3948158ce2
|
|
BLAKE2b-256 checksum How to use checksums |
8155df4cdc267bc74aad6b84bfe2fcc89c2aea9dd84d856b0e141799707720e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / pydantic_examples-0.1.3-py3-none-any.whl
| Download URL | pydantic_examples-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42b3035ec96c641e21828559ee5dd08e1fd976ef25649dc037134625e15f3f4c
|
|
BLAKE2b-256 checksum How to use checksums |
107ebe8d7a9fa4ecd1ec1855c564adff9b12875549c57c5a62f2ac6963729088
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for pydantic-examples 0.1.3
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.