Metadata-Version: 2.4
Name: starlette-admin-beanie-backend
Version: 0.0.2b1
Summary: Unofficial Beanie-ODM support for Starlette Admin
Author-email: Arnab Jain <arnab@inocentum.in>
License-Expression: MIT
Project-URL: Homepage, https://github.com/arnabJ/starlette-admin-beanie-backend
Project-URL: Bug Tracker, https://github.com/arnabJ/starlette-admin-beanie-backend/issues
Project-URL: Source, https://github.com/arnabJ/starlette-admin-beanie-backend
Project-URL: Changelog, https://github.com/arnabJ/starlette-admin-beanie-backend/releases
Project-URL: Documentation, https://github.com/arnabJ/starlette-admin-beanie-backend/blob/main/README.md
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet
Requires-Python: <3.14,>=3.9
Description-Content-Type: text/markdown
Requires-Dist: starlette-admin>=0.15.0
Requires-Dist: beanie>=2.0.0

# starlette-admin-beanie-backend

🧪 A work-in-progress package to use Beanie-ODM as a backend with starlette-admin.

## 🔧 Install (when released)
```bash
  pip install starlette-admin-beanie-backend
```

## ⚙️ Usage
```python
from starlette_admin_beanie_backend import Admin, ModelView
from .auth import AdminAuthProvider
from .models import User

def set_db_admin(app):
    # Create the Admin Interface
    admin = Admin(
        title="Test App",
        base_url="/admin",
        debug=True,
        auth_provider=AdminAuthProvider(),
    )
    
    # Add the Admin Views
    admin.add_view(ModelView(User, icon="fa fa-users"))

    # Mount app
    admin.mount_to(app)
```

## 🤝 Contribute
Contributions are welcome! Whether you’ve spotted a bug, have ideas to improve the Package, or want to extend functionality — I’d love your input. Please fork the repository, work on the dev-colab branch, and open a pull request when ready. Be sure to include clear commit messages and tests where applicable. Let’s build something great together!

- Submit PRs to `dev-colab`
- Please follow the coding style
---

## 🙏🏼 Credits
- jowilf (https://github.com/jowilf)
- BeanieODM (https://github.com/BeanieODM)
- pydantic (https://github.com/pydantic)
