traits
Observable typed attributes for Python classes (by enthought)
polyfactory
Simple and powerful factories for mock data generation (by litestar-org)
traits | polyfactory | |
---|---|---|
3 | 1 | |
437 | 1,049 | |
1.1% | 3.1% | |
7.0 | 8.2 | |
29 days ago | 4 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
traits
Posts with mentions or reviews of traits.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-24.
- GitHub - enthought/traits: Observable typed attributes for Python classes
- Traits: Observable typed attributes for Python classes
-
Attrs – The One Python Library Everyone Needs
My favourite among this class of Python libraries has been traits from Enthought:
https://github.com/enthought/traits
polyfactory
Posts with mentions or reviews of polyfactory.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Announcing Polyfactory - a powerful mock data generator for dataclasses, Pydantic and more
If you'd like to contribute, check out the project on GitHub, and if you want to chat you're welcome to join us on the Litestar Discord!
What are some alternatives?
When comparing traits and polyfactory you can also consider the following projects:
pydantic - Data validation using Python type hints
mimesis-factory - Mimesis integration with factory_boy
dataclasses
pydantic-openapi-schema - Generate OpenAPI 3.x.x using Pydantic
dotwiz - A blazing fast dict subclass that supports dot access notation.
litestar - Production-ready, Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs
CPython - The Python programming language
pydantic-factories - Simple and powerful mock data generation using pydantic or dataclasses