input_method
A tiny, opinionated Rust crate that brings a Python-style input method to your CLI apps. Ideal for quick scripts, REPLs, and simple text-based interactions.
📦 Purpose
This crate exists to provide one simple function: read user input from stdin
, with an optional prompt. That’s it. Just like Python’s input()
.
Perfect for:
- Quick scripts and prototypes ⚡
- Fast little CLI tools 🛠️
- School exercises and coding challenges 🧠
🚀 Usage
Add it to your Cargo.toml
:
Basic usage
use input;
Features
- Simple and ergonomic
- No dependencies (just std :C)
- Works out-of-the-box on Unix based platforms
- Minimal footprint (zero config)
See Github for Up To Date Docs
Leave a star to be a star! ⭐
PRs welcome, keep it simple.