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 print hello world │
│ 2 do something │
╰──────────────────────────────────────────────────────────────╯
╭─ 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='print hello world')
def command_1():
print('hello world')
@page.command(type=Subprocess, name='2', description='print something else')
def command_2():
return 'echo something else'
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.6.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.6-py3-none-any.whl
(9.8 kB
view details)
File details
Details for the file repli-0.1.6.tar.gz.
File metadata
- Download URL: repli-0.1.6.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 |
d0c6d4dfb068189325d0e4f24e863766924ae129a3eb5c5b3f02092291475460
|
|
| MD5 |
1df2ff618396c41fb9400d3e0fcc8ab2
|
|
| BLAKE2b-256 |
bca3192dfab188ae53ec77abb717f51ec03b24f2e07e34c8d16c281726353ff9
|
File details
Details for the file repli-0.1.6-py3-none-any.whl.
File metadata
- Download URL: repli-0.1.6-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 |
a1952cbff7bb0fa9a2cdb9cfded920ebb97cbfeec298d2d7a49a2ebd344a669e
|
|
| MD5 |
c2e63c21bb53190d6d09888866257687
|
|
| BLAKE2b-256 |
80eab28ae048d2c58a2adf359e98ca0844b520121fb0e10571f76660a3480de4
|