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.6.tar.gz
(16.5 kB
view details)
Built Distribution
eggella-0.1.6-py3-none-any.whl
(21.6 kB
view details)
File details
Details for the file eggella-0.1.6.tar.gz
.
File metadata
- Download URL: eggella-0.1.6.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf9df8a24bd83c3bc938dba3d8be18b0f4d52f2870ee9c635e95df378547d83 |
|
MD5 | 2ce925537e787c6863bbfe4c04d44bec |
|
BLAKE2b-256 | 2f936ae902e38bc6b9e721483dd0a12f77e982bbadd1851027f965053723701e |
File details
Details for the file eggella-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: eggella-0.1.6-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4540928bd77693b070cd130b877e18fafbb33d780c10c8dc0271487ee7d025b |
|
MD5 | 1fde2dc845c97620bd888b7d299544ad |
|
BLAKE2b-256 | e04cea2c1995e1286718e8514f51112faf4bc68668a7a4e31ba8196bfbffe4c1 |