Usage example:
# Django proposes: def my_calculated_field(... my_calculated_field.short_description = 'Field' my_calculated_field.admin_order_field = 'real_field' # DRY: @attr(short_description='Field', admin_order_field='real_field') def my_calculated_field(...
Get it:
sudo pip install attr from attr import attr
New popular attrs.org used by pytest.org defines another “attr” package that shadows this “attr” module.
Please use “dry_attr” alias to unshadow it:
from dry_attr import attr from dry_attr import dry_attr
Release files for attr 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| attr-0.3.2.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| attr-0.3.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 5.9 kB
Release files / attr-0.3.2.tar.gz
| Download URL | attr-0.3.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ceebca768181cdcce9827611b1d728e592be5d293911539ea3d0b0bfa1146f4
|
|
BLAKE2b-256 checksum How to use checksums |
e4d2d0a5e36049ec6f72f4951b7f843b359d21e5a208b120618686187234dd1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.12
|
Release files / attr-0.3.2-py2.py3-none-any.whl
| Download URL | attr-0.3.2-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4f4bffeea8c27387bde446675a7ac24f3b8fea1075f12d849b5f5c5181fc8336
|
|
BLAKE2b-256 checksum How to use checksums |
68ebe96c25f5accb24b151c5a559961f29af2ef089725b547efb185985c73e10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.12
|