Skip to main content

An AutoRecalcDict is a subclass of dict that allows the user to create a standard python dict, but to also allow specifications for dependency lists that are on specific targets. Typical usage would be when you want a dict entry to automagically be recomputed if a dependency changes.

For example:

ard is an AutoRecalcDict and has keys called ‘target’, ‘dep1’, ‘dep2’ and ‘dep3’. The user wants the value of ard[‘target’] to be recomputed via a user defined function ff.

The calling sequence of function ff is defined as having three arguments: 1. self (ff will be converted to an instance method of ard) 2. target (the index into ard) 3. deplist (the list of keys that target depends upon).

Included in autorecalcdict.py is a class called DepDescFunc. This is used to create the instance needed by AutoRecalcDict to know what targets are dependent on which dependency lists and the function needed to update the target.

See the module for examples of usage.

Metadata

Release files for AutoRecalcDict 0.1.1

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

Source distribution (sdist)

Source distribution for AutoRecalcDict 0.1.1
File Size Uploaded Provenance
AutoRecalcDict-0.1.1.zip 17.5 kB Without provenance Details

Release files / AutoRecalcDict-0.1.1.zip

Download URL AutoRecalcDict-0.1.1.zip
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2aa33461fdece230686b1a62fea9ed68f514d19873f172de34149531e4a7c5fc
BLAKE2b-256 checksum
How to use checksums
0c69ddca80f306f630f9948d1cd4cc411f12dc5a9ad65df3f46bb8d29e65acec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for AutoRecalcDict 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file 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