Skip to main content

nimshell

Nimshell is a convenient shell tool that uses Python syntax to replace traditional commands. It serves as an alternative to the Linux shell, Windows PowerShell, and Windows Batch.

Installation

pip install nimshell

Usage

nimshell
nimshell -f Makefile.py

Features

Cross-Platform: Supports Windows, Linux, and macOS, with automatic adaptation to system encoding and path separators. Strategy Pattern for Subprocess Interaction: Features dual modes for Auto-Reply (AutoInteractive) and Manual Interaction (TerminalInteractive), with support for runtime fallback switching. Asynchronous & Non-Blocking: An intelligent subprocess manager built on asyncio that reads stdout in real time and injects into stdin without blocking the main event loop. A quick translation tip: "runtime fallback switching". In software engineering, "fallback" is the most standard and professional term for gracefully degrading or switching to a backup mode when the primary method isn't working or needs to be changed.

Development

# Clone the repo
git clone https://github.com/pophu/nimshell.git
cd nimshell


# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check src/ tests/

# Type check
mypy src/

# Build
python -m build

Metadata

Release files for nimshell 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for nimshell 0.5.1
File Interpreter ABI Platform
nimshell-0.5.1-py3-none-any.whl Python 3 none any Details

Release files / nimshell-0.5.1-py3-none-any.whl

Download URL nimshell-0.5.1-py3-none-any.whl
Size 79.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21dd5ed01c10e84eeb366b03e7c6ee3d493a54d6b97b16dadb349dee46d4567d
BLAKE2b-256 checksum
How to use checksums
b2f0b2d76e3be29f7d921b8f59ef21ebd5b0bff7f2806163315e4a728200c8c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Release history Release notifications | RSS feed

0.5.5

1 release file

0.5.3

1 release file

0.5.2

1 release file

This release

0.5.1 This release

1 release file

0.5.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page