Read–Eval–Print Loop Interpreter
Project description
🫥 Read–Eval–Print Loop Interpreter (REPLI)
This is a Python package for building Read–Eval–Print Loop (REPL) applications.
Features:
- Breadcrumbs
- Interface panel
- Pagination
────────────────────────────────────────────────────────────────
home
────────────────────────────────────────────────────────────────
╭─ commands ───────────────────────────────────────────────────╮
│ 1 page 1 │
│ 2 page 2 │
╰──────────────────────────────────────────────────────────────╯
╭─ builtins ───────────────────────────────────────────────────╮
│ e exit │
│ q previous page │
╰──────────────────────────────────────────────────────────────╯
> _
Install
Pip:
pip install repli
Poetry:
poetry add repli
Usage
page = Page(name='0', description='home')
@page.command(type=NativeFunction, name='1', description='command 1')
def command_1():
print('command 1')
@page.command(type=Subprocess, name='2', description='command 2')
def command_2():
return 'echo command 2'
interpreter = Interpreter(page=page)
interpreter.loop()
See example.
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
repli-0.1.4.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
repli-0.1.4-py3-none-any.whl
(9.8 kB
view details)
File details
Details for the file repli-0.1.4.tar.gz.
File metadata
- Download URL: repli-0.1.4.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1271a2cbae8c72f74b6e58655bb140b8d06b44d0ba68fc553525d59fd42f01cd
|
|
| MD5 |
1b90f6d1dda7f6b9c8eec6ea9d84945a
|
|
| BLAKE2b-256 |
31f51d88a63a53160868feee7aa841f56842494a64c0c9ec6111b6c1d07b0427
|
File details
Details for the file repli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: repli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e40b0bb708a250e6ff5d981ff9f22dca8ecaf10bf51dbcfcec324156143f6713
|
|
| MD5 |
da6b3e4aa22ff3c21f353cc6aae658cd
|
|
| BLAKE2b-256 |
0b93cb87a15c2665741a5318df5883a8b5b7205e738ca6a3024e5c696badc17d
|