tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.md (3332B)


*attrs*: Classes Without Boilerplate

Release {sub-ref}`release` (What's new?)

:start-after: 'teaser-begin -->'
:end-before: '<!-- teaser-end'

Getting Started

attrs is a Python-only package hosted on PyPI. The recommended installation method is pip-installing into a virtualenv:

$ python -Im pip install attrs

The next steps will get you up and running in no time:

Afterwards, you can start writing your own classes and understand what drives attrs's design.

After reading, you will know about our advanced features and how to use them.

If you need any help while getting started, feel free to use the python-attrs tag on Stack Overflow and someone will surely help you out!

Day-to-Day Usage

attrs has first class support for them, yet keeps them optional if you’re not convinced!

Our goal is to relieve you from writing as much code as possible. {doc}init gives you an overview what attrs has to offer and explains some related philosophies we believe in.

{doc}comparison shows you how attrs helps you with that and how you can customize it.

The simplest way to do that is to use frozen classes, but the topic is more complex than it seems and {doc}hashing will give you a primer on what to look out for.

{doc}extending will show you the affordances it offers and how to make it a building block of your own projects.

*attrs* for Enterprise

:start-after: '### *attrs* for Enterprise'

Full Table of Contents

:maxdepth: 2

overview
why
examples
types
init
comparison
hashing
api
api-attr
extending
how-does-it-work
glossary
:caption: Meta
:maxdepth: 1

names
license
changelog
Third-party Extentions <https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs>
PyPI <https://pypi.org/project/attrs/>
Contributing <https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md>
Funding <https://hynek.me/say-thanks/>

Full Index