Current collected state Current
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Inheritance for iterable attributes.
Inheritance for iterable attributes.
accumulate eases inheritance of iterable class attributes by accumulating values along the MRO, for example:
from accumulate import accumulate
class Base:
fields = ["id"]
metadata = {"read_only_field": ("id",)}
class User(Base):
fields = accumulate(["name", "password"])
metadata = accumulate(
{
"filter_fields": ("name",),
"hidden_fields": ("password",),
}
)
assert User.fields == ["id", "name", "password"]
assert User.metadata == {
"filter_fields": ("name",),
"hidden_fields": ("password",),
"read_only_field": ("id",),
}
Install using pip install -U accumulate.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 2.0.2 | 31 Jul 2024 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:63e3c140042095ac652925ab0156d1d4206114a8f159e45d69130bfb3868a21a