A Python library for reading and writing .DS_Store files (the metadata files created by Apple's Finder) and exploring the file system metadata they contain. Current version is 1.3.2, released in 2023; development is active on GitHub with minimal release cadence.
pip install ds-storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Open a .DS_Store file, iterate over entries, and create a new file with custom icon positions and view settings.
Always use `with DSStore.open(path, mode) as d:`.
Use `from ds_store import DSStore` (the preferred public API) or explicitly `from ds_store.dsstore import DSStore` if needed.
Iterate over `DSStore` object or use `d[key]` syntax; do not create `DSStoreEntry` directly.
Refer to the source code for exact binary formats or use higher-level helpers (e.g., `DSStoreEntry.set_icon_position` if available).
Install with `pip install ds-store` and import with `from ds_store import DSStore`.
Use `from ds_store import DSStore` (underscore, not hyphen).
Upgrade to latest version: `pip install --upgrade ds-store`.