Skip to main content

Add your description here

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:

pip install -r requirements-dev.txt

Run tests:

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.0.tar.gz (5.9 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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dictory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0aec4bf99e9d4b3c05da595c04c9b65b47a24f0f74738b45e7c9e98ab3db56ef
MD5 4008fc57714d74c87ed98768a7524251
BLAKE2b-256 bd2adf6c3aaf7196cadae3846760b7a33fbbe2b686c889338a798203e9ef56f6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dictory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45feb90920037148d7c8381e31a290e729cb5e437ce7f927242676172e0704a0
MD5 801b78ffa3adf0498e623a4f9282cb20
BLAKE2b-256 f1b4314420ca3d4b78f29e4c7ea190a37acc2915411bbb0afe572717e3e21556

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