Skip to content
/ qshell Public

A simple python command shell, that allows you to wrap your program in a interactive shell enviroment.

License

Notifications You must be signed in to change notification settings

QSoloX/qshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload Python Package

QShell (Quick Shell)

A simple python command shell, that allows you to wrap your program in a interactive shell environment.

Installation

Use the package manager pip to install CShell.

pip install qshell

Docs

The docs will be available soon :) for now just check out the examples folder to see how its used!

Example

The barbones example:

from qshell import Shell, register

commands = {}

@register('echo', 'Echo a word back to the console', 'Usage: echo sometext', commands)
def command_echo(shell, user_in):
    return " ".join(user_in[1:])

def main():
    example = Shell(commands)
    example.run()

ToDo

  • Add environment variables
  • Create Documentation
  • Better error handling

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A simple python command shell, that allows you to wrap your program in a interactive shell enviroment.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages