Contents

pydantic 1.9.2

0

Data validation and settings management using python type hints

Data validation and settings management using python type hints

Stars: 10723, Watchers: 10723, Forks: 1013, Open Issues: 508

The pydantic/pydantic repo was created 5 years ago and was last updated 8 hours ago.
The project is extremely popular with a mindblowing 10723 github stars!

How to Install pydantic

You can install pydantic using pip

pip install pydantic

or add it to a project with poetry

poetry add pydantic

Package Details

Author
Samuel Colvin
License
MIT
Homepage
https://github.com/samuelcolvin/pydantic
PyPi
https://pypi.org/project/pydantic/
GitHub Repo
https://github.com/samuelcolvin/pydantic

Classifiers

  • Internet
  • Software Development/Libraries/Python Modules
No  pydantic  pypi packages just yet.

Errors

A list of common pydantic errors.

Code Examples

Here are some pydantic code examples and snippets.

GitHub Issues

The pydantic package has 508 open issues on GitHub

  • build(deps): bump pre-commit from 2.16.0 to 2.17.0
  • build(deps): bump mkdocs-material from 8.1.3 to 8.1.8
  • avoid deepcopying object default
  • Fix pytest crashes with hypothesis and pydantic
  • New type StrLimited
  • Fixed docs about custom encoders
  • Added abstract SecretField class for secret fields
  • Pylance reports problem in match-case statement (PEP 634) with dataclasses
  • Add Robusta.dev to list of Pydantic users
  • ValueError raised when Nested Discriminated Unions are used twice
  • Fix issue with self-referencing dataclass
  • Linting error when using nested models with optional arguments
  • Equatable base dataclasses become inequatable when used as BaseModel fields
  • build(deps): bump hypothesis from 6.31.6 to 6.36.0
  • Prevent subclasses of bytes being converted to bytes

See more issues on GitHub

Related Packages & Articles

fastapi 0.79.0

FastAPI framework, high performance, easy to learn, fast to code, ready for production

apispec 5.2.2

A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification).