Skip to main content

Create awesome command line applications with less effort

Project description

Eggella

ENG RU

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()

quickstart

See the documentation and examples!

Project details


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 hashes)

Uploaded Source

Built Distribution

eggella-0.1.5-py3-none-any.whl (21.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page