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("hello")
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.4.tar.gz
(16.1 kB
view details)
Built Distribution
eggella-0.1.4-py3-none-any.whl
(21.2 kB
view details)
File details
Details for the file eggella-0.1.4.tar.gz
.
File metadata
- Download URL: eggella-0.1.4.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285f3d4ef8f2c38d72939f5e3e225e521a1f648074c9731d25cddc5f9352fda8 |
|
MD5 | b2a59be4ecb2360c2a9236d03293cc27 |
|
BLAKE2b-256 | 11c87c30ab71af236af573462d016b8088d0296012256843f75098582b58a6ed |
File details
Details for the file eggella-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: eggella-0.1.4-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08c55da23675f07db960f60b4b5392cd961ee21396c455e4ceb850373f3135be |
|
MD5 | 22aeb6cec38819fed1620f88771bf8ce |
|
BLAKE2b-256 | 30481158594ca118b8d815877fb1cd887bf92a140c374f088aa2a71e59fd3dc8 |