Basic pydantic repo stats
2 days ago

samuelcolvin/pydantic is an open source project licensed under MIT License which is an OSI approved license.

Pydantic Alternatives

Similar projects and alternatives to pydantic

  • GitHub repo fastapi

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

  • GitHub repo CPython

    The Python programming language

  • GitHub repo enforce

    Python 3.5+ runtime type checking for integration testing and data validation

  • GitHub repo mypy

    Optional static typing for Python 3 and 2 (PEP 484)

  • GitHub repo starlette

    The little ASGI framework that shines. 🌟

  • GitHub repo uvicorn

    The lightning-fast ASGI server. 🦄

  • GitHub repo peps

    Python Enhancement Proposals

  • GitHub repo beanie

    Asynchronous Python ODM for MongoDB

  • GitHub repo Python-DTO

  • GitHub repo serverless-micro-django

    Lightweight yet powerful python utility for lambda functions, Use Django ORM in your Python lambda functions

  • GitHub repo Adventure-Colussus

    A text-based adventure/rpg game

  • GitHub repo beanie-fastapi-demo

    Demo project

  • GitHub repo escaperoom

    Command line utility to generate/host a fully functioning virtual escape room from a JSON config.

  • GitHub repo koda

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better pydantic alternative or higher similarity.


Posts where pydantic has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-04-18.
  • PEP 563 (postponed evaluation of annotations) delayed till 3.11 | 2021-04-20
    These last two comments are wholesome and might hint at the root issue.
  • Some ideas on how to implement DTOs in Python | 2021-04-19
  • Unit tests & type hinting
    Not by default. But there are libraries to enforce types. or/and
  • IMPORTANT: PEP 563, PEP 649 and the future of pydantic · Issue #2678 · samuelcolvin/pydantic | 2021-04-16
    - | 2021-04-16
  • PEP 563, PEP 649 and the future of pydantic and FastAPI | 2021-04-15 | 2021-04-15
    I'm pretty sure the answer is, "You don't need to do anything about this." Note that Brett Cannon (Python Steering Council member) said that more people +1-ing or liking the issue is probably going to be disregarded (or possibly be taken negatively), in the issue: and on twitter:

    It seems that this post and the attempts to draw a lot of attention outside of core dev is likely to hurt pydantic's position rather than help it (though probably it will do neither because the core devs / steering council aren't going to ignore an issue out of spite or something). | 2021-04-15
    I must say I've just spent quite some time looking at both PEPs and discussions and I'm strongly in favor of PEP 563 right now... it does improve the performance of typed modules substantially (which is a big downside for me in typed codebases) -- PEP 649 improves the situation but still adds a considerable overhead to the import time.

    I think that the numbers given from Inada Naoki[email protected]/... do sum it well.

    Also, I don't see what will be made impossible at the pydantic side... from the bug list that's shown at, yes, the code needs to be adapted, but I don't see what's made impossible (maybe at some point the pydantic devs will actually say what the real problems are as so far no real concrete info on that was given).

    Heck, they could even probably not even use `typing.get_type_hints()` (which currently apparently does an internal `eval()` and treat the annotation string however they'd like -- maybe more work, but then, absolute freedom to treat it as they see fit).

    So, my plead goes the other way around: please don't make all projects which don't require runtime info from annotations pay the price for the few use cases which do use them (but don't make those impossible either -- but my take so far as that this is not the case). | 2021-04-15
  • Parsing and Validating Data in Python using Pydantic | 2021-03-24
    And that is just scratching the surface of how Pydantic can be used to validate our data classes and object models. There is a lot more that can be done using Pydantic and you should definitely go and check the docs to learn more! If you have any questions, feel free to get in touch.
  • What are some features you wish weren't in python? | 2021-03-23
    pydantic is great for that.
  • Announcing Beanie - MongoDB ODM | 2021-03-16
    The main component of Beanie is Pydantic - a popular library for data parsing and validation. It helps to implement the main feature - data structuring. Beanie Document - is an abstraction over the Pydantic BaseModel that allows working with Python objects at the application level and JSON objects at the database level. In the general case, one MongoDB collection is associated with one Beanie Document. This brings predictability when working with the database, and at the same time preserves all the flexibility of MongoDB documents - it is possible to represent any data structure with the Pydantic model (or even a group of structures with Optional and Union annotations).
  • Python REST APIs with FastAPI, CRUD application | 2021-03-01
    Here we create a simple Python class with type annotations using Pydantic and Python types module.