Attrs Alternatives

Similar projects and alternatives to attrs

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

Suggest an alternative to attrs

Reviews and mentions

Posts with mentions or reviews of attrs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-06.
  • Soap and REST at Odds (2017)
    news.ycombinator.com | 2021-08-03
    I continue to be surprised how easy it can be to consume a SOAP API with the right client libraries. Such as https://docs.python-zeep.org/en/master/ for Python. Now that's not to say it will always work, you can design a terrible API with any mechanism, no SOAP or REST client will help you if the other end has desided to succumb to madness and done something like turn their entire API into just "two endpoints" and driven by the payload content you post to the inbound endpoint, and you have to sit there polling the outbound endpoint with the inbound endpoints response ID because to find out what the eventual response is...

    But horror story aside, consuming a decent SOAP endpoint with a good client library can be practically magical.

    Between attrs (https://www.attrs.org/), cattrs (https://cattrs.readthedocs.io/), and the aforementioned zeep soap client I've got a serialisation pipeline from soap endpoint into an attrs dataclass with type hints and basic type validation down to a snippet so small it fits right here (type hints removed to minimise size).

      from zeep import helpers
  • PEP 661 -- Sentinel Values
    reddit.com/r/Python | 2021-06-06
    attrs has at least two.
  • HTTP Calls in Python Without requests or Other External Dependencies
    dev.to | 2021-03-07
    Of course, a custom class will work, or attrs, or whatever container works for you.

Stats

Basic attrs repo stats
3
3,692
8.2
4 days ago

python-attrs/attrs is an open source project licensed under MIT License which is an OSI approved license.

Find remote Python jobs at our new job board 99remotejobs.com. There are 10 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.