Skip to main content

A 'manage' command to add an interactive shell and commands support to your Python applications, based on click

Project description

Manage

https://img.shields.io/pypi/v/manage.svg https://img.shields.io/travis/rochacbruno/manage.svg Documentation Status Dependencies

A “manage” command to add an interactive shell and commands support to your Python applications, based on click

Features

With manage you add a commands manager to your Python project and also it comes with an interactive shell with iPython support.

$ pip install manage
$ cd /my_project_root_folder
$ manage init
creating manage.yml....

With that you now have a file manage.yml file describing how manage command should discovery your app modules and custom commands

The Shell

By default the command manage shell is included, it is a simple Python REPL console with some configurable options.

You can change the banner message to say anything you want, e.g: “Welcome to my shell!” and you can also specify some objects to be automatically imported in to the shell context so when you enter in to the shell you already have your project’s common objects available.

Also you can specify a custom function to run or a string based code block to run, useful to init and configure the objects.

If IPython is installed it will use it, otherwise will use the default Python console including support for tab autocomplete.

Check the example in: https://github.com/rochacbruno/manage/tree/master/examples/simple

Custom Commands

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2016-06-09)

  • First release on PyPI.

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

manage-0.1.1.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

manage-0.1.1-py2.py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 2 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