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.0.tar.gz
(14.6 kB
view details)
Built Distribution
eggella-0.1.0-py3-none-any.whl
(19.4 kB
view details)
File details
Details for the file eggella-0.1.0.tar.gz
.
File metadata
- Download URL: eggella-0.1.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f355bd608d24b275fae38ab518b9b6cffb41d1f554b109f520847d0ad716d83 |
|
MD5 | da3d9d1dd205d3007797ae9dc9535e80 |
|
BLAKE2b-256 | 99c20b5d9f08ede1595ab534d47469d7b973e08092bcbaec972db1c20d95fb95 |
File details
Details for the file eggella-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: eggella-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 031aa7c8fd71c653405f17c9b94797a5c6e4b4c812df4aa9d81d51cbdd03779d |
|
MD5 | 96fd757a116e7d70b5bd990791c09cfc |
|
BLAKE2b-256 | 80f95ea2c630191e81f0345afa24d6938ecac00c1413d02e70edd4eddc721adf |