A simple python class for creating Read Evaluate Print Line (REPL) interfaces
Project description
Easy REPL
A simple python class for creating Read Evaluate Print Line (REPL) interfaces.
Requirements
This module requires Python (version TBD) or higher.
Additionally this library uses the termios
module so it will only work on Unix based systems.
Usage
This module exposes the REPL
class which can be used to quickly create a REPL interface.
from easyrepl import REPL
for line in REPL():
# do something with line
Additionally the readl
function is available. It provides a simple line editor interface for reading in a line of text from the terminal. I.e. you can use the arrow keys to move the cursor and edit the line.
from easyrepl import readl
line = readl()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file easyrepl-0.0.1.tar.gz
.
File metadata
- Download URL: easyrepl-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ce6733cc3aa0163679865df8b6825c737a97a5933947d0c92e2347a559732a |
|
MD5 | a6b72336a0006d9702159e3b8e289107 |
|
BLAKE2b-256 | 577ae5db96390d6872f82439e1ba60fb2e57d53d3213e567ad08c281e32ba602 |
File details
Details for the file easyrepl-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: easyrepl-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0636d30b5bbcac3d60b761348bd239cd0a0ef457d5b93cf00e1e3237f8bac1 |
|
MD5 | f203e4a49abe4865ee2bd3429f2b6d45 |
|
BLAKE2b-256 | 412f81d72276a21a18932c325b3d1ea920c41899ce319d27f217fc2119a2b792 |