Create awesome command line applications with less effort
Project description
Eggella
Eggella is a shield volcano in central Kamchatka. The volcano is located on the west axis of the southern Sredinny Range.
About
Eggella is a framework for easy creating REPL applications.
Design inspired by vulcano and various chatbots frameworks and built top on prompt-toolkit
Features:
- Python 3.8+ support
- Command line arguments auto cast from function annotations
- Cross-platform (prompt-toolkit guarantees)
- FSM (finite state machine) to organize a branch interface system
- Error handlers
- Customized events
- Auto create auto suggest commands completer
- Auto generate help, and man page
Install
pip install eggella
Hello world
from eggella import Eggella
app = Eggella(__name__)
@app.on_command()
def hello():
"""print `Hello, world!`"""
return "Hello, world!"
if __name__ == '__main__':
app.loop()
See the documentation and examples!
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
eggella-0.1.5.tar.gz
(16.4 kB
view details)
Built Distribution
eggella-0.1.5-py3-none-any.whl
(21.5 kB
view details)
File details
Details for the file eggella-0.1.5.tar.gz
.
File metadata
- Download URL: eggella-0.1.5.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ae539b658113b48012f0c354d0c3c350c3e9bbeefa26079e98eb79ae129d43 |
|
MD5 | e52e3ccc05fc54485554f0303e87f49a |
|
BLAKE2b-256 | 5da7f14e661809bb032df3fac5da45666f95be101636211f00b548a11a271531 |
File details
Details for the file eggella-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: eggella-0.1.5-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20efdf487356ef0d3f5062009d63e036f3f2d904cf1eeb848abb2a9475fe5e10 |
|
MD5 | 34ec8547ebf6fd1b5cc4f44fca75dd2d |
|
BLAKE2b-256 | 4e9316148c4d15628a8b73e5952cbd623d6f33d639e9d4f6d1f4143c60ca90d4 |