attrs is a Python package that lets you write classes without all the usual drudgery. Its ultimate goal is to help you write concise and correct software without slowing down your code. attrs provides a class decorator and a means to declaratively define the attributes on that class. This results in a concise and explicit overview of the class's attributes, a human-readable __repr__, a complete set of comparison methods and more, all without having to repetitively write dull boilerplate code and without negatively affecting your runtime performance. With attrs you can write correct and self-documenting code, and you'll find joy in writing classes again!

Features

  • Class decorator
  • First class support for Type Annotations
  • Instance initialization
  • Extensible

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow attrs

attrs Web Site

Other Useful Business Software
Cut Data Warehouse Costs up to 54% with BigQuery Icon
Cut Data Warehouse Costs up to 54% with BigQuery

Migrate from Snowflake, Databricks, or Redshift with free migration tools. Exabyte scale without the Exabyte price.

BigQuery delivers up to 54% lower TCO than cloud alternatives. Migrate from legacy or competing warehouses using free BigQuery Migration Service with automated SQL translation. Get serverless scale with no infrastructure to manage, compressed storage, and flexible pricing—pay per query or commit for deeper discounts. New customers get $300 in free credit.
Try BigQuery Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of attrs!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Software Development Software, Python Package Managers

Registered

2020-11-17