Skip to main content

accumulate

PyPI version

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",),
}

Installation

Install using pip install -U accumulate.

Metadata

Release files for accumulate 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for accumulate 2.0.2
File Size Uploaded Provenance
accumulate-2.0.2.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for accumulate 2.0.2
File Interpreter ABI Platform
accumulate-2.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / accumulate-2.0.2.tar.gz

Download URL accumulate-2.0.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6bb8b0e21a096521fe30db403a97eb2de25247d713f12241e3e3cd59b1bbdd75
BLAKE2b-256 checksum
How to use checksums
2a83fa5c062528838cc1f5f053d1358f92da850b31e17d05e9fbc297cc5ef11d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / accumulate-2.0.2-py3-none-any.whl

Download URL accumulate-2.0.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3b21b9e6774a616678dafc7cadd7d8dd9c3d2ea80d2bb91ae82497b3a1b57dd
BLAKE2b-256 checksum
How to use checksums
70752ef749e0d16282e2aa4295810f5e5d242341248477f7d73eb22625ad8783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for accumulate 2.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page