# AppDataManager

[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Version](https://img.shields.io/pypi/v/AppDataManager.svg)]()
[![Download](https://img.shields.io/pypi/dm/AppDataManager.svg)]()

**Zero-config user data manager** - Manage application data like a dictionary, automatically saved to system user directory.

## Features

- 🚀 **Zero dependencies** - Only Python standard library
- 📁 **Automatic paths** - Auto-saved to system user directory
- 🐍 **Pythonic** - Dict-like and attribute-like access
- 🔒 **Namespace isolation** - Multiple apps don't interfere
- ✨ **Simple & intuitive** - No configuration needed

## Installation

```bash
pip install AppDataManager
```

## Quick Start

```python
from AppDataManager import AppDataManager

# Create manager
dm = AppDataManager("myapp")

# Dict-style access
dm["config.json"] = '{"theme": "dark"}'
print(dm["config.json"])

# Attribute-style access
dm.setting = "enabled"
print(dm.setting)

# Iterate all data
for key in dm:
    print(f"{key}: {dm[key]}")

# Check existence
if "config.json" in dm:
    print("Config exists")

# Delete
del dm.setting

# Count
print(f"Total: {len(dm)} files")
```

## Storage Locations

- **Windows**: `%LOCALAPPDATA%\<namespace>`
- **macOS**: `~/Library/Application Support/<namespace>`
- **Linux**: `~/.local/share/<namespace>`