Skip to main content

Unofficial Beanie-ODM support for Starlette Admin

Project description

starlette-admin-beanie-backend

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

🔧 Install (when released)

  pip install starlette-admin-beanie-backend

⚙️ Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

starlette_admin_beanie_backend-0.0.1b2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file starlette_admin_beanie_backend-0.0.1b2.tar.gz.

File metadata

File hashes

Hashes for starlette_admin_beanie_backend-0.0.1b2.tar.gz
Algorithm Hash digest
SHA256 199eb7df3b39be4d7e72f208784ebe10ece35c5ef298d3d7259bb7d2f428987f
MD5 207cc103e0281d266bf72cc127d79649
BLAKE2b-256 510277cc8531c921a4699fc0841d7cb439cb8f36653fa07f4d0e5ddf5fa73db2

See more details on using hashes here.

File details

Details for the file starlette_admin_beanie_backend-0.0.1b2-py3-none-any.whl.

File metadata

File hashes

Hashes for starlette_admin_beanie_backend-0.0.1b2-py3-none-any.whl
Algorithm Hash digest
SHA256 afb23f6b59972adb0e4fe8a1a2abe02056ffe9a39210f223ad4ca25bba3d8131
MD5 f828294f9a2e7f23d20d89a0aa4adb59
BLAKE2b-256 7d001056b94e64c34e38491644534fe64a4bec20b87026997ffb93d3d7fc953d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page