decfunc
Creating decorators with arguments made easy. (by realsuayip)
enforce
Python 3.5+ runtime type checking for integration testing and data validation (by RussBaz)
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.
decfunc
Posts with mentions or reviews of decfunc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-16.
-
decfunc - a library to create decorators in a simple way, using classes
u/Rawing7 Hey, thanks to your comment, I inspected my code and found some other major problems.I was able to fix them by some refactoring. And I also realized & understood your point on writing decorators via functions. Also, If it is OK with you, I could insert your name into the contributors file.
enforce
Posts with mentions or reviews of enforce.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-21.
- Python’s “Type Hints” are a bit of a disappointment to me
-
Unit tests & type hinting
Not by default. But there are libraries to enforce types. https://github.com/RussBaz/enforce or/and https://pydantic-docs.helpmanual.io/
- Type validation decorator
What are some alternatives?
When comparing decfunc and enforce you can also consider the following projects:
lambda-decorators - 🐍λ✨ - A collection of useful decorators for making AWS Lambda handlers
pydantic-to-typescript - CLI Tool for converting pydantic models into typescript definitions
multitasking - Non-blocking Python methods using decorators
returnn - The RWTH extensible training framework for universal recurrent neural networks
Deal - 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.
stupid-python-tricks - Stupid Python tricks.