dbbasic-admin
Auto-discovery admin interface for dbbasic modules.
Philosophy
Admin interfaces should auto-generate from installed modules, not require manual configuration.
Features
- Auto-discovery - Installing a dbbasic module automatically adds its admin panels
- Zero configuration - Modules just need
admin.pyandtemplates/admin/ - Filesystem routing - Admin routes follow file paths (like CGI/PHP)
- Dynamic sidebar - Built from core + discovered modules
- Auto-CRUD - Generates admin UI for TSV tables
- Search & filters - Built-in for all tables
Installation
pip install dbbasic-admin
Quick Start
1. Install dbbasic-admin
pip install dbbasic-admin
2. Access Admin Interface
http://localhost:8000/admin/
That's it! The admin interface is ready.
3. Install Modules with Admin Panels
pip install dbbasic-blog
The "Posts" tab automatically appears in the admin sidebar.
Creating a Module with Admin
1. Export ADMIN_CONFIG
# your_module/admin.py
ADMIN_CONFIG = [
{
"icon": "📝",
"label": "Posts",
"href": "/admin/posts",
"order": 20,
"table": "posts", # Auto-generates CRUD
}
]
2. Create Templates (Optional)
For custom admin pages:
your_module/
└── templates/
└── admin/
└── posts/
├── list.html # /admin/posts/list
├── new.html # /admin/posts/new
└── [id].html # /admin/posts/123
3. Install Your Module
pip install your-module
Your admin tab appears automatically!
How It Works
- Auto-discovery - Scans installed
dbbasic_*packages - Finds ADMIN_CONFIG - Loads nav items from each module's
admin.py - Builds sidebar - Combines core + module nav items
- Filesystem routing - Uses dbbasic-web's routing for admin pages
Core Admin Pages
- Dashboard - System overview, quick actions
- Code - File browser and editor
- Database - TSV table browser
- Jobs - Background job queue
- Logs - System and application logs
- Settings - Configuration management
ADMIN_CONFIG Reference
ADMIN_CONFIG = [
{
# Required
'label': 'Posts', # Display name
'href': '/admin/posts', # URL path
# Optional
'icon': '📝', # Emoji or icon class
'order': 20, # Sort order (0-99)
'badge': '3', # Notification badge
'table': 'posts', # Auto-generate CRUD
'fields': {...}, # Field configuration for CRUD
}
]
Documentation
Full specification: https://dbbasic.com/admin-spec
License
MIT
Links
- PyPI: https://pypi.org/project/dbbasic-admin/
- GitHub: https://github.com/askrobots/dbbasic-admin
- Documentation: https://dbbasic.com/admin-spec
Metadata
Release files for dbbasic-admin 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dbbasic_admin-0.1.1.tar.gz | 8.9 kB | Without provenance | Details for dbbasic_admin-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbbasic_admin-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dbbasic_admin-0.1.1-py3-none-any.whl |
Total release size: 18.3 kB
Release files / dbbasic_admin-0.1.1.tar.gz
| Download URL | dbbasic_admin-0.1.1.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baa47f3dd29f0251825d3e8f906f138e28d0333d2fba72491b4d7d8f953f5089
|
|
BLAKE2b-256 checksum How to use checksums |
4df63abdf0afc1a672ee8ae42845a99d9e42be9a7d00f2c6cd8e542c7ec0b637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.1
|
Release files / dbbasic_admin-0.1.1-py3-none-any.whl
| Download URL | dbbasic_admin-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2771ebf2d0a6090045f20e7456634f16db9a5977e18dd1384c248ebda7c857b
|
|
BLAKE2b-256 checksum How to use checksums |
5bb02627e5c2648553fb50fe03f85b326a9280e4ac689234eae78b1b77fb5b2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.1
|
Security for dbbasic-admin 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.