# dotdict-plus **Repository Path**: jiangbin2020/dotdict-plus ## Basic Information - **Project Name**: dotdict-plus - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-08 - **Last Updated**: 2025-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dot-dict A Python library for dot notation access to nested dictionaries. ## Features - Access nested dictionary values using dot notation - Automatic creation of nested structures - Compatible with standard dictionary operations - JSON serialization support - Lightweight and efficient ## Installation ```bash pip install dot-dict ``` ## Usage ```python from dotdict import DotDict # Create a Dot object from a dictionary data = { "user": { "name": "John", "age": 30, "address": { "city": "New York", "country": "USA" } } } dot_data = Dot(data) # Access values using dot notation print(dot_data.user.name) # Output: John print(dot_data.user.address.city) # Output: New York # Set values using dot notation dot_data.user.age = 31 dot_data.user.email = "john@example.com" # Automatic creation of nested structures dot_data.settings.theme = "dark" dot_data.settings.language = "en" # Convert back to dictionary dict_data = dot_data.to_dict() # JSON serialization print(str(dot_data)) ``` ## Development ### pytest ```bash pytest ``` ### Setup ```bash # Clone the repository git clone https://git.xmov.ai/jiangbin/dot-dict.git cd dot-dict # Install development dependencies pip install -e ".[dev]" ``` ### Upload ```bash make upload-test ``` ## License MIT License