Skip to main content

Attribute Dictionary

Test PyPI Downloads

attd is a Python package that provides a dictionary with attribute access to keys. It is especially convenient when working with deeply nested data from JSON APIs.

Installation

# Latest stable version
pip install -U attd

# Latest development version
pip install -U git+https://github.com/otsaloma/attd

Documentation

>>> from attd import AttributeDict
>>> data = AttributeDict({"a": {"b": {"c": 1}}})
>>> data["a"]["b"]["c"]
1
>>> data.a.b.c
1
>>> from attd import FallbackAttributeDict
>>> data = FallbackAttributeDict()
>>> data["a"]["b"]["c"]
{}
>>> data.a.b.c
{}

Metadata

Release files for attd 1.0

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

Source distribution (sdist)

Source distribution for attd 1.0
File Size Uploaded Provenance Actions
attd-1.0.tar.gz 2.7 kB Without provenance Details for attd-1.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / attd-1.0.tar.gz

Download URL attd-1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ce3b134016bdeb5d85593a3c9098c75ee8838efe090332e51b71fe425328ef3
BLAKE2b-256 checksum
How to use checksums
56d36cbd3300fa6179836d9578ee3e1b9908032ac7933cdc2b09646c02f3f954
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / attd-1.0-py3-none-any.whl

Download URL attd-1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68da8be40c2033f675dfafbc4de340ccacb1fe8f392771850534aa8e95e1a4bd
BLAKE2b-256 checksum
How to use checksums
c2937900cfd9db850dd0bd32b5bbae1e7adcb5b31b56da0680a2c12cd4dd427d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for attd 1.0

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.

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