Skip to main content

Attribute Dictionary

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.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 attd 1.1
File Size Uploaded Provenance Actions
attd-1.1.tar.gz 2.7 kB Without provenance Details for attd-1.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / attd-1.1.tar.gz

Download URL attd-1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
058fe3551b4748b03cf905c19a929de940efa6c56edda84280eefe7b01d795c4
BLAKE2b-256 checksum
How to use checksums
5c0f6f84f7e5d07a96c1f27e4e8000c648e57373c03714a43139fc98b58965e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

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

Download URL attd-1.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8aec28ba19ee17e6c8ba562e6c95a29c326d14ebe213797322426e5d8b9d067
BLAKE2b-256 checksum
How to use checksums
41ee44fbc0b3cbc8c2756ee24850c33e243774e018137d3fd7536bfe660feb48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for attd 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.

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