https://github.com/belda/django-shreck
A handy tool that combines django shell and database browser
https://github.com/belda/django-shreck
Last synced: 13 days ago
JSON representation
A handy tool that combines django shell and database browser
- Host: GitHub
- URL: https://github.com/belda/django-shreck
- Owner: belda
- License: mit
- Created: 2026-03-21T06:49:16.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2026-03-21T10:18:25.000Z (3 months ago)
- Last Synced: 2026-03-21T23:11:48.415Z (3 months ago)
- Language: Python
- Size: 815 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# 🟢 django-shreck
> A rich TUI replacement for Django's `shell_plus` — browse models and querysets from your terminal.



## Screenshots
> 🎬 [Watch the screencast](docs/screencast.mp4)
## Features
- **Auto-imported models** — All your Django models are available immediately with tab completion
- **Interactive shell** — Full Python REPL with auto-imported models and history
- **Scrollable table view** — QuerySets are rendered as rich, scrollable tables
- **Detail browser** — Single objects displayed as navigable key-value detail views
- **Inline editing** — Edit and save single model instances directly from the TUI
- **Side-by-side compare** — Two objects rendered in a diff-style comparison view
- **Admin integration** — Single keypress opens the Django admin for any object or queryset
## Installation
```bash
pip install django-shreck
```
Add to your `INSTALLED_APPS`:
```python
INSTALLED_APPS = [
# ...
"django_shreck",
]
```
## Usage
```bash
python manage.py shreck
```
### Keybindings
| Key | Action |
|-----|--------|
| `q` | Quit |
| `a` | Open admin for current object/queryset |
| `Enter` | Execute shell input |
| `↑/↓` | Browse fields / scroll table |
| `Tab` | Auto-complete |
## Development
```bash
git clone https://github.com/belda/django-shreck.git
cd django-shreck
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
make test
```
## License
MIT