Metadata-Version: 2.4
Name: jawadb
Version: 0.2.1
Summary: A simple persistent JSON database for Python
Project-URL: Homepage, https://github.com/yourusername/jawadb
Project-URL: Repository, https://github.com/yourusername/jawadb.git
Author-email: Yoav Shai <gergesh@gmail.com>
License: MIT
License-File: LICENSE.txt
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# JawaDB

A simple persistent JSON database for Python that acts like a regular dictionary or list.

## Installation

```bash
pip install jawadb
```

## Usage

```python
import jawadb

# Use as dictionary
db = jawadb.load("mydata.json")
db["key"] = "value"
db["nested"] = {"foo": "bar"}
# File is automatically saved when db is garbage collected

# Use as list
db = jawadb.load("mylist.json")
db += ["item1", "item2"]
db.append("item3")
# File is automatically saved
```

## Features

- Automatic persistence to JSON file
- Use as either dictionary or list (type is determined by first operation)
- Handles nested structures
- Atomic file writes
- Saves on program exit, Ctrl-C, and garbage collection
- Type hints included

## License

MIT License