Metadata-Version: 2.3
Name: htmldict
Version: 0.1.1
Summary: Python dict objects with the ability to serve html
License: MIT
Author: Miles Copeland Luce
Requires-Python: >=3.13,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
Requires-Dist: loguru (>=0.7.3,<0.8.0)
Requires-Dist: p2d2 (>=0.1.103,<0.2.0)
Requires-Dist: pandas (>=2.3.1,<3.0.0)
Description-Content-Type: text/markdown

A lightweight Python class that extends dict to generate HTML templates and integrate with databases.

### Usage

```python
from htmldict import HTMLDict
from p2d2 import Database

class Person(HTMLDict):
    _title = "name"
    _subtitle = "role" 
    _redirect_uri = "https://profile/${id}"
    name: str
    role: str
    id: str

# Create instance
person = Person(name="John Doe", role="Developer", id="123")

# Generate HTML
html_card = person.card
html_detail = person.detail
html_label = person.label

# Save to database
class DB(Database):
    person: Person

db = DB("mydb")
person.commit_to_database(db)
```
