FastAPI Matrix Admin combines stunning cyberpunk design with robust features like auto-discovery and full CRUD functionality. Perfect for developers looking for a visually appealing and functional admin panel without the overhead of Node.js, this modern toolkit leverages Pydantic v2 and Shadcn UI for an efficient setup.
FastAPI Matrix Admin is a modern admin panel designed for FastAPI applications that combines stunning terminal-style cyberpunk aesthetics with robust, production-ready features. This admin panel is built with zero Node.js dependencies, allowing developers to manage their applications with ease and efficiency.
pip.The setup is straightforward. Here’s an example of how to get started:
from fastapi import FastAPI
from sqlalchemy.ext.asyncio import create_async_engine
from fastapi_matrix_admin import MatrixAdmin
app = FastAPI()
engine = create_async_engine("postgresql+asyncpg://...")
admin = MatrixAdmin(app, engine=engine, secret_key="your-secret")
admin.auto_discover(Base) # Auto-register all models
# Access the admin panel at /admin
The admin panel features a variety of modern UI designs:
Detailed documentation is available to guide users through configuration options, model registration, auto-discovery features, and more, ensuring a smooth user experience:
admin = MatrixAdmin(
app, # FastAPI application
engine=engine, # Async SQLAlchemy engine
secret_key="your-secret-key", # Minimum 16 characters
prefix="/admin", # URL prefix
add_csp_middleware=True, # Enable Content Security Policy
)
A live demo is available to showcase the capabilities of FastAPI Matrix Admin. Users can explore the features and visuals firsthand before implementing the tool in their applications.
Discover the full potential of FastAPI with Matrix Admin, where aesthetics meet high-performing functionality.
No comments yet.
Sign in to be the first to comment.