DEV Community

Gabriele
Gabriele

Posted on

Custom shell with Python

I want to share a project I built in Python using Claude. The idea came about both to learn Python by starting with something simple and to explore the use of AI. This shell includes:

  • File system management
  • Process monitoring
  • Encrypted password manager
  • Command autocompletion

You'll find the details in the repo

MyShell

A custom, colorful and interactive shell written in Python: it monitors processes in real time, helps you navigate the file system, and includes an encrypted password manager.

Features

  • 🎨 Colorful output (tables, trees, panels) powered by rich
  • 📊 Real-time process monitor with CPU/RAM/disk bars (top)
  • 🗂️ File navigation & management: ls, cd, tree, mkdir, rm, copy, move, cat, find, open
  • 🔐 Encrypted password manager (pass) — credentials encrypted with a master password
  • ⌨️ Command history and autocompletion (Tab) via prompt_toolkit
  • 🔗 Pipes and redirects (|, >, >>) forwarded to the system shell
  • 🚀 Runs any external command (e.g. git, python, ping)

Requirements

Installation

git clone https://github.com/<user>/MyShell.git
cd MyShell
pip install -r requirements.txt
python myshell.py
Enter fullscreen mode Exit fullscreen mode

Commands

Command Description
cd

Top comments (0)