decorator

decorator (by micheles)

Decorator Alternatives

Similar projects and alternatives to decorator based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better decorator alternative or higher similarity.

decorator reviews and mentions

Posts with mentions or reviews of decorator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-23.
  • Python Malware Starting to Employ Anti-Debug Techniques
    7 projects | news.ycombinator.com | 23 Dec 2022
    that doesn't make much sense and there are necessary uses for eval() /exec(), mostly for dynamic creation of code:

    For example here's Python dataclasses in the standard library using exec() to create the `__init__` and other methods that go on your dataclass:

    https://github.com/python/cpython/blob/main/Lib/dataclasses....

    Here's Pydantic using it for a jupyter notebook check:

    https://github.com/pydantic/pydantic/blob/594effa279668bd955...

    here's Pytest using it to rewrite modules so that functions like assert etc. are instrumented by pytest:

    https://github.com/pytest-dev/pytest/blob/eca93db05b6c5ec101...

    Here's the decorator module using it (as is the only way to do this in Python) to create a signature matching decorator for an arbitrary function:

    https://github.com/micheles/decorator/blob/ad013a2c1ad796996...

    All of these libraries are completely secure as eval/exec are used with code fragments that are generated by the libraries, not based on untrusted input.

    eval() /exec() are not running executable files, just Python code, the same way all the rest of the package is already doing.

Stats

Basic decorator repo stats
1
811
3.5
about 2 months ago

micheles/decorator is an open source project licensed under BSD 2-clause "Simplified" License which is an OSI approved license.

The primary programming language of decorator is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com