Current collected state Current
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
accumulate
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.
Declarations describe requirements; they are not a resolved dependency graph.
bdist_wheel · 4.17 KB · Python py3
sdist · 5.15 KB · Python source
Observed since 20 Oct, 18:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:e642f1b9e8beee63dd71e0c3ee9bdea127760ca6f37eba2f82f803738c23af6e