Skip to main content

A playful blend of dict and utility/library.

Project description

dictory

A playful blend of "dict" and "utility/library".

Overview

dictory is a Python package providing useful utilities to work with Python dictionaries.
It aims to simplify common dictionary operations and improve your productivity when dealing with nested dicts, mapping, merging, and more.

Features

  • Utilities for nested dictionary manipulation
  • Safe get/set operations
  • Dict merging and diffing
  • Conversion helpers

Installation

Using pip,

pip install .
# or for development:
pip install -e .

Using uv,

uv pip install .
# or for development:
uv pip install -e .

Usage

from dictory import dict_utils

# Example: Safe get from nested dict
nested = {"a": {"b": {"c": 123}}}
result = dict_utils.get_nested(nested, ["a", "b", "c"])  # 123

# Example: Merge two dicts
d1 = {"a": 1, "b": 2}
d2 = {"b": 3, "c": 4}
merged = dict_utils.merge_dicts(d1, d2)  # {'a': 1, 'b': 3, 'c': 4}

Development

Install developer dependencies:

uv sync --extra dev

Run tests:

uv run pytest

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dictory-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dictory-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file dictory-0.1.1.tar.gz.

File metadata

  • Download URL: dictory-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for dictory-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ea258718e8ce5338979518e61e8b9486c22e27007141ebaa056ffa4fe9589af
MD5 3503dec348c2486fbd1e8b362db945af
BLAKE2b-256 6e468bfe56ac8d75198ded34f34e594550ff49e7bb837a8db4dd5046d0407b33

See more details on using hashes here.

File details

Details for the file dictory-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dictory-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for dictory-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a1304d0913e93ab92f0f1f824879e97d64e50f80460a2b69cbd54342e5f0ac2
MD5 4aae6ea6adfe829edd4b19c1e3783cef
BLAKE2b-256 df5032f8def03b2d0fb1e8421815f257972d7e1298df73a9ed1154a2fe2e08ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page