Skip to main content

attmap

Run pytests

Key-value Mapping supporting nesting and attribute-style access.

Note: This package is no longer actively developed. Consider using plain dicts or dataclasses for new projects.

Originally designed for the pepkit family projects.

Install

pip install attmap

Class hierarchy

  • AttMapLike (abstract base)
    • AttMap — dict-backed mapping with dot notation access
      • OrdAttMap — insertion-ordered (extends OrderedDict)
        • PathExAttMap — expands environment variables in path-like string values
          • EchoAttMap — returns the key itself when a value is not set

Customizing subclasses

Excluding keys from text representation

Override _excl_from_repr in a subclass:

def _excl_from_repr(self, k, cls):
    protected = ["reserved_metadata", "REZKEY"]
    return k in protected

Excluding class name from repr

Override __repr__ using the exclude_class_list argument to _render:

def __repr__(self):
    return self._render(
        self._simplify_keyvalue(self._data_for_repr(), self._new_empty_basic_map),
        exclude_class_list="YacAttMap",
    )

Excluding classes from to_dict conversion

Override _excl_classes_from_todict:

def _excl_classes_from_todict(self):
    return (pandas.DataFrame, ClassToExclude)

Metadata

Release files for attmap 0.14.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 attmap 0.14.0
File Size Uploaded
attmap-0.14.0.tar.gz 28.9 kB Details

Built distribution (wheel)

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

Total release size: 40.9 kB

Release files / attmap-0.14.0.tar.gz

Download URL attmap-0.14.0.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea9538fadc0d4c17f467f3a6ec508eb18460a16fb2a641c855ad5fdc2ae2b3be
BLAKE2b-256 checksum
How to use checksums
157f6c92a6d49976ee58522a43d2d19e43f1b17cf4343c300b0d5fa7ea15adfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

Release files / attmap-0.14.0-py3-none-any.whl

Download URL attmap-0.14.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6899b57149228f35571873db591637c662eadbf9570496c168b8e3daaf36914d
BLAKE2b-256 checksum
How to use checksums
aac2340a273067a82e6bcaf25781655c5bc9ea23063869c23bc898bd7944fc44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.14.0 This release

2 release files

0.13.0

2 release files

0.12.10

1 release file

0.12.9

1 release file

0.12.8

1 release file

0.12.7

1 release file

0.12.6

1 release file

0.12.5

1 release file

0.12.4

1 release file

0.12.3

1 release file

0.12.2

1 release file

0.12.1

1 release file

0.12

1 release file

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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