attmap
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 accessOrdAttMap— insertion-ordered (extendsOrderedDict)PathExAttMap— expands environment variables in path-like string valuesEchoAttMap— 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)
| File | Size | Uploaded | |
|---|---|---|---|
| attmap-0.14.0.tar.gz | 28.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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