An open API service indexing awesome lists of open source software.

https://github.com/euphoric-coder/pseudoshell

A lightweight Python-based terminal emulator that lets you execute shell commands and view their outputs. Ideal for learning how terminal interactions work with Python.
https://github.com/euphoric-coder/pseudoshell

Last synced: about 1 year ago
JSON representation

A lightweight Python-based terminal emulator that lets you execute shell commands and view their outputs. Ideal for learning how terminal interactions work with Python.

Awesome Lists containing this project

README

          

# PseudoShell - Your Goto Mini Terminal

This project is a mini terminal-like command line interface (CLI) built using Python. It supports a variety of common shell commands, allowing users to navigate directories, manage files, and execute basic operations directly from the terminal. This CLI project is a great way to showcase skills in Python, command parsing, and file manipulation.

## Features

- **Basic Commands**: Supports common shell commands like `ls`, `cd`, `pwd`, `mkdir`, `rmdir`, `rm`, `touch`, `cat`, `cp`, and `mv`.
- **Command Autocompletion**: Use the Tab key for autocompleting commands and paths.
- **Command History**: Navigate through command history using the up and down arrow keys.
- **Built-in Help**: Type `help` to get a list of supported commands and their usage.
- **Chained Commands**: Execute multiple commands in one line using the `;` symbol.
- **Error Handling**: Proper error messages for common issues such as missing files, incorrect paths, and invalid command usage.

## Installation

1. **Clone the repository:**
```bash
git clone https://github.com/yourusername/python-cli.git
cd python-cli